Cut/CutJS renamed to Stage/Stage.js
- atlas spec changed
- Cut#id renamed to Cut#label
- Cut.addTexture() removed
- Image#cropY/cropY removed
- Anim#gotoLabel removed
- drawing() replaced with .canvas()
- Cut.preload() added
- Texture renamed to Atlas
- New Texture class replaced Cut.Out
- Cut#_cutouts and Cut.cutout() replaced with Cut#_textures and Cut.texture()
- Cut.texture() returns selection object
- image-loader spec changed
- Cut.Anim.FPS is not public
- append/prepend/insert methods accept array
- root.background method added
- game loop continues if any tick returns true, but only renders if touched
- texture.ratio renamed to texture.ppu
- new drawing (experimental) and cutout (internal) api
- pin set/get is refactored
- resize in/out is replace with scale in-pad/out-crop
- default viewbox mode is 'in-pad'
Cut.config
andCut.start(configs)
addedCut.init
andLoader.loadImage
replaced with"app-loader"
and"image-loader"
configsLoader
merged withRoot
,Loader.start/pause/resume
replaced withCut.start/pause/resume
root._ratio
replaced withroot.viewport().ratio
_isCut
replaced withCut._ensure
Cut.Out.select
replace withCut.cutout
Texture
is reorganizedRoot
'sresize
renamed toviewport
- Source files moved to
lib
and platform files toplatform
- Assumed CommonJS by default
lib/main
is set as npmmain
- extension files moved to ext
- In cutout selector, texture name is made optional:
"[texture:]cutout"
- FastContext support added to Cordova, FastCanvas loader removed
- Remove
Mouse(..., captureAnyMove)
and use flag instead - Refactoring easing class and moving tween/ease to another file
- Browserified
- Synthetic
Mouse
clicks instead of browser clicks - New
off
method to remove listeners - New
data
parameter forvisit
methods _listens
renamed to_flag
_isFunc
,_function
,_options
and_status
are removed and_extend
's signature is changed
setImage/Value/Frames/Font
deprecated and replaced byimage/value/frames
Mouse
events signature changed from(rawEvent, point)
to(point)
where newpoint.raw
is oldrawEvent
- support pinning shorthands for tweening
- replaced
spy(true)
withattr('spy', true)
- replaced
Cut.addTexture(...)
withCut(...)
- using deep listeners count instead of
spy
to optimized mouse event distribution drawing
signature changed from([name], width, height, [ratio], callback, [def])
to([name], width, height, [ratio], [callback])
and(def, [callback])
publish
method is replaced withtrigger
which returnthis
viewport
callback signature changed from(width, height)
to(viewport)