Skip to content

Commit dc45d82

Browse files
authored
Merge pull request #480 from photonstorm/release/v2.10.1
Phaser CE Version 2.10.1
2 parents 9865569 + e86f495 commit dc45d82

File tree

222 files changed

+9127
-8206
lines changed

Some content is hidden

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

222 files changed

+9127
-8206
lines changed

CHANGELOG.md

+30-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,36 @@
44

55
See [README: Change Log: Unreleased](README.md#unreleased).
66

7-
## Version 2.10.0 - 18 January 2018
7+
## Version 2.10.1 - 18th February 2018
8+
9+
### New Features
10+
11+
* [Phaser.Sound#playOnce](https://photonstorm.github.io/phaser-ce/Phaser.Sound.html#playOnce) flags a sound for deletion after it is played once. This is a simple method for avoiding [adding](https://photonstorm.github.io/phaser-ce/Phaser.SoundManager.html#add) new Sound objects for sounds that are intended to just be played once and done.
12+
* A final [State#loadUpdate](https://photonstorm.github.io/phaser-ce/Phaser.State.html#loadUpdate) call is made right before the loader is reset, when [Loader#progress](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#progress) is 100, instead of after, when Loader#progress is 0 (#468).
13+
* [Loader#onBeforeLoadComplete](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#onBeforeLoadComplete) is a signal dispatched right before the Loader is reset (unlike [Loader#onLoadComplete](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#onLoadComplete)).
14+
15+
### Updates
16+
17+
* Clarified `margin` and `spacing` arguments in [Phaser.Loader#spritesheet](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#spritesheet) (#448).
18+
* [Debug#text](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#text) now uses [Debug#font](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#font) as its default.
19+
20+
### Bug Fixes
21+
22+
* Fixed audio sprites failing to loop after pause and resume (#323).
23+
* Fixed sounds not looping when using audio tags (#446).
24+
* Fixed circular Arcade bodies sticking to each other during some collisions (#451).
25+
* Fixed a sprite with [input.enabled](https://photonstorm.github.io/phaser-ce/Phaser.InputHandler.html#enabled) `false` triggering its [onInputOut](https://photonstorm.github.io/phaser-ce/Phaser.Events.html#onInputOut) signal when the mouse leaves the game canvas (#454).
26+
* Fixed spelling error in API documentation (#458).
27+
* Fixed some TypeScript definitions (#442, #447, #455, #460, #462, #463, #469, #475).
28+
* The canvas now correctly scales inside a [container](https://photonstorm.github.io/phaser-ce/Phaser.ScaleManager.html#parentNode) if using relative values for `width` and `height` in the [Phaser.Game](https://photonstorm.github.io/phaser-ce/Phaser.Game.html) constructor (#367). Make sure you give the container a [height](https://developer.mozilla.org/en-US/docs/Web/CSS/height).
29+
* Fixed [State#loadUpdate](https://photonstorm.github.io/phaser-ce/Phaser.State.html#loadUpdate) being called once when no assets have been loaded (#468).
30+
* Fixed [Debug#spriteInfo](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#spriteInfo) failing to show `sprite.name` as promised (#471).
31+
32+
### Thanks
33+
34+
@bseiller, @dhashvir, @Lucas-C, @mmacvicar, @Nek-, @netdreamer, @omretterry, @pantoninho, @photonstorm, @samme, @seiyria, @squaresun, @Tembac, @wtravO
35+
36+
## Version 2.10.0 - 18th January 2018
837

938
### New Features
1039

README.md

+19-78
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Thousands of developers worldwide use Phaser. From indies and multi-national dig
88

99
Phaser v2 was built and maintained by [Photon Storm](http://www.photonstorm.com) and turned over to the community (as Phaser CE) in November 2016. [Phaser v3](http://phaser.io/phaser3) is in active development.
1010

11-
The [current Phaser CE release is 2.10.0](https://github.com/photonstorm/phaser-ce/releases/tag/v2.10.0).
11+
The [current Phaser CE release is 2.10.1](https://github.com/photonstorm/phaser-ce/releases/tag/v2.10.1).
1212

1313
- **Visit:** The [Phaser website](http://phaser.io) and follow on [Twitter](https://twitter.com/photonstorm) (#[phaserjs](https://twitter.com/hashtag/phaserjs))
1414
- **Learn:** [API Docs](https://photonstorm.github.io/phaser-ce/), [Support Forum][forum] and [StackOverflow](https://stackoverflow.com/questions/tagged/phaser-framework)
@@ -128,16 +128,16 @@ Please see additional steps for [Browserify/CommonJS](#browserify) and [Webpack]
128128
[Phaser CE is on jsDelivr](http://www.jsdelivr.com/projects/phaser-ce), a "super-fast CDN for developers". Include the following in your html:
129129

130130
```html
131-
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.0/build/phaser.js"></script>
131+
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.1/build/phaser.js"></script>
132132
```
133133

134134
or the minified version:
135135

136136
```html
137-
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.0"></script>
137+
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.1"></script>
138138
```
139139

140-
[Custom builds](https://cdn.jsdelivr.net/npm/phaser-ce@2.10.0/build/custom/) are available too.
140+
[Custom builds](https://cdn.jsdelivr.net/npm/phaser-ce@2.10.1/build/custom/) are available too.
141141

142142
<a name="getting-started"></a>
143143

@@ -328,93 +328,34 @@ Written something cool in Phaser? Please tell us about it in the [forum][forum],
328328

329329
# Change Log
330330

331-
## Unreleased
331+
## Version 2.10.1 - 18th February 2018
332332

333333
### New Features
334334

335-
* Phaser.Sound#playOnce flags a sound for deletion after it is played once. This is a simple method for avoiding [adding](https://photonstorm.github.io/phaser-ce/Phaser.SoundManager.html#add) new Sound objects for sounds that are intended to just be played once and done.
336-
* A final State#loadUpdate call is made right before the loader is reset, when Loader#progress is 100, instead of after, when Loader#progress is 0 (#468).
337-
* Loader#onBeforeLoadComplete is a signal dispatched right before the Loader is reset (unlike Loader#onLoadComplete).
335+
* [Phaser.Sound#playOnce](https://photonstorm.github.io/phaser-ce/Phaser.Sound.html#playOnce) flags a sound for deletion after it is played once. This is a simple method for avoiding [adding](https://photonstorm.github.io/phaser-ce/Phaser.SoundManager.html#add) new Sound objects for sounds that are intended to just be played once and done.
336+
* A final [State#loadUpdate](https://photonstorm.github.io/phaser-ce/Phaser.State.html#loadUpdate) call is made right before the loader is reset, when [Loader#progress](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#progress) is 100, instead of after, when Loader#progress is 0 (#468).
337+
* [Loader#onBeforeLoadComplete](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#onBeforeLoadComplete) is a signal dispatched right before the Loader is reset (unlike [Loader#onLoadComplete](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#onLoadComplete)).
338338

339339
### Updates
340340

341-
* Clarified `margin` and `spacing` arguments in Phaser.Loader#spritesheet (#448).
342-
* Debug#text now uses Debug#font as its default.
341+
* Clarified `margin` and `spacing` arguments in [Phaser.Loader#spritesheet](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#spritesheet) (#448).
342+
* [Debug#text](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#text) now uses [Debug#font](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#font) as its default.
343343

344344
### Bug Fixes
345345

346346
* Fixed audio sprites failing to loop after pause and resume (#323).
347347
* Fixed sounds not looping when using audio tags (#446).
348348
* Fixed circular Arcade bodies sticking to each other during some collisions (#451).
349-
* Fixed a sprite with `input.enabled=false` triggering its onInputOut signal when the mouse leaves the game canvas (#454).
349+
* Fixed a sprite with [input.enabled](https://photonstorm.github.io/phaser-ce/Phaser.InputHandler.html#enabled) `false` triggering its [onInputOut](https://photonstorm.github.io/phaser-ce/Phaser.Events.html#onInputOut) signal when the mouse leaves the game canvas (#454).
350350
* Fixed spelling error in API documentation (#458).
351351
* Fixed some TypeScript definitions (#442, #447, #455, #460, #462, #463, #469, #475).
352-
* The canvas now correctly scales inside a container div if using relative values for `width`/`height` in the [Phaser.Game](https://photonstorm.github.io/phaser-ce/Phaser.Game.html) constructor (#367). Make sure you give the container a [height](https://developer.mozilla.org/en-US/docs/Web/CSS/height).
353-
* Fixed State#loadUpdate being called once when no assets have been loaded (#468).
354-
* Fixed Debug#spriteInfo failing to show `sprite.name` as promised (#471).
352+
* The canvas now correctly scales inside a [container](https://photonstorm.github.io/phaser-ce/Phaser.ScaleManager.html#parentNode) if using relative values for `width` and `height` in the [Phaser.Game](https://photonstorm.github.io/phaser-ce/Phaser.Game.html) constructor (#367). Make sure you give the container a [height](https://developer.mozilla.org/en-US/docs/Web/CSS/height).
353+
* Fixed [State#loadUpdate](https://photonstorm.github.io/phaser-ce/Phaser.State.html#loadUpdate) being called once when no assets have been loaded (#468).
354+
* Fixed [Debug#spriteInfo](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#spriteInfo) failing to show `sprite.name` as promised (#471).
355355

356356
### Thanks
357357

358-
@bseiller, @dhashvir, @Lucas-C, @mmacvicar, @Nek-, @netdreamer, @omretterry, @pantoninho, @samme, @seiyria, @squaresun, @Tembac, @wtravO
359-
360-
## Version 2.10.0 - 18 January 2018
361-
362-
### New Features
363-
364-
* New [game config](https://photonstorm.github.io/phaser-ce/global.html#GameConfig) arguments:
365-
- `alignH`, `alignV`
366-
- `crisp`
367-
- `disableStart`
368-
- `failIfMajorPerformanceCaveat`
369-
- `roundPixels`
370-
- `scaleH`, `scaleV`, `trimH`, `trimV`
371-
* New game loop features:
372-
- [Phaser.Game#dropFrames](https://photonstorm.github.io/phaser-ce/Phaser.Game.html#dropFrames) skips renders when the game loop delta time is spiraling upwards (#314).
373-
- [Phaser.Game#forceSingleRender](https://photonstorm.github.io/phaser-ce/Phaser.Game.html#forceSingleRender) can be set to `false` to reduce the render rate to match Phaser.Time#desiredFps (#313).
374-
- [Phaser.Time#ups](https://photonstorm.github.io/phaser-ce/Phaser.Time.html#ups) tracks updates per second when [advanced timing](https://photonstorm.github.io/phaser-ce/Phaser.Time.html#advancedTiming) is enabled.
375-
- [Phaser.Time#rps](https://photonstorm.github.io/phaser-ce/Phaser.Time.html#rps) tracks renders per second when [advanced timing](https://photonstorm.github.io/phaser-ce/Phaser.Time.html#advancedTiming) is enabled.
376-
* [Phaser.Color](https://photonstorm.github.io/phaser-ce/Phaser.Color.html) constants AQUA, BLACK, BLUE, GRAY, GREEN, ORANGE, RED, VIOLET, WHITE, and YELLOW. You can use these anywhere you use a numeric (hex) color value: [Graphics](https://photonstorm.github.io/phaser-ce/Phaser.Graphics.html), [Sprite#tint](https://photonstorm.github.io/phaser-ce/Phaser.Sprite.html#tint), [Stage#backgroundColor](https://photonstorm.github.io/phaser-ce/Phaser.Stage.html#backgroundColor).
377-
* [Phaser.Game#pendingDestroy](https://photonstorm.github.io/phaser-ce/Phaser.Game.html#pendingDestroy) marks the game for destruction at the next update. It can be used safely within an update callback.
378-
* [Phaser.Point#round](https://photonstorm.github.io/phaser-ce/Phaser.Point.html#round) rounds a point's coordinates.
379-
* [Phaser.SoundManager#onTouchUnlock](https://photonstorm.github.io/phaser-ce/Phaser.SoundManager.html#onTouchUnlock) signal (#434)
380-
* [Phaser.SoundManager#removeAll](https://photonstorm.github.io/phaser-ce/Phaser.SoundManager.html#removeAll) destroys all sounds and removes them from the Manager.
381-
* [Phaser.Utils.Debug](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html) methods:
382-
- [Debug#loader](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#loader) displays [loader](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html) progress.
383-
- [Debug#scale](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#scale) displays game/canvas dimensions and [Scale Manager](https://photonstorm.github.io/phaser-ce/Phaser.ScaleManager.html) state.
384-
- [Debug#sound](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#sound) displays [Sound Manager](https://photonstorm.github.io/phaser-ce/Phaser.SoundManager.html) state.
385-
* [Phaser.Video#playWhenUnlocked](https://photonstorm.github.io/phaser-ce/Phaser.Video.html#playWhenUnlocked)
386-
* [Phaser.Video#onTouchUnlock](https://photonstorm.github.io/phaser-ce/Phaser.Video.html#onTouchUnlock) signal
387-
388-
### Updates
389-
390-
* Phaser now falls back to the Canvas renderer if AUTO is selected and WebGL context creation fails. [Phaser.Device#webGL](https://photonstorm.github.io/phaser-ce/Phaser.Device.html#webGL) is now a soft check and doesn't create a test WebGL context. This is slightly more accurate (#402) and slightly faster (#420). Phaser.Device#webGLError was removed.
391-
* [Gamepad](https://photonstorm.github.io/phaser-ce/Phaser.Gamepad.html) input is now enabled while the game is paused (#423).
392-
* Removed gain smoothing for WebAudio volume changes (#385).
393-
* Updated ionic example project (#381).
394-
* Removed these deprecated items (#403):
395-
- Phaser.ArrayUtils.rotate → [Phaser.ArrayUtils.rotateLeft](https://photonstorm.github.io/phaser-ce/Phaser.ArrayUtils.html#_rotateLeft)
396-
- Phaser.Device.isConsoleOpen
397-
- Phaser.Loader#useXDomainRequest → [xhrLoadWithXDR.js](resources/IE9/xhrLoadWithXDR.js)
398-
- Phaser.Loader#xhrLoadWithXDR → [xhrLoadWithXDR.js](resources/IE9/xhrLoadWithXDR.js)
399-
- Phaser.Particles#update
400-
- Phaser.Polygon#points (as a setter) → [Phaser.Polygon#setTo](https://photonstorm.github.io/phaser-ce/Phaser.Polygon.html#setTo)
401-
- Phaser.Touch#addTouchLockCallback → [Phaser.Input#addTouchLockCallback](https://photonstorm.github.io/phaser-ce/Phaser.Input.html#addTouchLockCallback)
402-
- Phaser.Touch#removeTouchLockCallback → [Phaser.Input#removeTouchLockCallback](https://photonstorm.github.io/phaser-ce/Phaser.Input.html#removeTouchLockCallback)
403-
- PIXI.BaseTexture#updateSourceImage → [Phaser.Component.LoadTexture#loadTexture](https://photonstorm.github.io/phaser-ce/Phaser.Component.LoadTexture.html#loadTexture)
404-
- RevoluteConstraint#motorIsEnabled → RevoluteConstraint#motorEnabled
405-
- Shape.RECTANGLE → Shape.BOX
406-
407-
### Bug Fixes
408-
409-
* Fixed a false positive in [TweenManager#isTweening](https://photonstorm.github.io/phaser-ce/Phaser.TweenManager.html#isTweening) (#414).
410-
* Changing a display object's [smoothed](https://photonstorm.github.io/phaser-ce/Phaser.Sprite.html#smoothed) property now marks the WebGL texture as dirty (#432, #433).
411-
* Fixed Phaser.Sound temporarily having an incorrect gain setting at creation time.
412-
* Fixed sprites not receiving [onInputOut](https://photonstorm.github.io/phaser-ce/Phaser.Events.html#onInputOver) when the pointer leaves the game canvas (#429).
413-
* Fixed some TypeScript definitions.
414-
415-
### Thanks
416-
417-
@ankush-badyal, @Dreaded-Gnu, @Mertank, @pavle-goloskokovic, @photonstorm, @qdrj, @samme, @squaresun
358+
@bseiller, @dhashvir, @Lucas-C, @mmacvicar, @Nek-, @netdreamer, @omretterry, @pantoninho, @photonstorm, @samme, @seiyria, @squaresun, @Tembac, @wtravO
418359

419360
For changes in previous releases please see the extensive [Change Log](https://github.com/photonstorm/phaser-ce/blob/master/CHANGELOG.md).
420361

@@ -438,10 +379,10 @@ All rights reserved.
438379

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

441-
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.0/phaser.js
442-
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.0/phaser.min.js
443-
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.10.0.zip
444-
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.10.0.tar.gz
382+
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.1/phaser.js
383+
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.1/phaser.min.js
384+
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.10.1.zip
385+
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.10.1.tar.gz
445386
[clone-http]: https://github.com/photonstorm/phaser.git
446387
[clone-ssh]: ssh://git@github.com:photonstorm/phaser.git
447388
[clone-svn]: https://github.com/photonstorm/phaser

build/custom/README.md

-27
This file was deleted.

build/custom/creature.min.js

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

build/custom/p2.min.js

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

0 commit comments

Comments
 (0)