mirror of
https://github.com/wassname/phaser.git
synced 2026-09-10 12:29:30 +08:00
StateManager improving in leaps and bounds.
This commit is contained in:
+2
-4
@@ -37,10 +37,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
var game = new Phaser.Game();
|
||||
|
||||
// This method now works either from within a closure or not
|
||||
game.switchState(state);
|
||||
// In this example we're passing in a custom state object, not an instance of Phaser.State
|
||||
var game = new Phaser.Game(800, 600, Phaser.RENDERER_AUTO, '', state);
|
||||
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user