From 0d3eecfeb4e2bcd10cc909068c6d666e4757fe14 Mon Sep 17 00:00:00 2001 From: Ace Date: Wed, 24 Apr 2024 20:09:54 -0700 Subject: [PATCH] for real this time --- src/bullet_heck_gleam.gleam | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bullet_heck_gleam.gleam b/src/bullet_heck_gleam.gleam index cc10e8d..aa15d67 100644 --- a/src/bullet_heck_gleam.gleam +++ b/src/bullet_heck_gleam.gleam @@ -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 @@ -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()), ) }