phaser/build
photonstorm 7c7d9153e6 Sprite.crop (and Image.crop) has been completely overhauled. You can now crop animated sprites (sprite sheet and texture atlas), you can define the x/y crop offset and the crop rectangle is exposed in the Sprite.cropRect property.
Sprite.updateCrop is available if you wish to update an externally referenced crop rectangle.
Sprites and Images now have their own textures objects, they are no longer references to those stored in the global Pixi.TextureCache. This allows you to redefine the texture frame dynamically without messing up any other Sprites in your game, such as via cropping. They still share global Base Textures, so image references are kept to a minimum.
Sprite.resetFrame will revert the Sprites texture frame back to its defaults dimensions. This is called when you call Sprite.crop with no rectangle, to reset the crop effect, but can be userful in other situations so we've left it as a public method.
2014-06-10 23:37:33 +01:00
..
custom Build files with Asset Pack support added. 2014-05-29 17:37:28 +01:00
config.php Phaser.ArrayList is a new iterative object, similar in principal to a linked list but operating on a single array without modifying the object structure. 2014-04-25 15:11:54 +01:00
phaser.d.ts Sprite.crop (and Image.crop) has been completely overhauled. You can now crop animated sprites (sprite sheet and texture atlas), you can define the x/y crop offset and the crop rectangle is exposed in the Sprite.cropRect property. 2014-06-10 23:37:33 +01:00
phaser.js Build files with Asset Pack support added. 2014-05-29 17:37:28 +01:00
phaser.map Build files with Asset Pack support added. 2014-05-29 17:37:28 +01:00
phaser.min.js Build files with Asset Pack support added. 2014-05-29 17:37:28 +01:00