mirror of
https://github.com/wassname/phaser.git
synced 2026-07-17 11:31:30 +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)
|
||||
|
||||
Reference in New Issue
Block a user