Thanks to @pathurs, @dgparker, and @rougepied for their contributions!
Added
- New typesafe and override safe event lifecycle overriding, all
onEventName
handlers will no longer be dangerous to override (#582)- New lifecycle event
onPreKill
andonPostKill
- New lifecycle event
- SpriteSheets can now produce animations from bespoke sprite coordinates
SpriteSheet.getAnimationByCoords(engine, coords[], speed)
(#918) - Added drag and drop support for Actors (#134)
- New Event
enter
- New Event
leave
- New Event
pointerenter
- New Event
pointerleave
- New Event
pointerdragstart
- New Event
pointerdragend
- New Event
pointerdragmove
- New Event
pointerdragenter
- New Event
pointerdragleave
- New Class
PointerDragEvent
which extendsPointerEvent
- New Class
GlobalCoordinates
that contains Vectors for the world, the page, and the screen. - Added property
ICapturePointerConfig.captureDragEvents
which controls whether to emit drag events to the actor - Added property
PointerEvent.pointer
which equals the original pointer object
- New Event
Deprecated
Sprite.sx
,Sprite.sy
,Sprite.swidth
,Sprite.sheight
has be deprecated in favor ofSprite.x
,Sprite.y
,Sprite.width
,Sprite.height
(#918)
Fixed
- Added missing lifecycle event handlers on Actors, Triggers, Scenes, Engine, and Camera (#582)
- Tile Maps now correctly render negative x-axis coordinates (#904)
- Offscreen culling in HiDPI mode (#949)
- Correct bounds check to check drawWidth/drawHeight for HiDPI
- suppressHiDPIScaling now also suppresses pixel ratio based scaling
- Extract and separate Sprite width/height from drawWidth/drawHeight to prevent context corruption (#951)