New filters and demos: LightBeams, Fire and Tunnel. Also Loader can now load script files.

This commit is contained in:
photonstorm
2013-11-28 05:43:35 +00:00
parent 39025c1c2a
commit 780b8a5d6d
22 changed files with 546 additions and 13 deletions
+29
View File
@@ -110,6 +110,9 @@ Phaser.StateManager.prototype = {
*/
boot: function () {
this.game.onPause.add(this.pause, this);
this.game.onResume.add(this.resume, this);
if (this._pendingState !== null)
{
if (typeof this._pendingState === 'string')
@@ -392,6 +395,32 @@ Phaser.StateManager.prototype = {
},
/**
* @method Phaser.StateManager#pause
* @protected
*/
pause: function () {
if (this._created && this.onPausedCallback)
{
this.onPausedCallback.call(this.callbackContext, this.game, true);
}
},
/**
* @method Phaser.StateManager#resume
* @protected
*/
resume: function () {
if (this._created && this.onre)
{
this.onPausedCallback.call(this.callbackContext, this.game, false);
}
},
/**
* @method Phaser.StateManager#update
* @protected