1. 26 Dec, 2020 5 commits
    • Rahix's avatar
      gamestate: Pass frame timestamp to state update method · b5f95278
      Rahix authored
      Pass the timestamp from requestAnimationFrame() to the state update
      function so the game-state doesn't have to call into JavaScript for
      timestamps anymore.
    • Rahix's avatar
      Configure shift-specific entities, resources, and systems · 96901f6e
      Rahix authored
      Add a new method to the AngelShiftImpl trait which angel shifts use to
      configure any shift-specific entities, resources, and ECS systems.
      As a first implementation, properly implement this for the bottle angel
      shift and move the `collect_bottledrops` systems here instead of it
      being a generic system.
    • Rahix's avatar
      Select level from assigned shift · fffb31ae
      Rahix authored
      Doing it this way, each shift can decide which levels are compatible
      with it and this way we don't require that each level supports all
      possible shifts.
    • Rahix's avatar
      heaven: Assign a random shift and display its info · b033aab2
      Rahix authored
      Generate a random shift for the player when entering the heaven.
      Display all meta-data for this shift in the GUI.
    • 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 5 commits
  3. 19 Dec, 2020 1 commit
    • Rahix's avatar
      Rename `state` to `gamestate` · 8d9456f5
      Rahix authored
      We currently have a `state` and a `states` module.  This is confusing,
      rename the state module to `gamestate` to make a more obvious
  4. 18 Dec, 2020 1 commit
  5. 17 Dec, 2020 2 commits
  6. 14 Dec, 2020 4 commits