Skip to content

Commit 6750474

Browse files
authored
Merge pull request #536 from photonstorm/release/v2.10.5
Phaser CE Version 2.10.5
2 parents 7ce2d69 + 9c1a36d commit 6750474

File tree

218 files changed

+7632
-7587
lines changed

Some content is hidden

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

218 files changed

+7632
-7587
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

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

7+
## Version 2.10.5 - 8th May 2018
8+
9+
### Bug Fixes
10+
11+
* 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).
12+
713
## Version 2.10.4 - 3rd May 2018
814

915
### New Features

README.md

Lines changed: 10 additions & 41 deletions
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.4](https://github.com/photonstorm/phaser-ce/releases/tag/v2.10.4).
11+
The [current Phaser CE release is 2.10.5](https://github.com/photonstorm/phaser-ce/releases/tag/v2.10.5).
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.4/build/phaser.js"></script>
131+
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.5/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.4"></script>
137+
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.5"></script>
138138
```
139139

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

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

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

329329
# Change Log
330330

331-
## Version 2.10.4 - 3rd May 2018
332-
333-
### New Features
334-
335-
* Phaser.Text#testString is the character string used to calculate the text's width and height.
336-
* Ellipse#centerX
337-
* Ellipse#centerY
338-
339-
### Updates
340-
341-
* Callbacks added with Phaser.Input#addMoveCallback receive an `event` parameter.
331+
## Version 2.10.5 - 8th May 2018
342332

343333
### Bug Fixes
344334

345-
* Fixed a bogus warning when selecting tilemap layer 0 (#511).
346-
* Fixed wrong position in Ellipse#random (#522).
347-
* Fixed an Animation skipping the final frame in low-FPS situations (#524).
348-
* Fixed wrong ellipse position in Debug#geom (#526).
349-
* Fixed `forceType` failing to override some geometry types in Debug#geom.
350-
* Fixed unnecessary text updates when using Text#setText with `immediate=true` (#525).
351-
* Fixed issues restarting a Sound in Firefox (#530).
352-
* Fixed an IndexSizeError in Edge/Firefox when a very small texture crop rectangle is used (#532).
353-
354-
### TypeScript definitions
355-
356-
* Corrected definitions for ContactMaterial#frictionStiffness, Convex (#513).
357-
358-
### Documentation
359-
360-
* Fixed typos (#517, #521).
361-
* The Tilemap methods fill, random, replace, shuffle, and swap modify the tile index only (#484).
362-
* The special GameConfig.transparent value 'notMultiplied' disables the WebGL context attribute `premultipliedAlpha`.
363-
364-
### Thanks
365-
366-
@budda, @Hagisus, @HaoboZ, @hardylr, @intersrc, @jamesjsewell, @josalmi, @joshlory, @melissaelopez, @mickeyren, @photonstorm, @samme, @tobspr
335+
* 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).
367336

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

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

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

390-
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.4/phaser.js
391-
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.4/phaser.min.js
392-
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.10.4.zip
393-
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.10.4.tar.gz
359+
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.5/phaser.js
360+
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.5/phaser.min.js
361+
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.10.5.zip
362+
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.10.5.tar.gz
394363
[clone-http]: https://github.com/photonstorm/phaser.git
395364
[clone-ssh]: ssh://git@github.com:photonstorm/phaser.git
396365
[clone-svn]: https://github.com/photonstorm/phaser

build/custom/creature.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/custom/p2.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/custom/phaser-arcade-physics.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Phaser - http://phaser.io
99
*
10-
* v2.10.4 "2018-05-03" - Built: Thu May 03 2018 15:47:45
10+
* v2.10.5 "2018-05-08" - Built: Tue May 08 2018 12:21:20
1111
*
1212
* By Richard Davey http://www.photonstorm.com @photonstorm
1313
*
@@ -7596,7 +7596,7 @@ var Phaser = Phaser || { // jshint ignore:line
75967596
* @constant Phaser.VERSION
75977597
* @type {string}
75987598
*/
7599-
VERSION: '2.10.4',
7599+
VERSION: '2.10.5',
76007600

76017601
/**
76027602
* An array of Phaser game instances.
@@ -66883,6 +66883,12 @@ Phaser.SoundManager = function (game) {
6688366883
*/
6688466884
this._watchContext = null;
6688566885

66886+
/**
66887+
* @property {function} _resumeWebAudioOnClick - Bound 'click' handler. Added in boot(), if necessary.
66888+
* @private
66889+
*/
66890+
this._resumeWebAudioOnClick = this._resumeWebAudioOnClick.bind(this);
66891+
6688666892
};
6688766893

6688866894
Phaser.SoundManager.prototype = {
@@ -66980,7 +66986,7 @@ Phaser.SoundManager.prototype = {
6698066986
// In that case the input handler will do nothing, which is fine.
6698166987
if (this.context.state === 'suspended')
6698266988
{
66983-
this.game.input.onUp.addOnce(this.resumeWebAudio, this);
66989+
this.game.canvas.addEventListener('click', this._resumeWebAudioOnClick);
6698466990
}
6698566991
}
6698666992

@@ -67510,6 +67516,8 @@ Phaser.SoundManager.prototype = {
6751067516

6751167517
this.onSoundDecode.dispose();
6751267518

67519+
this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);
67520+
6751367521
if (this.context)
6751467522
{
6751567523
if (window.PhaserGlobal)
@@ -67526,6 +67534,12 @@ Phaser.SoundManager.prototype = {
6752667534
}
6752767535
}
6752867536

67537+
},
67538+
67539+
_resumeWebAudioOnClick: function () {
67540+
this.resumeWebAudio();
67541+
67542+
this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);
6752967543
}
6753067544

6753167545
};

build/custom/phaser-arcade-physics.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/custom/phaser-arcade-physics.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/custom/phaser-creature.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Phaser - http://phaser.io
99
*
10-
* v2.10.4 "2018-05-03" - Built: Thu May 03 2018 15:48:14
10+
* v2.10.5 "2018-05-08" - Built: Tue May 08 2018 12:21:49
1111
*
1212
* By Richard Davey http://www.photonstorm.com @photonstorm
1313
*
@@ -53,7 +53,7 @@ var Phaser = Phaser || { // jshint ignore:line
5353
* @constant Phaser.VERSION
5454
* @type {string}
5555
*/
56-
VERSION: '2.10.4',
56+
VERSION: '2.10.5',
5757

5858
/**
5959
* An array of Phaser game instances.
@@ -59340,6 +59340,12 @@ Phaser.SoundManager = function (game) {
5934059340
*/
5934159341
this._watchContext = null;
5934259342

59343+
/**
59344+
* @property {function} _resumeWebAudioOnClick - Bound 'click' handler. Added in boot(), if necessary.
59345+
* @private
59346+
*/
59347+
this._resumeWebAudioOnClick = this._resumeWebAudioOnClick.bind(this);
59348+
5934359349
};
5934459350

5934559351
Phaser.SoundManager.prototype = {
@@ -59437,7 +59443,7 @@ Phaser.SoundManager.prototype = {
5943759443
// In that case the input handler will do nothing, which is fine.
5943859444
if (this.context.state === 'suspended')
5943959445
{
59440-
this.game.input.onUp.addOnce(this.resumeWebAudio, this);
59446+
this.game.canvas.addEventListener('click', this._resumeWebAudioOnClick);
5944159447
}
5944259448
}
5944359449

@@ -59967,6 +59973,8 @@ Phaser.SoundManager.prototype = {
5996759973

5996859974
this.onSoundDecode.dispose();
5996959975

59976+
this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);
59977+
5997059978
if (this.context)
5997159979
{
5997259980
if (window.PhaserGlobal)
@@ -59983,6 +59991,12 @@ Phaser.SoundManager.prototype = {
5998359991
}
5998459992
}
5998559993

59994+
},
59995+
59996+
_resumeWebAudioOnClick: function () {
59997+
this.resumeWebAudio();
59998+
59999+
this.game.canvas.removeEventListener('click', this._resumeWebAudioOnClick);
5998660000
}
5998760001

5998860002
};

build/custom/phaser-creature.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/custom/phaser-creature.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)