github excaliburjs/Excalibur v0.16.0
Excalibur v0.16.0

latest releases: 0.31.0-alpha.1315+05c9dae, 0.31.0-alpha.1314+3277026, 0.31.0-alpha.1313+31305c5...
6 years ago

image

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 and onPostKill
  • 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 extends PointerEvent
    • 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

Deprecated

  • Sprite.sx, Sprite.sy, Sprite.swidth, Sprite.sheight has be deprecated in favor of Sprite.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)

Don't miss a new Excalibur release

NewReleases is sending notifications on new releases.