Download

Change Log

Version 2.8.0 - 30th May 2017

We've bumped the minor version (2.8) for changes in how circular Arcade Physics bodies behave with scaled sprites. We consider this a bug fix (#235), but since the prior behavior wasn't documented and existing code might be relying on it, we wanted to give you a heads-up.

Group#resetAll calls resetChild on all children (changing position, texture, and frame, if specified).

Group#scatter places each child at a random position within a Rectangle or the World bounds.

Point.isPoint identifies objects that can be safely used in Point operations.

Updates

Arcade.Body#radius represents a length relative to the sprite's texture dimensions. The effective radius of the body scales automatically when the sprite scale changes, as with rectangular bodies, and the body is sized correctly when the sprite's scale is different from (1, 1) (#235).

Create#grid and Create#texture accept callbacks (#241, #136) and can return a BitmapData object when passed generateTexture=false.

Bug Fixes

Fixed incorrect Phaser.Text dimensions when assigning a numeric string to strokeThickness (#239). (You should still use a number instead, though.)