game.rs 286 B

123456789
  1. use sdl2::keyboard as sdl;
  2. /// The shared values that the game state needs, mostly contained in
  3. /// the specs ECS world
  4. pub struct MyGame {
  5. pub world: specs::World,
  6. pub sprites: ggez::graphics::spritebatch::SpriteBatch,
  7. pub keys: std::collections::HashSet<sdl::Keycode>,
  8. }