mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Disabled access to World and Camera for now.
This commit is contained in:
parent
f6903df104
commit
26711241ac
2 changed files with 7 additions and 5 deletions
|
@ -1119,10 +1119,10 @@ Phaser.ScaleManager.prototype = {
|
|||
this.game.renderer.resize(this.width, this.height);
|
||||
|
||||
// The Camera can never be smaller than the Game size
|
||||
this.game.camera.setSize(this.width, this.height);
|
||||
// this.game.camera.setSize(this.width, this.height);
|
||||
|
||||
// This should only happen if the world is smaller than the new canvas size
|
||||
this.game.world.resize(this.width, this.height);
|
||||
// this.game.world.resize(this.width, this.height);
|
||||
}
|
||||
|
||||
},
|
||||
|
|
|
@ -26,7 +26,8 @@ Phaser.Physics.Arcade = function (game) {
|
|||
/**
|
||||
* @property {Phaser.Rectangle} bounds - The bounds inside of which the physics world exists. Defaults to match the world bounds.
|
||||
*/
|
||||
this.bounds = new Phaser.Rectangle(0, 0, game.world.width, game.world.height);
|
||||
// this.bounds = new Phaser.Rectangle(0, 0, game.world.width, game.world.height);
|
||||
this.bounds = new Phaser.Rectangle(0, 0, game.width, game.height);
|
||||
|
||||
/**
|
||||
* Set the checkCollision properties to control for which bounds collision is processed.
|
||||
|
@ -74,7 +75,8 @@ Phaser.Physics.Arcade = function (game) {
|
|||
/**
|
||||
* @property {Phaser.QuadTree} quadTree - The world QuadTree.
|
||||
*/
|
||||
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);
|
||||
// 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);
|
||||
this.quadTree = new Phaser.QuadTree(0, 0, this.game.width, this.game.height, this.maxObjects, this.maxLevels);
|
||||
|
||||
/**
|
||||
* @property {number} _total - Internal cache var.
|
||||
|
@ -83,7 +85,7 @@ Phaser.Physics.Arcade = function (game) {
|
|||
this._total = 0;
|
||||
|
||||
// By default we want the bounds the same size as the world bounds
|
||||
this.setBoundsToWorld();
|
||||
// this.setBoundsToWorld();
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue