1. 27 Dec, 2020 1 commit
    • Simon Goller's avatar
      Framerate and movement fixed · df971876
      Simon Goller authored
      The `Clock` now returns a constant `frame_delta` for each frame.
      To do this, it must be updated once in the `InGameState` on each
      update.
      
      This commit also fixes the diagonal movement speed by normalizing
      the movement vector.
      
      Fixes #19 and #20
      df971876
  2. 21 Dec, 2020 1 commit
  3. 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