Skip to content

2.0.0

Choose a tag to compare

@CleanCut CleanCut released this 11 Apr 22:04
· 185 commits to main since this release

BREAKING CHANGES

  • Renamed GameState.cursor_moved_events to GameState.mouse_location_events
  • Renamed Gamestate.delta_seconds to GameState.delta_f32
  • Renamed Gamestate.seconds_since_startup to GameState.time_since_startup_f64

Other Changes

  • Added GameState::keyboard_state (and a new KeyboardState struct), 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 new MouseState struct), 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 MouseWheelState struct 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_map and GameState.vec2_vec as collections for the user to store state in.
  • Switched all instances of std::collections::HashMap to bevy::utils::HashMap.
  • Updated all examples to adjust for breaking changes, also:
    • The keyboard example has been renamed to keyboard_events to distinguish it from the new keyboard_state example which uses KeyboardState for smooth movement
    • The mouse example has been renamed to mouse_events to distinguish it from the new mouse_state example which uses MouseState for smooth movement
  • Added now level_creator example to use as a rudimentary level creator (originally added in 1.1.0)

Full Changelog: v1.1.4...v2.0.0