mirror of
https://github.com/wassname/phaser.git
synced 2026-08-18 12:20:33 +08:00
Brand new highly optimised QuadTree added, populated by the game loop and world ready to be queried as often as you want in your game loop, without creating hundreds of new QuadTrees each frame.
This commit is contained in:
+2
-1
@@ -376,19 +376,20 @@ Phaser.Game.prototype = {
|
||||
this.time.update(time);
|
||||
|
||||
this.plugins.preUpdate();
|
||||
this.physics.preUpdate();
|
||||
|
||||
this.input.update();
|
||||
this.tweens.update();
|
||||
this.sound.update();
|
||||
this.world.update();
|
||||
this.state.update();
|
||||
// this.physics.update();
|
||||
this.plugins.update();
|
||||
|
||||
this.renderer.render(this.world._stage);
|
||||
this.state.render();
|
||||
|
||||
this.world.postUpdate();
|
||||
this.physics.postUpdate();
|
||||
|
||||
this.plugins.postRender();
|
||||
|
||||
|
||||
@@ -53,7 +53,6 @@ Phaser.World.prototype = {
|
||||
|
||||
var displayObject = this._stage;
|
||||
|
||||
// once the display object hits this. we can break the loop
|
||||
var testObject = displayObject.last._iNext;
|
||||
displayObject = displayObject.first;
|
||||
|
||||
@@ -73,11 +72,8 @@ Phaser.World.prototype = {
|
||||
|
||||
postUpdate: function () {
|
||||
|
||||
//this.camera.update();
|
||||
|
||||
var displayObject = this._stage;
|
||||
|
||||
// once the display object hits this. we can break the loop
|
||||
var testObject = displayObject.last._iNext;
|
||||
displayObject = displayObject.first;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user