Phaser CE v2.8.2
Version 2.8.2 - 14th July 2017
New Features
-
Phaser.Point.set is a static counterpart to Phaser.Point#set. It can be used on any point-like object, e.g.,
Phaser.Point.set(PIXI.Sprite.defaultAnchor, 0.5); //-> {x: 0.5, y: 0.5}
Updates
- Added TypeScript
types
to package.json (#276). - New webpack project template (#95).
- Phaser.Component.Core.init checks types of the
game
,x
, andy
arguments, since these mistakes can be hard to track down (outside of TypeScript). The cost is likely trivial, but you can skip these by setting Phaser.Component.Core.skipTypeChecks to true. - Phaser.Utils.Debug#renderer lists currentBatchedTextures (added by PIXI.WebGLRenderer#setTexturePriority).
- Phaser.TilemapParser.parseTiledJSON warns if a tilemap contains an external tileset, which Phaser doesn't read (#273).
- Phaser.Tilemap#createFromObjects assigns the width and height of Object Tiles to the newly created Sprite (previously these were ignored).
Bug Fixes
- Added missing PIXI.DisplayObject#constructor (#278).
- Arcade.Body#render, Debug#geom (circles, ellipses), Debug#rectangle, and Debug#spriteBounds use Debug#lineWidth.
- Fixed PIXI.CanvasRenderer#renderSession.roundPixels misspelled as
roundPx
in Debug#renderer. (roundPx is a Camera property.) - Fixed some TypeScript definitions (#174, #270, #274, #277).
- The debug canvas is returned to the canvas pool when the game is destroyed (#269).
Thanks
@bulgakovk, @cmd-johnson, @dolanmiu, @georgesboris, @johnbuttcoingalt, @mindcity, @photonstorm, @samme