This version is out of date

The version of Phaser CE on this page is not the most current release.

Version: 2.7.5
Released: 23rd March 2017
Next Version: 2.7.6
Previous Version: 2.7.4

Download

Download this version of Phaser CE from npm. Need more details? Follow this tutorial

npm install phaser-ce@2.7.5

Change Log

2.7.5 is a hotfix to patch the error this.preUpdateLifeSpan is not a function in 2.7.4 (#72). The following is from 2.7.4:

New Features

  • New method Phaser.Math.hypot() calculates the length of the hypotenuse spanning two given lengths
  • Added copyBitmapData function to Phaser.Bitmap
  • Added noPause logic to src/input/Pointer.js
  • Added timeStep parameter pass to state.pauseUpdate call at src/core/Game.js
  • Added tileOffset (Phaser.Point) property to Phaser.TilemapLayer. This allows offsetting layer positions in a way that plays well with the camera and Arcade physics. Also, the offsetx and offsety properties are now read from the layer properties of Tiled maps.

Updates

  • Changed Loader.loadImageTag behavior to exclude firefox from loading cached images (#2534)
  • Added yarn lock file
  • Added travis-ci build script
  • Fixed Phaser.Plugin.AStar Typescript definitions and phaser-ce module name to get grunt tsdocs to work again (#33)
  • Fixed Phaser.Plugin.AStar.DISTANCE_MANHATTAN according to documentation
  • Changed bower package name to phaser-ce
  • Emitter.explode() now launches all particles if the quantity argument is omitted (#7). You should pass quantity 0 if you want to launch no particles.
  • overlapR, overlapX, and overlapY are now reset to 0 when an Arcade Physics Body isn't colliding (#23)
  • Extened Phaser.Physics.P2.Body.loadPolygon() method by scale parameter, that allows the loaded polygon to have a different scale
  • Fixed documentation of Phaser.Video#createVideoFromBlob
  • Clarify documentation of Phaser.AnimationManager#updateIfVisible
  • Update Phaser.Text#setStyle to not mutate the passed style
  • Extended Phaser.Particles.Arcade.Emitter#makeParticles by parameter to pass custom parameters to particle class
  • Fixed jshint issues (#46)
  • Added call of preUpdateLifeSpan for Phaser.Image#preUpdate (#46)
  • Added missing parameter particleArguments at typescript definition file (#46)
  • Updated changes at readme and changelog markdown (#69)

Bug Fixes

  • Fixed Arcade.Body.reset() so it resizes the body if the sprite scale has changed (#10).
  • Fixed Phaser.Camera.checkBounds() so it doesn't flicker when its view is bigger than its bounds.
  • Fixed Phaser.Math#between and Phaser.Math#random to work again
  • Reset loader state at Phaser.Loader before complete callbacks (#53)
  • Fixed rendering on devices that use older versions of javascript
  • Fixed crashes on very old devices
  • Phaser.Group#update Fixed group updating if a sprite has been destroyed
  • Phaser.Weapon#fire Fix local rotation tracking (#66)
  • Fixed memory leak on webaudio at Phaser.Sound

Pixi Updates

  • Fix wrong parameter by calling Phaser.RenderTexture in pixi _generateCachedSprite at DisplayObject
  • Fixed jshint issues
  • Added preUpdateLifeSpan for Image
  • Added missing parameter particleArguments at typescript definition file
  • Fixed duplicate touch events in Android Chrome >= 55 due to introduction of PointerEvents.