mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
State swap example done and working.
This commit is contained in:
+15
-1
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user