Incompatible Changes
For complete changes, please refer to the CHANGELOG (opens in a new tab)
0.3.0
- NarraLeaf-React now requires React 19 (opens in a new tab) or later
- Image Config has changed:
- the type of
config.src
should be a tag definition or a string - In tag-based image config,
config.src
as a resolver function is moved toconfig.src.resolve
- Image can't be marked as wearable anymore, use
image.wear
orimage.asWearableOf
instead
- the type of
- These methods of
Image
has been changed:setAppearance
,setTags
,setSrc
->char
applyTransform
->transform
wear
is a new alias foraddWearable
asWearableOf
is a new alias forbindWearable
init
,setPosition
,dispose
,copy
are removedIImageTransition
is removed, useImageTransition
instead
- These methods of
Text
has been changed:applyTransform
->transform
applyTransition
is removed, applying transitions are still in planningITextTransition
is removed, useTextTransition
instead
- These methods of
Transform
has been changed:overwrite
is removed- Transformer API is completely deprecated
- These methods/properties of
Scene
has been changed:activate
,deactivate
are removed, the game will manage the scene's lifecycle automaticallyapplyTransform
is removed, usescene.background.transform
insteadinherit
is removedrequestImagePreload
->preloadImage
- These methods of
Sound
has been changed:- use
copy
to create a new sound instance play
,stop
andsetVolume
method can receive aduration
parameterfade
is removed, usesetVolume
instead
- use
- In displayable elements, the transform states are separated from the element states
- These changes are made to
Sound
configsync
andtype
are removed- use
preload
to use Howler.js (opens in a new tab)'s preload feature - use
seek
property to set the initial seek position
- Scene's config now can't specify the
invertY
andinvertX
properties, use story configorigin
instead Top
,Center
,Bottom
,HBox
, andVBox
are deprecated, usePageRouter
API insteadITransition
s are all deprecated, useTransition
API insteadFontSizeTransition
->FontSize
BaseImageTransition
->ImageTransition
BaseTextTransition
->TextTransition
0.2.2
- SceneConfig
invertY
is nowtrue
by default
0.2.0
- Image constructor signature has changed. Now the first argument must be a config object.
0.1.2
game.config.player.width
andgame.config.player.height
cannot be string anymore