Mummy attack :)

This commit is contained in:
Richard Davey
2013-08-30 18:56:10 +01:00
parent e77f5da2cd
commit 54d98944e4
6 changed files with 112 additions and 53 deletions
+6 -34
View File
@@ -243,7 +243,8 @@ Phaser.Game.prototype = {
return;
}
if (!document.body) {
if (!document.body)
{
window.setTimeout(this._onBoot, 20);
}
else
@@ -351,42 +352,13 @@ Phaser.Game.prototype = {
// this.stage.update();
// this.sound.update();
// this.physics.update();
// this.world.update();
this.world.update();
this.state.update();
this.plugins.update();
if (this._loadComplete)
{
this.state.update();
// this.world.postUpdate();
this.plugins.postUpdate();
this.plugins.preRender();
this.renderer.render(this.world._stage);
this.state.preRender();
this.renderer.render(this.world._stage);
this.plugins.render();
this.state.render();
this.plugins.postRender();
}
else
{
// Still loading assets
this.state.loadUpdate();
// this.world.postUpdate();
this.plugins.postUpdate();
this.plugins.preRender();
this.renderer.render(this.world._stage);
this.plugins.render();
this.state.loadRender();
this.plugins.postRender();
}
this.plugins.postRender();
},