1. 26 Dec, 2020 1 commit
    • Rahix's avatar
      resources: Add GameManager · ca343ed9
      Rahix authored
      The GameManager provides a way for systems to schedule a transition back
      to the heaven.
      ca343ed9
  2. 21 Dec, 2020 1 commit
    • Rahix's avatar
      Add super basic player entity · 20688a8e
      Rahix authored
      Add plumbing for the most basic player:
      
      - A `Player` component to mark the entity which is the player.
      - A `Player` resource which holds the entity ID of the player.
      - A `draw_tmp_player_system` to draw the player as a circle (for now).
      - A `create_player` function to create the player entity.
      - Update the `moving_system` to put the camera at the player position.
      20688a8e
  3. 17 Dec, 2020 1 commit
  4. 13 Dec, 2020 1 commit
  5. 05 Dec, 2020 1 commit
    • Rahix's avatar
      Start working on an actually useful prototype · aa678e3e
      Rahix authored
      - Make the canvas fit itself to the screen.
      - Add an SVG overlay which we can use to easily detect click-events in
        certain places (use only SVG for rendering maybe?).
      - Rename `src/lib.rs` to `src/main.rs` as that's what people are used to
        (the fact that we are building a cdylib is irrelevant for this).
      - Add a utils.rs module and move things like request_animation_frame()
        there.
      - Add a global timer/clock resource.
      aa678e3e