Skip to content

Commit 2671124

Browse files
committed
Disabled access to World and Camera for now.
1 parent f6903df commit 2671124

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/core/ScaleManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,10 +1119,10 @@ Phaser.ScaleManager.prototype = {
11191119
this.game.renderer.resize(this.width, this.height);
11201120

11211121
// The Camera can never be smaller than the Game size
1122-
this.game.camera.setSize(this.width, this.height);
1122+
// this.game.camera.setSize(this.width, this.height);
11231123

11241124
// This should only happen if the world is smaller than the new canvas size
1125-
this.game.world.resize(this.width, this.height);
1125+
// this.game.world.resize(this.width, this.height);
11261126
}
11271127

11281128
},

src/physics/arcade/World.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Phaser.Physics.Arcade = function (game) {
2626
/**
2727
* @property {Phaser.Rectangle} bounds - The bounds inside of which the physics world exists. Defaults to match the world bounds.
2828
*/
29-
this.bounds = new Phaser.Rectangle(0, 0, game.world.width, game.world.height);
29+
// this.bounds = new Phaser.Rectangle(0, 0, game.world.width, game.world.height);
30+
this.bounds = new Phaser.Rectangle(0, 0, game.width, game.height);
3031

3132
/**
3233
* Set the checkCollision properties to control for which bounds collision is processed.
@@ -74,7 +75,8 @@ Phaser.Physics.Arcade = function (game) {
7475
/**
7576
* @property {Phaser.QuadTree} quadTree - The world QuadTree.
7677
*/
77-
this.quadTree = new Phaser.QuadTree(this.game.world.bounds.x, this.game.world.bounds.y, this.game.world.bounds.width, this.game.world.bounds.height, this.maxObjects, this.maxLevels);
78+
// this.quadTree = new Phaser.QuadTree(this.game.world.bounds.x, this.game.world.bounds.y, this.game.world.bounds.width, this.game.world.bounds.height, this.maxObjects, this.maxLevels);
79+
this.quadTree = new Phaser.QuadTree(0, 0, this.game.width, this.game.height, this.maxObjects, this.maxLevels);
7880

7981
/**
8082
* @property {number} _total - Internal cache var.
@@ -83,7 +85,7 @@ Phaser.Physics.Arcade = function (game) {
8385
this._total = 0;
8486

8587
// By default we want the bounds the same size as the world bounds
86-
this.setBoundsToWorld();
88+
// this.setBoundsToWorld();
8789

8890
};
8991

0 commit comments

Comments
 (0)