Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

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

## Version 2.10.3 - 21st March 2018

### Bug Fixes

* Fixed an error when activating a Cocoon application (#506).

### Thanks

@KIVassilev, @photonstorm, @samme

## Version 2.10.2 - 15th March 2018

### New Features
Expand Down Expand Up @@ -53,7 +63,7 @@ See [README: Change Log: Unreleased](README.md#unreleased).
* 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).
* Fixed spelling error in API documentation (#458).
* Fixed some TypeScript definitions (#442, #447, #455, #460, #462, #463, #469, #475).
* 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).
* 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 (#467). Make sure you give the container a [height](https://developer.mozilla.org/en-US/docs/Web/CSS/height).
* Fixed [State#loadUpdate](https://photonstorm.github.io/phaser-ce/Phaser.State.html#loadUpdate) being called once when no assets have been loaded (#468).
* Fixed [Debug#spriteInfo](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#spriteInfo) failing to show `sprite.name` as promised (#471).

Expand Down
40 changes: 11 additions & 29 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.2](https://github.com/photonstorm/phaser-ce/releases/tag/v2.10.2).
The [current Phaser CE release is 2.10.3](https://github.com/photonstorm/phaser-ce/releases/tag/v2.10.3).

- **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.2/build/phaser.js"></script>
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.3/build/phaser.js"></script>
```

or the minified version:

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

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

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

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

# Change Log

## Version 2.10.2 - 15th March 2018

### New Features

* You can set [clearBeforeRender](https://photonstorm.github.io/phaser-ce/global.html#GameConfig) when creating the game (#481).

### Updates

* Phaser tries to resume a suspended WebAudio context after a user click/tap on any device (#437, #482).
## Version 2.10.3 - 21st March 2018

### Bug Fixes

* Phaser.Text objects show the correct [type](https://photonstorm.github.io/phaser-ce/Phaser.Text.html#type) (#479).
* [game.add.plugin](https://photonstorm.github.io/phaser-ce/Phaser.GameObjectFactory.html#plugin) forwards all arguments to [game.plugins.add](https://photonstorm.github.io/phaser-ce/Phaser.PluginManager.html#add) (#486).
* [Phaser.Signal#memorized](https://photonstorm.github.io/phaser-ce/Phaser.Signal.html#memorize) works correctly after only one listener is added (#495).

### TypeScript

* PIXI.Rectangle includes more of Phaser.Rectangle's properties (#491).

### Documentation

* Game Objects show [width](https://photonstorm.github.io/phaser-ce/PIXI.DisplayObjectContainer.html#width) and [height](https://photonstorm.github.io/phaser-ce/PIXI.DisplayObjectContainer.html#height) properties (#488).
* Fixed an error when activating a Cocoon application (#506).

### Thanks

@KIVassilev, @koalaylj, @photonstorm, @RedPanduzer, @samme, @Siri0n
@KIVassilev, @photonstorm, @samme

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

Expand All @@ -378,10 +360,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.2/phaser.js
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.2/phaser.min.js
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.10.2.zip
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.10.2.tar.gz
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.3/phaser.js
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.3/phaser.min.js
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.10.3.zip
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.10.3.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.

8 changes: 4 additions & 4 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.2 "2018-03-15" - Built: Thu Mar 15 2018 17:35:14
* v2.10.3 "2018-03-22" - Built: Thu Mar 22 2018 10:07:01
*
* By Richard Davey http://www.photonstorm.com @photonstorm
*
Expand Down Expand Up @@ -7591,7 +7591,7 @@ var Phaser = Phaser || { // jshint ignore:line
* @constant Phaser.VERSION
* @type {string}
*/
VERSION: '2.10.2',
VERSION: '2.10.3',

/**
* An array of Phaser game instances.
Expand Down Expand Up @@ -17600,11 +17600,11 @@ Phaser.Stage.prototype.checkVisibility = function () {
};

this._onChangePause = function () {
return this._onChange({ type: 'pause' });
return _this._onChange({ type: 'pause' });
};

this._onChangeResume = function () {
return this._onChange({ type: 'resume' });
return _this._onChange({ type: 'resume' });
};

this._onClick = function (event) {
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.

8 changes: 4 additions & 4 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.2 "2018-03-15" - Built: Thu Mar 15 2018 17:35:44
* v2.10.3 "2018-03-22" - Built: Thu Mar 22 2018 10:07:30
*
* 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.2',
VERSION: '2.10.3',

/**
* An array of Phaser game instances.
Expand Down Expand Up @@ -10062,11 +10062,11 @@ Phaser.Stage.prototype.checkVisibility = function () {
};

this._onChangePause = function () {
return this._onChange({ type: 'pause' });
return _this._onChange({ type: 'pause' });
};

this._onChangeResume = function () {
return this._onChange({ type: 'resume' });
return _this._onChange({ type: 'resume' });
};

this._onClick = function (event) {
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.

8 changes: 4 additions & 4 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.2 "2018-03-15" - Built: Thu Mar 15 2018 17:35:27
* v2.10.3 "2018-03-22" - Built: Thu Mar 22 2018 10:07:14
*
* By Richard Davey http://www.photonstorm.com @photonstorm
*
Expand Down Expand Up @@ -7591,7 +7591,7 @@ var Phaser = Phaser || { // jshint ignore:line
* @constant Phaser.VERSION
* @type {string}
*/
VERSION: '2.10.2',
VERSION: '2.10.3',

/**
* An array of Phaser game instances.
Expand Down Expand Up @@ -17600,11 +17600,11 @@ Phaser.Stage.prototype.checkVisibility = function () {
};

this._onChangePause = function () {
return this._onChange({ type: 'pause' });
return _this._onChange({ type: 'pause' });
};

this._onChangeResume = function () {
return this._onChange({ type: 'resume' });
return _this._onChange({ type: 'resume' });
};

this._onClick = function (event) {
Expand Down
2 changes: 1 addition & 1 deletion build/custom/phaser-minimum.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

8 changes: 4 additions & 4 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.2 "2018-03-15" - Built: Thu Mar 15 2018 17:35:21
* v2.10.3 "2018-03-22" - Built: Thu Mar 22 2018 10:07:08
*
* By Richard Davey http://www.photonstorm.com @photonstorm
*
Expand Down Expand Up @@ -7591,7 +7591,7 @@ var Phaser = Phaser || { // jshint ignore:line
* @constant Phaser.VERSION
* @type {string}
*/
VERSION: '2.10.2',
VERSION: '2.10.3',

/**
* An array of Phaser game instances.
Expand Down Expand Up @@ -17600,11 +17600,11 @@ Phaser.Stage.prototype.checkVisibility = function () {
};

this._onChangePause = function () {
return this._onChange({ type: 'pause' });
return _this._onChange({ type: 'pause' });
};

this._onChangeResume = function () {
return this._onChange({ type: 'resume' });
return _this._onChange({ type: 'resume' });
};

this._onClick = function (event) {
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.

8 changes: 4 additions & 4 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.2 "2018-03-15" - Built: Thu Mar 15 2018 17:35:34
* v2.10.3 "2018-03-22" - Built: Thu Mar 22 2018 10:07:20
*
* 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.2',
VERSION: '2.10.3',

/**
* An array of Phaser game instances.
Expand Down Expand Up @@ -10062,11 +10062,11 @@ Phaser.Stage.prototype.checkVisibility = function () {
};

this._onChangePause = function () {
return this._onChange({ type: 'pause' });
return _this._onChange({ type: 'pause' });
};

this._onChangeResume = function () {
return this._onChange({ type: 'resume' });
return _this._onChange({ type: 'resume' });
};

this._onClick = function (event) {
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.2 "2018-03-15" - Built: Thu Mar 15 2018 17:35:43
* v2.10.3 "2018-03-22" - Built: Thu Mar 22 2018 10:07:29
*
* 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.

8 changes: 4 additions & 4 deletions build/phaser.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Phaser - http://phaser.io
*
* v2.10.2 "2018-03-15" - Built: Thu Mar 15 2018 17:35:04
* v2.10.3 "2018-03-22" - Built: Thu Mar 22 2018 10:06:51
*
* By Richard Davey http://www.photonstorm.com @photonstorm
*
Expand Down Expand Up @@ -21213,7 +21213,7 @@ var Phaser = Phaser || { // jshint ignore:line
* @constant Phaser.VERSION
* @type {string}
*/
VERSION: '2.10.2',
VERSION: '2.10.3',

/**
* An array of Phaser game instances.
Expand Down Expand Up @@ -31222,11 +31222,11 @@ Phaser.Stage.prototype.checkVisibility = function () {
};

this._onChangePause = function () {
return this._onChange({ type: 'pause' });
return _this._onChange({ type: 'pause' });
};

this._onChangeResume = function () {
return this._onChange({ type: 'resume' });
return _this._onChange({ type: 'resume' });
};

this._onClick = function (event) {
Expand Down
2 changes: 1 addition & 1 deletion build/phaser.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/CreatureShader.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Phaser CE Class: CreatureShader</title>
<link rel="stylesheet" href="styles/site.phaser.css?2018031517">
<link rel="stylesheet" href="styles/site.phaser.css?2018032210">
</head>

<body>
Expand Down Expand Up @@ -224,7 +224,7 @@ <h5>Parameters:</h5>
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
<dd class="tag-source">

<a href="https://github.com/photonstorm/phaser-ce/blob/v2.10.2/src/gameobjects/Creature.js#L16" title="CreatureShader on line 16 of src/gameobjects/Creature.js">src/gameobjects/Creature.js line 16</a>
<a href="https://github.com/photonstorm/phaser-ce/blob/v2.10.3/src/gameobjects/Creature.js#L16" title="CreatureShader on line 16 of src/gameobjects/Creature.js">src/gameobjects/Creature.js line 16</a>



Expand Down Expand Up @@ -329,7 +329,7 @@ <h5>Type:</h5>
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
<dd class="tag-source">

<a href="https://github.com/photonstorm/phaser-ce/blob/v2.10.2/src/gameobjects/Creature.js#L43" title="fragmentSrc on line 43 of src/gameobjects/Creature.js">src/gameobjects/Creature.js line 43</a>
<a href="https://github.com/photonstorm/phaser-ce/blob/v2.10.3/src/gameobjects/Creature.js#L43" title="fragmentSrc on line 43 of src/gameobjects/Creature.js">src/gameobjects/Creature.js line 43</a>



Expand Down Expand Up @@ -402,7 +402,7 @@ <h5>Type:</h5>
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
<dd class="tag-source">

<a href="https://github.com/photonstorm/phaser-ce/blob/v2.10.2/src/gameobjects/Creature.js#L29" title="gl on line 29 of src/gameobjects/Creature.js">src/gameobjects/Creature.js line 29</a>
<a href="https://github.com/photonstorm/phaser-ce/blob/v2.10.3/src/gameobjects/Creature.js#L29" title="gl on line 29 of src/gameobjects/Creature.js">src/gameobjects/Creature.js line 29</a>



Expand Down Expand Up @@ -479,7 +479,7 @@ <h5>Type:</h5>
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
<dd class="tag-source">

<a href="https://github.com/photonstorm/phaser-ce/blob/v2.10.2/src/gameobjects/Creature.js#L36" title="program on line 36 of src/gameobjects/Creature.js">src/gameobjects/Creature.js line 36</a>
<a href="https://github.com/photonstorm/phaser-ce/blob/v2.10.3/src/gameobjects/Creature.js#L36" title="program on line 36 of src/gameobjects/Creature.js">src/gameobjects/Creature.js line 36</a>



Expand Down Expand Up @@ -556,7 +556,7 @@ <h5>Type:</h5>
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
<dd class="tag-source">

<a href="https://github.com/photonstorm/phaser-ce/blob/v2.10.2/src/gameobjects/Creature.js#L62" title="vertexSrc on line 62 of src/gameobjects/Creature.js">src/gameobjects/Creature.js line 62</a>
<a href="https://github.com/photonstorm/phaser-ce/blob/v2.10.3/src/gameobjects/Creature.js#L62" title="vertexSrc on line 62 of src/gameobjects/Creature.js">src/gameobjects/Creature.js line 62</a>



Expand Down Expand Up @@ -589,9 +589,9 @@ <h5>Type:</h5>


<p class="package-signature">
phaser-ce@2.10.2
phaser-ce@2.10.3
is on
<a href="https://github.com/photonstorm/phaser-ce/releases/tag/v2.10.2">GitHub</a>
<a href="https://github.com/photonstorm/phaser-ce/releases/tag/v2.10.3">GitHub</a>
and
<a href="https://www.npmjs.com/package/phaser-ce">NPM</a>
</p>
Expand All @@ -608,7 +608,7 @@ <h5>Type:</h5>
<p class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.4</a>

on 2018-03-15
on 2018-03-22

using <a href="https://github.com/photonstorm/phaser-ce/tree/master/resources/docstrap-master">Tomorrow</a>.
</p>
Expand Down Expand Up @@ -637,7 +637,7 @@ <h5>Type:</h5>
</div>
</div>

<script defer src="scripts/bundle.js?2018031517"></script>
<script defer src="scripts/bundle.js?2018032210"></script>



Expand Down
Loading