Skip to content

Commit

Permalink
Merge pull request #536 from photonstorm/release/v2.10.5
Browse files Browse the repository at this point in the history
Phaser CE Version 2.10.5
  • Loading branch information
photonstorm committed May 8, 2018
2 parents 7ce2d69 + 9c1a36d commit 6750474
Show file tree
Hide file tree
Showing 218 changed files with 7,632 additions and 7,587 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

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

## Version 2.10.5 - 8th May 2018

### Bug Fixes

* Phaser could fail to resume a suspended Web Audio context if the mouse cursor left the browser window before clicking on the game canvas (#437).

## Version 2.10.4 - 3rd May 2018

### New Features
Expand Down
51 changes: 10 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Thousands of developers worldwide use Phaser. From indies and multi-national dig

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.

The [current Phaser CE release is 2.10.4](https://github.com/photonstorm/phaser-ce/releases/tag/v2.10.4).
The [current Phaser CE release is 2.10.5](https://github.com/photonstorm/phaser-ce/releases/tag/v2.10.5).

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

```html
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.4/build/phaser.js"></script>
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.5/build/phaser.js"></script>
```

or the minified version:

```html
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.4"></script>
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.5"></script>
```

[Custom builds](https://cdn.jsdelivr.net/npm/phaser-ce@2.10.4/build/custom/) are available too.
[Custom builds](https://cdn.jsdelivr.net/npm/phaser-ce@2.10.5/build/custom/) are available too.

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

Expand Down Expand Up @@ -328,42 +328,11 @@ Written something cool in Phaser? Please tell us about it in the [forum][forum],

# Change Log

## Version 2.10.4 - 3rd May 2018

### New Features

* Phaser.Text#testString is the character string used to calculate the text's width and height.
* Ellipse#centerX
* Ellipse#centerY

### Updates

* Callbacks added with Phaser.Input#addMoveCallback receive an `event` parameter.
## Version 2.10.5 - 8th May 2018

### Bug Fixes

* Fixed a bogus warning when selecting tilemap layer 0 (#511).
* Fixed wrong position in Ellipse#random (#522).
* Fixed an Animation skipping the final frame in low-FPS situations (#524).
* Fixed wrong ellipse position in Debug#geom (#526).
* Fixed `forceType` failing to override some geometry types in Debug#geom.
* Fixed unnecessary text updates when using Text#setText with `immediate=true` (#525).
* Fixed issues restarting a Sound in Firefox (#530).
* Fixed an IndexSizeError in Edge/Firefox when a very small texture crop rectangle is used (#532).

### TypeScript definitions

* Corrected definitions for ContactMaterial#frictionStiffness, Convex (#513).

### Documentation

* Fixed typos (#517, #521).
* The Tilemap methods fill, random, replace, shuffle, and swap modify the tile index only (#484).
* The special GameConfig.transparent value 'notMultiplied' disables the WebGL context attribute `premultipliedAlpha`.

### Thanks

@budda, @Hagisus, @HaoboZ, @hardylr, @intersrc, @jamesjsewell, @josalmi, @joshlory, @melissaelopez, @mickeyren, @photonstorm, @samme, @tobspr
* Phaser could fail to resume a suspended Web Audio context if the mouse cursor left the browser window before clicking on the game canvas (#437).

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

Expand All @@ -387,10 +356,10 @@ All rights reserved.

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

[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.4/phaser.js
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.4/phaser.min.js
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.10.4.zip
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.10.4.tar.gz
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.5/phaser.js
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.5/phaser.min.js
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.10.5.zip
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.10.5.tar.gz
[clone-http]: https://github.com/photonstorm/phaser.git
[clone-ssh]: ssh://git@github.com:photonstorm/phaser.git
[clone-svn]: https://github.com/photonstorm/phaser
Expand Down
2 changes: 1 addition & 1 deletion build/custom/creature.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/custom/p2.min.js

Large diffs are not rendered by default.

20 changes: 17 additions & 3 deletions build/custom/phaser-arcade-physics.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Phaser - http://phaser.io
*
* v2.10.4 "2018-05-03" - Built: Thu May 03 2018 15:47:45
* v2.10.5 "2018-05-08" - Built: Tue May 08 2018 12:21:20
*
* By Richard Davey http://www.photonstorm.com @photonstorm
*
Expand Down Expand Up @@ -7596,7 +7596,7 @@ var Phaser = Phaser || { // jshint ignore:line
* @constant Phaser.VERSION
* @type {string}
*/
VERSION: '2.10.4',
VERSION: '2.10.5',

/**
* An array of Phaser game instances.
Expand Down Expand Up @@ -66883,6 +66883,12 @@ Phaser.SoundManager = function (game) {
*/
this._watchContext = null;

/**
* @property {function} _resumeWebAudioOnClick - Bound 'click' handler. Added in boot(), if necessary.
* @private
*/
this._resumeWebAudioOnClick = this._resumeWebAudioOnClick.bind(this);

};

Phaser.SoundManager.prototype = {
Expand Down Expand Up @@ -66980,7 +66986,7 @@ Phaser.SoundManager.prototype = {
// In that case the input handler will do nothing, which is fine.
if (this.context.state === 'suspended')
{
this.game.input.onUp.addOnce(this.resumeWebAudio, this);
this.game.canvas.addEventListener('click', this._resumeWebAudioOnClick);
}
}

Expand Down Expand Up @@ -67510,6 +67516,8 @@ Phaser.SoundManager.prototype = {

this.onSoundDecode.dispose();

this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);

if (this.context)
{
if (window.PhaserGlobal)
Expand All @@ -67526,6 +67534,12 @@ Phaser.SoundManager.prototype = {
}
}

},

_resumeWebAudioOnClick: function () {
this.resumeWebAudio();

this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);
}

};
Expand Down
2 changes: 1 addition & 1 deletion build/custom/phaser-arcade-physics.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/custom/phaser-arcade-physics.min.js

Large diffs are not rendered by default.

20 changes: 17 additions & 3 deletions build/custom/phaser-creature.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Phaser - http://phaser.io
*
* v2.10.4 "2018-05-03" - Built: Thu May 03 2018 15:48:14
* v2.10.5 "2018-05-08" - Built: Tue May 08 2018 12:21:49
*
* By Richard Davey http://www.photonstorm.com @photonstorm
*
Expand Down Expand Up @@ -53,7 +53,7 @@ var Phaser = Phaser || { // jshint ignore:line
* @constant Phaser.VERSION
* @type {string}
*/
VERSION: '2.10.4',
VERSION: '2.10.5',

/**
* An array of Phaser game instances.
Expand Down Expand Up @@ -59340,6 +59340,12 @@ Phaser.SoundManager = function (game) {
*/
this._watchContext = null;

/**
* @property {function} _resumeWebAudioOnClick - Bound 'click' handler. Added in boot(), if necessary.
* @private
*/
this._resumeWebAudioOnClick = this._resumeWebAudioOnClick.bind(this);

};

Phaser.SoundManager.prototype = {
Expand Down Expand Up @@ -59437,7 +59443,7 @@ Phaser.SoundManager.prototype = {
// In that case the input handler will do nothing, which is fine.
if (this.context.state === 'suspended')
{
this.game.input.onUp.addOnce(this.resumeWebAudio, this);
this.game.canvas.addEventListener('click', this._resumeWebAudioOnClick);
}
}

Expand Down Expand Up @@ -59967,6 +59973,8 @@ Phaser.SoundManager.prototype = {

this.onSoundDecode.dispose();

this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);

if (this.context)
{
if (window.PhaserGlobal)
Expand All @@ -59983,6 +59991,12 @@ Phaser.SoundManager.prototype = {
}
}

},

_resumeWebAudioOnClick: function () {
this.resumeWebAudio();

this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);
}

};
Expand Down
2 changes: 1 addition & 1 deletion build/custom/phaser-creature.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/custom/phaser-creature.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/custom/phaser-minimum.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Phaser - http://phaser.io
*
* v2.10.4 "2018-05-03" - Built: Thu May 03 2018 15:47:58
* v2.10.5 "2018-05-08" - Built: Tue May 08 2018 12:21:33
*
* By Richard Davey http://www.photonstorm.com @photonstorm
*
Expand Down Expand Up @@ -7596,7 +7596,7 @@ var Phaser = Phaser || { // jshint ignore:line
* @constant Phaser.VERSION
* @type {string}
*/
VERSION: '2.10.4',
VERSION: '2.10.5',

/**
* An array of Phaser game instances.
Expand Down
4 changes: 2 additions & 2 deletions build/custom/phaser-minimum.min.js

Large diffs are not rendered by default.

20 changes: 17 additions & 3 deletions build/custom/phaser-no-physics.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Phaser - http://phaser.io
*
* v2.10.4 "2018-05-03" - Built: Thu May 03 2018 15:47:52
* v2.10.5 "2018-05-08" - Built: Tue May 08 2018 12:21:27
*
* By Richard Davey http://www.photonstorm.com @photonstorm
*
Expand Down Expand Up @@ -7596,7 +7596,7 @@ var Phaser = Phaser || { // jshint ignore:line
* @constant Phaser.VERSION
* @type {string}
*/
VERSION: '2.10.4',
VERSION: '2.10.5',

/**
* An array of Phaser game instances.
Expand Down Expand Up @@ -66883,6 +66883,12 @@ Phaser.SoundManager = function (game) {
*/
this._watchContext = null;

/**
* @property {function} _resumeWebAudioOnClick - Bound 'click' handler. Added in boot(), if necessary.
* @private
*/
this._resumeWebAudioOnClick = this._resumeWebAudioOnClick.bind(this);

};

Phaser.SoundManager.prototype = {
Expand Down Expand Up @@ -66980,7 +66986,7 @@ Phaser.SoundManager.prototype = {
// In that case the input handler will do nothing, which is fine.
if (this.context.state === 'suspended')
{
this.game.input.onUp.addOnce(this.resumeWebAudio, this);
this.game.canvas.addEventListener('click', this._resumeWebAudioOnClick);
}
}

Expand Down Expand Up @@ -67510,6 +67516,8 @@ Phaser.SoundManager.prototype = {

this.onSoundDecode.dispose();

this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);

if (this.context)
{
if (window.PhaserGlobal)
Expand All @@ -67526,6 +67534,12 @@ Phaser.SoundManager.prototype = {
}
}

},

_resumeWebAudioOnClick: function () {
this.resumeWebAudio();

this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);
}

};
Expand Down
2 changes: 1 addition & 1 deletion build/custom/phaser-no-physics.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/custom/phaser-no-physics.min.js

Large diffs are not rendered by default.

20 changes: 17 additions & 3 deletions build/custom/phaser-split.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Phaser - http://phaser.io
*
* v2.10.4 "2018-05-03" - Built: Thu May 03 2018 15:48:04
* v2.10.5 "2018-05-08" - Built: Tue May 08 2018 12:21:40
*
* By Richard Davey http://www.photonstorm.com @photonstorm
*
Expand Down Expand Up @@ -53,7 +53,7 @@ var Phaser = Phaser || { // jshint ignore:line
* @constant Phaser.VERSION
* @type {string}
*/
VERSION: '2.10.4',
VERSION: '2.10.5',

/**
* An array of Phaser game instances.
Expand Down Expand Up @@ -59340,6 +59340,12 @@ Phaser.SoundManager = function (game) {
*/
this._watchContext = null;

/**
* @property {function} _resumeWebAudioOnClick - Bound 'click' handler. Added in boot(), if necessary.
* @private
*/
this._resumeWebAudioOnClick = this._resumeWebAudioOnClick.bind(this);

};

Phaser.SoundManager.prototype = {
Expand Down Expand Up @@ -59437,7 +59443,7 @@ Phaser.SoundManager.prototype = {
// In that case the input handler will do nothing, which is fine.
if (this.context.state === 'suspended')
{
this.game.input.onUp.addOnce(this.resumeWebAudio, this);
this.game.canvas.addEventListener('click', this._resumeWebAudioOnClick);
}
}

Expand Down Expand Up @@ -59967,6 +59973,8 @@ Phaser.SoundManager.prototype = {

this.onSoundDecode.dispose();

this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);

if (this.context)
{
if (window.PhaserGlobal)
Expand All @@ -59983,6 +59991,12 @@ Phaser.SoundManager.prototype = {
}
}

},

_resumeWebAudioOnClick: function () {
this.resumeWebAudio();

this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);
}

};
Expand Down
2 changes: 1 addition & 1 deletion build/custom/phaser-split.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/custom/phaser-split.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/custom/pixi.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Phaser - http://phaser.io
*
* v2.10.4 "2018-05-03" - Built: Thu May 03 2018 15:48:14
* v2.10.5 "2018-05-08" - Built: Tue May 08 2018 12:21:48
*
* By Richard Davey http://www.photonstorm.com @photonstorm
*
Expand Down
2 changes: 1 addition & 1 deletion build/custom/pixi.min.js

Large diffs are not rendered by default.

0 comments on commit 6750474

Please sign in to comment.