1. 26 Dec, 2020 3 commits
    • Rahix's avatar
      sprite: Allow passing `Sprite` directly · 8a478b46
      Rahix authored
      Allow passing either an ImageHandle or a `Sprite` to Sprite::new().
    • Rahix's avatar
      sprites: Don't hold center coordinates in component · ff31586d
      Rahix authored
      Query the size of the sprite on the fly during rendering.  This makes
      component instanciation much easier because it no longer requires access
      to the `Rendering` API.
      As a later optimization, we could move this ofsetting into the
      draw_image() function via a new parameter.
    • Rahix's avatar
      Pass Player component between gamestates · ff0b5af8
      Rahix authored
      The player component hold information which should stay persistent
      across the game-runs and thus needs to be passed through the different
      game-states.  Do this by instanciating it in the heaven and then passing
      it through the level-loading state into the in-game state.
  2. 22 Dec, 2020 4 commits
  3. 21 Dec, 2020 6 commits