Skip to content

Commit d0cb0f2

Browse files
committed
Commented out World and Camera for now.
1 parent c2841cc commit d0cb0f2

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

src/core/Game.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -610,14 +610,21 @@ Phaser.Game.prototype = {
610610

611611
this.math = Phaser.Math;
612612

613+
this.camera = {
614+
_shake: {
615+
x: 0,
616+
y: 0
617+
}
618+
};
619+
613620
this.scale = new Phaser.ScaleManager(this, this._width, this._height);
614621
this.stage = new Phaser.Stage(this);
615622

616623
this.setUpRenderer();
617624

618625
this.textures = new Phaser.TextureManager(this);
619626

620-
this.world = new Phaser.World(this);
627+
// this.world = new Phaser.World(this);
621628

622629
this.add = new Phaser.GameObject.Factory(this);
623630
this.add.boot();
@@ -637,7 +644,7 @@ Phaser.Game.prototype = {
637644

638645
this.time.boot();
639646
this.stage.boot();
640-
this.world.boot();
647+
// this.world.boot();
641648
this.scale.boot();
642649
this.input.boot();
643650
this.sound.boot();
@@ -944,7 +951,7 @@ Phaser.Game.prototype = {
944951

945952
this.scale.preUpdate();
946953
this.debug.preUpdate();
947-
this.camera.preUpdate();
954+
// this.camera.preUpdate();
948955
this.physics.preUpdate();
949956
this.state.preUpdate(timeStep);
950957
this.plugins.preUpdate(timeStep);
@@ -970,7 +977,7 @@ Phaser.Game.prototype = {
970977
this.debug.preUpdate();
971978
}
972979

973-
this.stage.updateTransform();
980+
// this.stage.updateTransform();
974981

975982
},
976983

0 commit comments

Comments
 (0)