不兼容的变更
完整的变更日志请参阅 CHANGELOG (opens in a new tab)
0.8.0
- Displayable.scale方法已变更。现在接受两个参数- scaleX和- scaleY,而不是之前的单个- scale参数
0.7.0
- Routeris deprecated, use- LayoutRouteras a more powerful router
- Pageis refactored
- game.config.skipKeyand- game.config.nextKeyare deprecated, use- game.keyMapinstead
0.6.0
- The game has completely transitioned from a single node currentAction to a StackModel. The model ensures that:
- Awaitable is handled in an explicit way
- Support for sub-stack model recursive calls
- Full support for serialization/deserialization
- Support for scenario operations to break the call stack
- Better branching/merging operations
- Less prone to state clutter when deserializing and undoing
- Is a complete solution for nested operations
 
- game.config.skipIntervalis deprecated, use- GamePreference.skipIntervalinstead
0.5.0
- game.config.cpsis deprecated, use- GamePreference.cpsinstead
- Menu GameElementHistory.selectedmay be null
0.4.0
- game.config.elements.say.textIntervalis deprecated, use- game.config.elements.say.cpsinstead
- game.confighas been refactored, see GameConfig for more details- game.config.playeris deprecated, use- game.configinstead
- game.config.elementsis deprecated, use- game.configinstead
- game.config.elementStylesis deprecated, use- game.configinstead
 
0.3.0
- NarraLeaf-React now requires React 19 (opens in a new tab) or later
- Image Config has changed:
- the type of config.srcshould be a tag definition or a string
- In tag-based image config, config.srcas a resolver function is moved toconfig.src.resolve
- Image can't be marked as wearable anymore, use image.wearorimage.asWearableOfinstead
 
- the type of 
- These methods of Imagehas been changed:- setAppearance,- setTags,- setSrc->- char
- applyTransform->- transform
- wearis a new alias for- addWearable
- asWearableOfis a new alias for- bindWearable
- init,- setPosition,- dispose,- copyare removed
- IImageTransitionis removed, use- ImageTransitioninstead
 
- These methods of Texthas been changed:- applyTransform->- transform
- applyTransitionis removed, applying transitions are still in planning
- ITextTransitionis removed, use- TextTransitioninstead
 
- These methods of Transformhas been changed:- overwriteis removed
- Transformer API is completely deprecated
 
- These methods/properties of Scenehas been changed:- activate,- deactivateare removed, the game will manage the scene's lifecycle automatically
- applyTransformis removed, use- scene.background.transforminstead
- inheritis removed
- requestImagePreload->- preloadImage
 
- These methods of Soundhas been changed:- use copyto create a new sound instance
- play,- stopand- setVolumemethod can receive a- durationparameter
- fadeis removed, use- setVolumeinstead
 
- use 
- In displayable elements, the transform states are separated from the element states
- These changes are made to Soundconfig- syncand- typeare removed
- use preloadto use Howler.js (opens in a new tab)'s preload feature
- use seekproperty to set the initial seek position
 
- Scene's config now can't specify the invertYandinvertXproperties, use story configorigininstead
- Top,- Center,- Bottom,- HBox, and- VBoxare deprecated, use- PageRouterAPI instead
- ITransitions are all deprecated, use- TransitionAPI instead- FontSizeTransition->- FontSize
- BaseImageTransition->- ImageTransition
- BaseTextTransition->- TextTransition
 
0.2.2
- SceneConfig invertYis nowtrueby default
0.2.0
- Image constructor signature has changed. Now the first argument must be a config object.
0.1.2
- game.config.player.widthand- game.config.player.heightcannot be string anymore