1. 26 Dec, 2020 1 commit
    • Rahix's avatar
      Add angel_shifts module · dc2ba21f
      Rahix authored
      A new module to contain the "logic" for all angel shifts.  As an
      example/first shift, introduce a "Bottle Angel Shift".
      Shifts are abstracted as a trait object which contains the actual shift
      logic and is dynamically selected based on RNG.
  2. 22 Dec, 2020 3 commits
    • Simon Goller's avatar
      Cargo fmt · 48d6a677
      Simon Goller authored
    • Simon Goller's avatar
      Use sprite enum · d828d38d
      Simon Goller authored
      Sprites are now stored in sprites.rs in the Sprite enum.  This
      can be used to generate ImageHandles to generate Sprite
    • Rahix's avatar
      Display version in the bottom left corner · 1780f0f8
      Rahix authored
      Extract the current version from git during build-time and display it
      ingame in the bottom left corner.  Currently, this is done at WASM
      build-time so we might not capture changes to the www/ part which
      happened after a WASM build.  A possible solution would be to display
      a second version from JavaScript if we detect that the two are
      Fixes #18.
  3. 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.
  4. 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
  5. 18 Dec, 2020 1 commit
  6. 14 Dec, 2020 2 commits
  7. 13 Dec, 2020 10 commits
  8. 06 Dec, 2020 3 commits
  9. 05 Dec, 2020 3 commits
    • Rahix's avatar
      node: Add some more graphics effects · d097d9a6
      Rahix authored
    • Rahix's avatar
      components: Add some orbital movement to the nodes · fbdb2636
      Rahix authored
      Just playing around with the ECS, make the nodes orbit around "The Sun".
    • 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()
      - Add a global timer/clock resource.