New examples page

This commit is contained in:
photonstorm
2013-10-18 15:12:32 +01:00
parent dabda516c2
commit 8ed783802e
11 changed files with 209 additions and 65 deletions
+12
View File
@@ -880,7 +880,19 @@ Object.defineProperty(Phaser.Sprite.prototype, "crop", {
this._cropRect = value;
this.setTexture(PIXI.TextureCache[this._cropUUID]);
}
else
{
this._cropRect = null;
if (this.animations.isLoaded)
{
this.animations.refreshFrame();
}
else
{
this.setTexture(PIXI.TextureCache[this.key]);
}
}
}
});