Lots of work on Group and also resolved the issue of the core game loop structure not being quite right.

This commit is contained in:
Richard Davey
2013-09-06 15:00:05 +01:00
parent 0c97e8e151
commit 822a2df289
9 changed files with 1003 additions and 344 deletions
+17 -13
View File
@@ -375,23 +375,27 @@ Phaser.Game.prototype = {
this.time.update(time);
this.plugins.preUpdate();
this.physics.preUpdate();
if (!this.paused)
{
this.plugins.preUpdate();
// this.world.preUpdate();
this.physics.preUpdate();
this.input.update();
this.tweens.update();
this.sound.update();
this.world.update();
this.state.update();
this.plugins.update();
this.input.update();
this.tweens.update();
this.sound.update();
this.world.update();
this.state.update();
this.plugins.update();
this.renderer.render(this.world._stage);
this.state.render();
this.renderer.render(this.world._stage);
this.state.render();
this.world.postUpdate();
this.physics.postUpdate();
// this.world.postUpdate();
// this.physics.postUpdate();
this.plugins.postRender();
this.plugins.postRender();
}
},