Skip to content

Commit 123a86d

Browse files
authored
Merge pull request #152 from samme/release-2.7.6
Phaser CE Version 2.7.6
2 parents 5eefa26 + 4d4378b commit 123a86d

File tree

434 files changed

+1405826
-1335084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

434 files changed

+1405826
-1335084
lines changed

CHANGELOG.md

+60-28
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,44 @@
22

33
## Unreleased
44

5-
See [README.md#change-log](README.md#change-log).
5+
See [README.md#change-log](README.md#change-log).
6+
7+
## Version 2.7.6 - 13th April 2017
8+
9+
### New Features
10+
11+
* New method [Phaser.Loader#imageFromBitmapData](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#imageFromBitmapData) lets you preload an image extracted from a BitmapData canvas.
12+
* [BitmapData#generateTexture](https://photonstorm.github.io/phaser-ce/Phaser.BitmapData.html#generateTexture) now has an optional callback argument. Most browsers now load the generated image asynchronously, so without a callback you're not guaranteed a valid texture (#136).
13+
* [Phaser.GameObjectFactory#weapon](https://photonstorm.github.io/phaser-ce/Phaser.GameObjectFactory.html#weapon) (used as `game.add.weapon`) now has a `bulletClass` argument. Without this it was difficult to set `bulletClass` before creating the bullet pool.
14+
15+
### Updates
16+
17+
* [Phaser.Cache#addImage](https://photonstorm.github.io/phaser-ce/Phaser.Cache.html#addImage) now emits a warning if you add an image that hasn't completed loading.
18+
* [Phaser.Frame](https://photonstorm.github.io/phaser-ce/Phaser.Frame.html) now emits a warning if a Frame is constructed with a zero width or height.
19+
* [Phaser.Physics.Arcade#velocityFromAngle](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.html#velocityFromAngle) now uses [Phaser.Math](https://photonstorm.github.io/phaser-ce/Phaser.Math.html) instead of `game.math`, so you can use it without a reference to a running game (#131).
20+
* Clarified [Emitter#start](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#start) documentation. It's really easier to use [Emitter#explode](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#explode) or [Emitter#flow](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#flow).
21+
* The game canvas's [cursor style](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) is now `pointer` when the cursor is over an object with `input.useHandCursor` enabled and empty at all other times. This should make it easier to set your own cursor style for the game (#110).
22+
* TypeScript definitions fixes and updates (#75, #101, #107)
23+
* Docs typo fixes (#101)
24+
* Added [photonstorm/phaser-plugins](https://github.com/photonstorm/phaser-plugins) to the Phaser CE docs: see [Phaser.Plugin](https://photonstorm.github.io/phaser-ce/Phaser.Plugin.html) (#107)
25+
* BitmapData and RenderTexture objects are now destroyed when clearing the cache (#68). This should reduce memory use.
26+
27+
### Bug Fixes
28+
29+
* Fixed an issue where a display object's preUpdate call would be skipped if a sibling was removed or destroyed, which could create small discrepancies in position, lifespan, or renderOrderID (#103).
30+
* Fixed an issue where display objects using the default texture could have an incorrect size (1×1) and appear blank (#138). The built-in DEFAULT and MISSING textures are now loaded asynchronously to ensure that they're valid.
31+
* Fixed an issue where [game.device.canUseMultiply](https://photonstorm.github.io/phaser-ce/Phaser.Device.html#canUseMultiply) could hold a false negative on first (Firefox, Safari) or even subsequent (Chrome 57) page loads, disabling most blend modes when using the Canvas renderer (#130).
32+
* [Phaser.Keyboard#lastChar](https://photonstorm.github.io/phaser-ce/Phaser.Keyboard.html#lastChar) is now `null` if Phaser has recorded no key presses yet. Reading it before a key press no longer raises an error (#132).
33+
* Previously, the `center` of a moving Arcade Physics Body was inaccurate during the game's update phase, and that made collision checks of circular Bodies less accurate (#122). This was fixed by updating `center` during preUpdate.
34+
* Fixed an issue when dragging a sprite whose parent is scaled or rotated (#108). Now the sprite follows the cursor correctly.
35+
* Fixed audio skipping when restarting playback (#78)
36+
* Fixed bad rendering of multiple tinted BitmapText objects (#58)
37+
* Fixed Object.assign not existing on older devices (#81)
38+
* Previously, the HEADLESS renderer essentially became a CANVAS renderer after boot, which was incorrect (#74). Phaser.HEADLESS now sets up a PIXI.CanvasRenderer and a detached (invisible) canvas. It skips `render` hooks but not the `preRender` and `postRender` hooks (strange). [game.renderType](https://photonstorm.github.io/phaser-ce/Phaser.Game.html#renderType) now contains either Phaser.CANVAS, Phaser.HEADLESS, or Phaser.WEBGL after boot.
39+
40+
### Thanks
41+
42+
@alexus85, @Arcanorum, @digitsensitive, @Dreaded-Gnu, @hdodov, @IVA-apps, @JTronLabs, @Lightning3105, @mikewesthad, @nalgorry, @photonstorm, @qarlosh, @samme, @trpzn, @vpmedia
643

744
## Version 2.7.5 - 23rd March 2017
845

@@ -12,51 +49,46 @@ See [README.md#change-log](README.md#change-log).
1249

1350
### New Features
1451

15-
* New method Phaser.Math.hypot() calculates the length of the hypotenuse spanning two given lengths
16-
* Added copyBitmapData function to Phaser.Bitmap
52+
* New method [Phaser.Math.hypot()](https://photonstorm.github.io/phaser-ce/Phaser.Math.html#hypot) calculates the length of the hypotenuse spanning two given lengths
53+
* Added [Phaser.BitmapData#copyBitmapData](https://photonstorm.github.io/phaser-ce/Phaser.BitmapData.html#copyBitmapData)
1754
* Added noPause logic to src/input/Pointer.js
1855
* Added timeStep parameter pass to state.pauseUpdate call at src/core/Game.js
19-
* 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.
56+
* Added [Phaser.TilemapLayer#tileOffset](https://photonstorm.github.io/phaser-ce/Phaser.TilemapLayer.html#tileOffset) (Phaser.Point). 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.
2057

2158
### Updates
2259

23-
* Changed Loader.loadImageTag behavior to exclude firefox from loading cached images (#2534)
60+
* Changed [Phaser.Loader#loadImageTag](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#loadImageTag) to exclude Firefox from loading cached images (phaser #2534)
2461
* Added yarn lock file
2562
* Added travis-ci build script
2663
* Fixed Phaser.Plugin.AStar Typescript definitions and phaser-ce module name to get `grunt tsdocs` to work again (#33)
27-
* Fixed Phaser.Plugin.AStar.DISTANCE_MANHATTAN according to documentation
64+
* Fixed Phaser.Plugin.AStar.DISTANCE_MANHATTAN Typescript definitions
2865
* Changed bower package name to `phaser-ce`
29-
* 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.
30-
* `overlapR`, `overlapX`, and `overlapY` are now reset to 0 when an Arcade Physics Body isn't colliding (#23)
31-
* Extened Phaser.Physics.P2.Body.loadPolygon() method by scale parameter, that allows the loaded polygon to have a different scale
32-
* Fixed documentation of Phaser.Video#createVideoFromBlob
33-
* Clarify documentation of Phaser.AnimationManager#updateIfVisible
34-
* Update Phaser.Text#setStyle to not mutate the passed style
35-
* Extended Phaser.Particles.Arcade.Emitter#makeParticles by parameter to pass custom parameters to particle class
66+
* [Phaser.Particles.Arcade.Emitter#explode()](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#explode) now launches all particles if the `quantity` argument is omitted (#7). You should pass quantity `0` if you want to launch no particles.
67+
* [overlapR](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.Body.html#overlapR), [overlapX](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.Body.html#overlapX), and [overlapY](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.Body.html#overlapY) are now correctly reset to 0 when an Arcade Physics Body isn't colliding (#23)
68+
* [Phaser.Physics.P2.Body.loadPolygon()](https://photonstorm.github.io/phaser-ce/Phaser.Physics.P2.Body.html#loadPolygon) now has a `scale` parameter that allows the loaded polygon to have a different scale
69+
* Fixed documentation of [Phaser.Video#createVideoFromBlob](https://photonstorm.github.io/phaser-ce/Phaser.Video.html#createVideoFromBlob)
70+
* Clarified documentation of [Phaser.AnimationManager#updateIfVisible](https://photonstorm.github.io/phaser-ce/Phaser.AnimationManager.html#updateIfVisible)
71+
* Updated [Phaser.Text#setStyle](https://photonstorm.github.io/phaser-ce/Phaser.Text.html#setStyle) to not mutate the passed style
72+
* Added `particleArguments` parameter to [Phaser.Particles.Arcade.Emitter#makeParticles](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#makeParticles). It lets you pass custom parameters to a particle class
3673
* Fixed jshint issues (#46)
37-
* Added call of preUpdateLifeSpan for Phaser.Image#preUpdate (#46)
38-
* Added missing parameter particleArguments at typescript definition file (#46)
39-
* Updated changes at readme and changelog markdown (#69)
74+
* Updated README and CHANGELOG markdown (#69)
4075

4176
### Bug Fixes
4277

43-
* Fixed Arcade.Body.reset() so it resizes the body if the sprite scale has changed (#10).
44-
* Fixed Phaser.Camera.checkBounds() so it doesn't flicker when its view is bigger than its bounds.
45-
* Fixed Phaser.Math#between and Phaser.Math#random to work again
46-
* Reset loader state at Phaser.Loader before complete callbacks (#53)
78+
* [Phaser.Image#lifespan](https://photonstorm.github.io/phaser-ce/Phaser.Image.html#lifespan) now works properly (#46).
79+
* [Phaser.Physics.Arcade.Body.reset()](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.Body.html#reset) now resizes the body if the sprite scale has changed (#10).
80+
* Fixed [Phaser.Camera.checkBounds()](https://photonstorm.github.io/phaser-ce/Phaser.Camera.html#checkBounds) so it doesn't flicker when its view is bigger than its bounds.
81+
* Fixed [Phaser.Math#between](https://photonstorm.github.io/phaser-ce/Phaser.Math.html#between) and [Phaser.Math#random](https://photonstorm.github.io/phaser-ce/Phaser.Math.html#random) to work again
82+
* [Phaser.Loader](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html) is now reset just before it signals loading is complete (#53)
4783
* Fixed rendering on devices that use older versions of javascript
4884
* Fixed crashes on very old devices
49-
* Phaser.Group#update Fixed group updating if a sprite has been destroyed
50-
* Phaser.Weapon#fire Fix local rotation tracking (#66)
51-
* Fixed memory leak on webaudio at Phaser.Sound
85+
* Fixed an error when destroying a sprite during [Phaser.Group#update](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#update)
86+
* Fixed local rotation tracking in [Phaser.Weapon#fire](https://photonstorm.github.io/phaser-ce/Phaser.Weapon.html#fire) (#66)
87+
* Fixed WebAudio memory leak on in [Phaser.Sound](https://photonstorm.github.io/phaser-ce/Phaser.Sound.html)
5288

5389
### Pixi Updates
5490

55-
* Fix wrong parameter by calling Phaser.RenderTexture in pixi _generateCachedSprite at DisplayObject
56-
* Fixed jshint issues
57-
* Added preUpdateLifeSpan for Image
58-
* Added missing parameter particleArguments at typescript definition file
59-
* Fixed duplicate touch events in Android Chrome >= 55 due to introduction of PointerEvents.
91+
* Fixed wrong parameter PIXI.DisplayObject#\_generateCachedSprite
6092

6193
## Version 2.7.3 - 9th January 2017
6294

README.md

+7-56
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ Using Browserify? Please [read this](#browserify).
116116

117117
[jsDelivr](http://www.jsdelivr.com/#!phaser) is a "super-fast CDN for developers". Include the following in your html:
118118

119-
<script src="//cdn.jsdelivr.net/phaser-ce/2.7.5/phaser.js"></script>
119+
<script src="//cdn.jsdelivr.net/phaser-ce/2.7.6/phaser.js"></script>
120120

121121
or the minified version:
122122

123-
<script src="//cdn.jsdelivr.net/phaser-ce/2.7.5/phaser.min.js"></script>
123+
<script src="//cdn.jsdelivr.net/phaser-ce/2.7.6/phaser.min.js"></script>
124124

125125
### Phaser Sandbox
126126

@@ -248,7 +248,7 @@ If you code with [TypeScript](http://www.typescriptlang.org/) there are comprehe
248248
<a name="change-log"></a>
249249
# Change Log
250250

251-
## Version 2.7.6 - unreleased
251+
## Version 2.7.6 - 13th April 2017
252252

253253
### New Features
254254

@@ -285,55 +285,6 @@ If you code with [TypeScript](http://www.typescriptlang.org/) there are comprehe
285285

286286
@alexus85, @Arcanorum, @digitsensitive, @Dreaded-Gnu, @hdodov, @IVA-apps, @JTronLabs, @Lightning3105, @mikewesthad, @nalgorry, @photonstorm, @qarlosh, @samme, @trpzn, @vpmedia
287287

288-
## Version 2.7.5 - 23rd March 2017
289-
290-
* A hotfix to patch the error `this.preUpdateLifeSpan is not a function` in 2.7.4 (#72)
291-
292-
## Version 2.7.4 - 23rd March 2017
293-
294-
### New Features
295-
296-
* New method [Phaser.Math.hypot()](https://photonstorm.github.io/phaser-ce/Phaser.Math.html#hypot) calculates the length of the hypotenuse spanning two given lengths
297-
* Added [Phaser.BitmapData#copyBitmapData](https://photonstorm.github.io/phaser-ce/Phaser.BitmapData.html#copyBitmapData)
298-
* Added noPause logic to src/input/Pointer.js
299-
* Added timeStep parameter pass to state.pauseUpdate call at src/core/Game.js
300-
* Added [Phaser.TilemapLayer#tileOffset](https://photonstorm.github.io/phaser-ce/Phaser.TilemapLayer.html#tileOffset) (Phaser.Point). 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.
301-
302-
### Updates
303-
304-
* Changed [Phaser.Loader#loadImageTag](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#loadImageTag) to exclude Firefox from loading cached images (phaser #2534)
305-
* Added yarn lock file
306-
* Added travis-ci build script
307-
* Fixed Phaser.Plugin.AStar Typescript definitions and phaser-ce module name to get `grunt tsdocs` to work again (#33)
308-
* Fixed Phaser.Plugin.AStar.DISTANCE_MANHATTAN Typescript definitions
309-
* Changed bower package name to `phaser-ce`
310-
* [Phaser.Particles.Arcade.Emitter#explode()](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#explode) now launches all particles if the `quantity` argument is omitted (#7). You should pass quantity `0` if you want to launch no particles.
311-
* [overlapR](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.Body.html#overlapR), [overlapX](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.Body.html#overlapX), and [overlapY](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.Body.html#overlapY) are now correctly reset to 0 when an Arcade Physics Body isn't colliding (#23)
312-
* [Phaser.Physics.P2.Body.loadPolygon()](https://photonstorm.github.io/phaser-ce/Phaser.Physics.P2.Body.html#loadPolygon) now has a `scale` parameter that allows the loaded polygon to have a different scale
313-
* Fixed documentation of [Phaser.Video#createVideoFromBlob](https://photonstorm.github.io/phaser-ce/Phaser.Video.html#createVideoFromBlob)
314-
* Clarified documentation of [Phaser.AnimationManager#updateIfVisible](https://photonstorm.github.io/phaser-ce/Phaser.AnimationManager.html#updateIfVisible)
315-
* Updated [Phaser.Text#setStyle](https://photonstorm.github.io/phaser-ce/Phaser.Text.html#setStyle) to not mutate the passed style
316-
* Added `particleArguments` parameter to [Phaser.Particles.Arcade.Emitter#makeParticles](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#makeParticles). It lets you pass custom parameters to a particle class
317-
* Fixed jshint issues (#46)
318-
* Updated README and CHANGELOG markdown (#69)
319-
320-
### Bug Fixes
321-
322-
* [Phaser.Image#lifespan](https://photonstorm.github.io/phaser-ce/Phaser.Image.html#lifespan) now works properly (#46).
323-
* [Phaser.Physics.Arcade.Body.reset()](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.Body.html#reset) now resizes the body if the sprite scale has changed (#10).
324-
* Fixed [Phaser.Camera.checkBounds()](https://photonstorm.github.io/phaser-ce/Phaser.Camera.html#checkBounds) so it doesn't flicker when its view is bigger than its bounds.
325-
* Fixed [Phaser.Math#between](https://photonstorm.github.io/phaser-ce/Phaser.Math.html#between) and [Phaser.Math#random](https://photonstorm.github.io/phaser-ce/Phaser.Math.html#random) to work again
326-
* [Phaser.Loader](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html) is now reset just before it signals loading is complete (#53)
327-
* Fixed rendering on devices that use older versions of javascript
328-
* Fixed crashes on very old devices
329-
* Fixed an error when destroying a sprite during [Phaser.Group#update](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#update)
330-
* Fixed local rotation tracking in [Phaser.Weapon#fire](https://photonstorm.github.io/phaser-ce/Phaser.Weapon.html#fire) (#66)
331-
* Fixed WebAudio memory leak on in [Phaser.Sound](https://photonstorm.github.io/phaser-ce/Phaser.Sound.html)
332-
333-
### Pixi Updates
334-
335-
* Fixed wrong parameter PIXI.DisplayObject#\_generateCachedSprite
336-
337288
For changes in previous releases please see the extensive [Version History](CHANGELOG.md).
338289

339290
<a name="contributing"></a>
@@ -365,10 +316,10 @@ All rights reserved.
365316

366317
[![Analytics](https://ga-beacon.appspot.com/UA-44006568-2/phaser/index)](https://github.com/igrigorik/ga-beacon)
367318

368-
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.7.5/phaser.js
369-
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.7.5/phaser.min.js
370-
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.7.5.zip
371-
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.7.5.tar.gz
319+
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.7.6/phaser.js
320+
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.7.6/phaser.min.js
321+
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.7.6.zip
322+
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.7.6.tar.gz
372323
[clone-http]: https://github.com/photonstorm/phaser.git
373324
[clone-ssh]: git@github.com:photonstorm/phaser.git
374325
[clone-svn]: https://github.com/photonstorm/phaser

build/creature.map

+1-1
Large diffs are not rendered by default.

build/creature.min.js

+2-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/custom/p2.map

+1-1
Large diffs are not rendered by default.

build/custom/p2.min.js

+2-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)