1. 31 Dec, 2020 4 commits
    • Simon Goller's avatar
      Cargo fmt · 3ff5e56a
      Simon Goller authored and neosam's avatar neosam committed
      3ff5e56a
    • Simon Goller's avatar
      Add ability to run with shift key · c95ce74f
      Simon Goller authored and neosam's avatar neosam committed
      The stamina system now allows the player to run for two seconds
      until the stamina runs out.  It takes four seconds to fill the
      stamina again.
      
      To implment running, the `movable` component got a new `running`
      attribute.  If this is true, the velocity is doubled im the
      `move_movable` system.  This `running` flag is set to true when
      the player presses the Shift button and is set to false when
      either the Shift button is released or by the `empty_stamina_running`
      system if no stamina is left.
      c95ce74f
    • Simon Goller's avatar
      Add stamina · edbd3622
      Simon Goller authored and neosam's avatar neosam committed
      Stamina is a component and can be assigned to any entities.  The
      stamina_regeneration_system will automatically refill the stamina
      until it's completely full.
      
      The player has an own system which will update the stamina bar
      based on the player's stamina and will hide it, when the stamina
      is full.
      edbd3622
    • Simon Goller's avatar
      Convert player sanity to progress · 0fa58a8e
      Simon Goller authored and neosam's avatar neosam committed
      Using a range between 0.0 and `max` is more flexible than a range
      between 0.0 and 1.0.  This makes it possible to create items which
      extend max health so the player can take more damange before it's
      game over.
      0fa58a8e
  2. 30 Dec, 2020 6 commits
  3. 29 Dec, 2020 22 commits
  4. 28 Dec, 2020 2 commits
    • Rahix's avatar
      Merge 'Update README' · 6212dd58
      Rahix authored
      See merge request !37
      6212dd58
    • Rahix's avatar
      Update README · 31f418a1
      Rahix authored
      Update code overview to reflect latest architectural changes and mention
      that we need the latest stable rust compiler for building this project.
      31f418a1
  5. 27 Dec, 2020 6 commits