Phaser CE v2.9.3
Version 2.9.3 - 11th December 2017
New Features
- Phaser.BitmapData#polygon draws a polygon.
- Phaser.Keyboard#removeCallbacks removes callbacks added by Phaser.Keyboard#addCallbacks.
- Phaser.Line#fromPoints
- Phaser.Loader#imageFromGrid and Phaser.Loader#imageFromTexture are image-loading counterparts of Phaser.Create#grid and Phaser.Create#texture.
- Phaser.Point.sortClockwise sorts points around a reference point.
- Phaser.Point#angleXY
- Phaser.Point#atan computes a point's arctangent.
- Phaser.Point#expand increases a point's magnitude to a minimum length.
- Phaser.World#wrapAll wraps all members of a group.
Updates
- Audio and video are now touch-unlocked only via the touchend event (#92). Previously we used
touchend
for audio on newer Chrome and iOS clients andtouchstart
in all other cases. - Tilemap#addTilesetImage, Tilemap#createFromObjects, and Tilemap#createLayer print the map's contents (following the usual warning) in the console if you pass a bad name or identifier, to help you correct it.
- Tileset#addTilesetImage gives a little more information when warning about image dimension mismatches.
- Optimized Phaser.Utils.getProperty.
- Removed Phaser.TweenData#yoyoCounter, an extraneous property that Phaser never used.
- p2 TypeScript definitions fixes and updates (#406).
Bug Fixes
- Phaser.Tween#start no longer tries to start a tween marked for deletion (such as by Tween#stop). Instead it prints a warning to the console (#401).
- Fixed drag movement of fixedToCamera sprites when the camera is scaled (#405).
- Fixed tweens not repeating when Tween#start is called after Tween#repeat (#408).
- StateManager#loadComplete is no longer called by the Loader if the state has been destroyed (#410).
- Added TypeScript definitions for Phaser.Sprite#outOfCameraBoundsKill.
Documentation
canvas
,canvasId
,canvasStyle
, and forceSetTimeOut can be set in the game configuration object.
Thanks
@clesquir, @GrindheadGames, @husengbatute29, @Nek-, @photonstorm, @samme
For changes in previous releases please see the extensive Change Log.