Lots of new examples and updates.

This commit is contained in:
photonstorm
2013-10-09 04:31:08 +01:00
parent 1c577d3674
commit 83a00862be
42 changed files with 829 additions and 280 deletions
+2 -2
View File
@@ -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
View File
@@ -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.
*/