Skip to content

Commit

Permalink
for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
Acepie committed Apr 25, 2024
1 parent 6530ef4 commit 0d3eecf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bullet_heck_gleam.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import gleam/list
import p5js_gleam.{type P5}
import p5js_gleam/bindings as p5
import player
import utils
import vector

/// Represents the overall game state
Expand Down Expand Up @@ -70,6 +71,7 @@ fn on_mouse_clicked(x: Float, y: Float, state: WorldState) -> WorldState {
bullet.spawn_bullet(vector.Vector(p.x, p.y, 0.0), firing_direction, True),
..bullets
],
player: player.Player(..player, last_fire_time: utils.now_in_milliseconds()),
)
}

Expand Down

0 comments on commit 0d3eecf

Please sign in to comment.