mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
7c7d9153e6
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. |
||
---|---|---|
.. | ||
custom | ||
config.php | ||
phaser.d.ts | ||
phaser.js | ||
phaser.map | ||
phaser.min.js |