You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
* Emitter.start has a new parameter: forceQuantity which will force the quantity of a flow of particles to be the given value (request #853)
67
68
* Sound.pause will no longer fire a Sound.onStop signal, and the pause values are set before the onPause signal is dispatched (thanks @AnderbergE, fix #868)
68
69
* Swapped to using escaped Unicode characters for the console output.
70
+
* Frame.setTrim no longer modifies the Frame width and height values.
71
+
* AnimationParser doesn't populate the Pixi.TextureCache for every frame any longer. Each display object has its own texture property instead.
* Loader.totalLoadedPacks returns the number of Asset Packs already loaded.
94
97
* Emitter.explode is a new short-cut for exploding a fixed quantity of particles at once.
95
98
* Emitter.flow is a new short-cut for creating a flow of particles based on the given frequency.
99
+
* 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.
100
+
* Sprite.updateCrop is available if you wish to update an externally referenced crop rectangle.
101
+
* 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.
102
+
* 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.
96
103
97
104
98
105
### Bug Fixes
@@ -284,14 +291,18 @@ Here are some of the features planned for future releases:
284
291
285
292
### Version 2.1 ("Shienar")
286
293
294
+
* Scene Manager - json scene parser.
287
295
* Comprehensive testing across Firefox OS devices, CocoonJS and Ejecta.
288
296
* Ability to control DOM elements from the core game and layer them into the game.
289
297
* Touch Gestures.
298
+
* Optimised global Animation manager to cut down on object creation.
299
+
* Swapping to using a RenderTexture for the Tilemaps and implementing Tilemap slicing.
300
+
* Enhance the State Management, so you can perform non-destructive State swaps and persistence.
301
+
* Support for parallel asset loading.
290
302
291
303
### Version 2.2 ("Tarabon")
292
304
293
-
* Enhance the State Management, so you can perform non-destructive State swaps and persistence.
294
-
* Support for parallel asset loading.
305
+
* Look carefully at the internal structure of Phaser to avoid method repetition (such as Sprite.crop and Image.crop), investigate using mixins to help reduce overall codebase size.
295
306
* Flash CC HTML5 export integration.
296
307
* Massively enhance the audio side of Phaser. Take more advantage of Web Audio: echo effects, positional sound, etc.
0 commit comments