- show 'Attract Mode' when hitting ESC key on main menu
- added RecordControl component to toggle recording of player's actions by hitting F2 key
- added PlayerPlaybackControl component used to playback recorded player actions when in 'Attract Mode'
- added RecordUtils to provide methods: startRecording(). recordValue(), stopRecording()
- each recorded value is paired with a frame number to facilitate correct playback timings
- when recording stops, all recorded data is logged to the console in a form suitable for passing to the PlayerPlaybackControl's start() method
- Crafty release v0.5.4 upgrade
- Crafty release v0.5.4 upgrade: added Crafty.viewport.scrollXY() function which is a more optimized way of calling Crafty.viewport.scroll('_x',...) and Crafty.viewport.scroll('_y',...) separately (6.5% faster according to profiling tests)
- Crafty release v0.5.4 upgrade: ensure that multiple calls to collision() do not result in multiple collision polygon "children" being attached
- Crafty release v0.5.4 upgrade: expose handlers for debugging purposes
- Crafty release v0.5.4 upgrade: set canvas used for particles to be at position (0px, 0px)
- Crafty release v0.5.4 upgrade: IE fix - specify configurable as true when using Object.defineProperty
- Crafty release v0.5.4 upgrade: include in index.html
- fixed bug: car did not fall when stopped over breaking ground due to car velocity being zero
- fixed bug: falling off the edge no longer falls through the ground
- changed falling logic to move the car into the center of the most overlapping Hole entity before falling with a z value reduced by 50
- using 'Arriving Behavior' to arrive at the target Hole as outlined in natureofcode.com
- extracted _handleFalling() function
- fixed bug: car now travels directly straight when not turning