forked from craftyjs/Crafty
-
Notifications
You must be signed in to change notification settings - Fork 1
Release note 0.6.0
starwed edited this page Jul 12, 2013
·
3 revisions
0.6.0-alpha (Jul 12)
Improvements/bug fixes
- Substantial reworking of how "SpriteAnimation" works. Not backwards compatible.
- DOM sprites now scale to entity size
- Collision hitboxes now automatically match the entities dimensions by default
- Entities trigger a new "Resize" event when their dimensions change
- New binding methods
- One time events with one()
- Non-duplicated events with uniqueBind()
-
remove
method of an entity now run on removal/destruction. (It's like the opposite ofinit
) - Optimizations to how _attr and cascade work
- Fix errors with "2D" methods isAt, contains, and within when an entity is rotated.
- EnterFrame events are now passed the time since the last frame.
- Each stage of the game loop now has an associated event that measures how much time passed.
- "SceneChange" now called before the scene init function is run.
- New "SceneDestroy" event.
- "Isometric" place method works now
- Crafty audio can now play the same sound file multiple times such that it overlaps with itself
- Audio now has a default limit of 7 simulataneous sounds playing. (Use audio.setChannels to change.)
- New canvas layer for debugging info, and some associated components
- Improvements to WiredHitBox and SolidHitBox
- getId() method added as a more readable way of getting an entity's ID.
Project features
- Better compatibility with bower