2.0.0
BREAKING CHANGES
- Renamed
GameState.cursor_moved_eventstoGameState.mouse_location_events - Renamed
Gamestate.delta_secondstoGameState.delta_f32 - Renamed
Gamestate.seconds_since_startuptoGameState.time_since_startup_f64
Other Changes
- Added
GameState::keyboard_state(and a newKeyboardStatestruct), to determine the current state of the keyboard. This should be preferred over keyboard events when dealing with character movement, etc. - Added
GameState::mouse_state(and a newMouseStatestruct), to determine the current state of the mouse. In most cases, this should be preferred over mouse methods when dealing with character movement, etc. - Added a new
MouseWheelStatestruct to represent the state of the mouse wheel, which is a simplified representation of cumuluative mouse wheel events. - Added an "Extreme Driver's Ed" scenario reference implementation (
cargo run --release --example extreme_drivers_ed). - Documented
GameState - Added
GameState.vec2_mapandGameState.vec2_vecas collections for the user to store state in. - Switched all instances of
std::collections::HashMaptobevy::utils::HashMap. - Updated all examples to adjust for breaking changes, also:
- The
keyboardexample has been renamed tokeyboard_eventsto distinguish it from the newkeyboard_stateexample which usesKeyboardStatefor smooth movement - The
mouseexample has been renamed tomouse_eventsto distinguish it from the newmouse_stateexample which usesMouseStatefor smooth movement
- The
- Added now
level_creatorexample to use as a rudimentary level creator (originally added in 1.1.0)
Full Changelog: v1.1.4...v2.0.0