State swap example done and working.

This commit is contained in:
Richard Davey
2013-09-13 05:44:04 +01:00
parent fd0a071cb3
commit 7c6e6df91a
13 changed files with 282 additions and 11 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
/**
* State
*
* This is a base State class which can be extended if you are creating your game with TypeScript.
* This is a base State class which can be extended if you are creating your own game.
* It provides quick access to common functions such as the camera, cache, input, match, sound and more.
*
* @package Phaser.State
@@ -18,7 +18,7 @@ Phaser.State = function () {
this.cache = null;
this.input = null;
this.load = null;
// this.math = null;
this.math = null;
this.sound = null;
this.stage = null;
this.time = null;
@@ -39,7 +39,7 @@ Phaser.State.prototype = {
this.cache = game.cache;
this.input = game.input;
this.load = game.load;
// this.math = game.math;
this.math = game.math;
this.sound = game.sound;
this.stage = game.stage;
this.time = game.time;