Skip to content

Phaser CE v2.8.0

Compare
Choose a tag to compare
@photonstorm photonstorm released this 31 May 12:11
· 1506 commits to master since this release

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.

New Features

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.)
  • Fixed Sounds ignoring changes to global volume when using audio tags.
  • Fixed looping timers not getting removed completely when destroyed.

Thanks

@ColaColin, @GameDevFox, @goldfire, @netgfx, @photonstorm, @rblopes, @samme, @shunsei, @Xesenix