mirror of
https://github.com/wassname/phaser.git
synced 2026-08-18 12:20:33 +08:00
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:
+17
-13
@@ -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();
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user