mirror of
https://github.com/wassname/phaser.git
synced 2026-07-02 17:00:42 +08:00
Lots of new examples and updates.
This commit is contained in:
+2
-2
@@ -251,10 +251,10 @@ Phaser.Camera.prototype = {
|
||||
this.atLimit.y = false;
|
||||
|
||||
// Make sure we didn't go outside the cameras bounds
|
||||
if (this.view.x < this.bounds.left)
|
||||
if (this.view.x < this.bounds.x)
|
||||
{
|
||||
this.atLimit.x = true;
|
||||
this.view.x = this.bounds.left;
|
||||
this.view.x = this.bounds.x;
|
||||
}
|
||||
|
||||
if (this.view.x > this.bounds.right - this.width)
|
||||
|
||||
+3
-1
@@ -125,7 +125,9 @@ Phaser.World.prototype.postUpdate = function () {
|
||||
/**
|
||||
* Updates the size of this world. Note that this doesn't modify the world x/y coordinates, just the width and height.
|
||||
* If you need to adjust the bounds of the world
|
||||
* @method Phaser.World#setSize
|
||||
* @method Phaser.World#setBounds
|
||||
* @param {number} x - Top left most corner of the world.
|
||||
* @param {number} y - Top left most corner of the world.
|
||||
* @param {number} width - New width of the world.
|
||||
* @param {number} height - New height of the world.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user