Incompatible Changes
For complete changes, please refer to the CHANGELOG (opens in a new tab)
0.8.0
Displayable.scaleis changed. Now it takes two parametersscaleXandscaleYinstead of the previous singlescaleparameter
0.7.0
Routeris deprecated, useLayoutRouteras a more powerful routerPageis refactoredgame.config.skipKeyandgame.config.nextKeyare deprecated, usegame.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, useGamePreference.skipIntervalinstead
0.5.0
game.config.cpsis deprecated, useGamePreference.cpsinstead- Menu GameElementHistory.
selectedmay be null
0.4.0
game.config.elements.say.textIntervalis deprecated, usegame.config.elements.say.cpsinsteadgame.confighas been refactored, see GameConfig for more detailsgame.config.playeris deprecated, usegame.configinsteadgame.config.elementsis deprecated, usegame.configinsteadgame.config.elementStylesis deprecated, usegame.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->charapplyTransform->transformwearis a new alias foraddWearableasWearableOfis a new alias forbindWearableinit,setPosition,dispose,copyare removedIImageTransitionis removed, useImageTransitioninstead
- These methods of
Texthas been changed:applyTransform->transformapplyTransitionis removed, applying transitions are still in planningITextTransitionis removed, useTextTransitioninstead
- 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 automaticallyapplyTransformis removed, usescene.background.transforminsteadinheritis removedrequestImagePreload->preloadImage
- These methods of
Soundhas been changed:- use
copyto create a new sound instance play,stopandsetVolumemethod can receive adurationparameterfadeis removed, usesetVolumeinstead
- use
- In displayable elements, the transform states are separated from the element states
- These changes are made to
Soundconfigsyncandtypeare 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, andVBoxare deprecated, usePageRouterAPI insteadITransitions are all deprecated, useTransitionAPI insteadFontSizeTransition->FontSizeBaseImageTransition->ImageTransitionBaseTextTransition->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.widthandgame.config.player.heightcannot be string anymore