Phaser CE v2.8.4
Version 2.8.4 - 15th August 2017
Updates
- Arcade#collide and Arcade#overlap skip empty array members in calls like
collide(group, [undefined])
, so you don't unintentionally collide a group against itself. - Added an
epsilon
argument for fuzzy comparisons in Phaser.Line#pointOnLine and Phaser.Line#pointOnSegment (#312). - Removed obsolete PIXI TypeScript definitions.
- Removed filters/pixi. They require PIXI.AbstractFilter, which was removed in 2.7.0.
- Updated NPM dependencies (except typescript; phaserjs/phaser#2198) and added package-lock.json.
- Deprecated Phaser.Device.isConsoleOpen. Now it always returns false.
- Phaser.Input now handles touch unlocking via Phaser.Touch or Phaser.MSPointer. Phaser.Touch#addTouchLockCallback and Phaser.Touch#removeTouchLockCallback are still available but deprecated; you should use Phaser.Input#addTouchLockCallback and Phaser.Input.#removeTouchLockCallback instead (#37).
Bug Fixes
- Improved animation synchronization during irregular frame rates (#310).
- Fixed bad
game
reference in Phaser.Creature. - Fixed wrong dimensions of Debug#canvas and Debug#sprite when a WEBGL game is scaled (#298).
- TileSprite#tint now works when rendering with CANVAS.
- Fixed sprites not receiving a preUpdate when they have a
fresh
ancestor with a physics body, which would leave themfresh
and with incorrectworld
andbody.position
values for several frames (#299). - Fixed movement of sprites with fixedToCamera when dragged by pointer (#297).
- Fixed Creature relative anchor points to be absolute (#288).
- Fixed P2 Physics body not rotating shape (#258).
- Audio is now also unlocked for Android Chrome ≥ 55, fixing audio not playing in cross-origin iframes (#37).
- Fixed some TypeScript definitions (#317, #319).
Documentation
- Arcade Physics bodies don't scale with camera scale (#315).
- cacheAsBitmap and generateTexture can trim transparent pixels (#283).
- Phaser.Physics.P2.Body#addPolygon can mutate the
points
argument (#301). - InputHandler#enableDrag
alphaThreshold
argument is a number, not boolean. - Phaser.ScaleManager#startFullScreen
- Health#damage, Health#heal, and Health#setHealth were missing (#308).
Thanks
@Aerolivier, @AleBles, @andrewjb123, @davvidbaker, @Formic, @fyyyyy, @Majirefy, @photonstorm, @Plukers, @samid737, @samme, @sarbasamuel, @tommitytom