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
+15 -1
View File
@@ -107,7 +107,21 @@ Phaser.World.prototype = {
this.bounds.height = height;
}
}
},
/**
* Destroyer of worlds.
*/
destroy: function () {
this.camera.x = 0;
this.camera.y = 0;
this.game.input.reset(true);
this.group.removeAll();
}
};