From c9b60c569f2ad015f043667c44ff9f43d50ec2e5 Mon Sep 17 00:00:00 2001 From: equa Date: Tue, 20 Apr 2021 18:20:05 -0500 Subject: death screen --- lib/player.fnl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/player.fnl') diff --git a/lib/player.fnl b/lib/player.fnl index 8e31a18..5fca05a 100644 --- a/lib/player.fnl +++ b/lib/player.fnl @@ -8,7 +8,7 @@ (setmetatable {entity.position pos entity.velocity {:x 0 :y 0} :target-spin 0 - :shot-age 0 + :shot-age 20 :direction 0} self)) @@ -37,8 +37,8 @@ (entity.init bullet (vec.clone (entity.position self)) - {:x (+ (* (math.cos self.direction) 0.6)) - :y (+ (* (math.sin self.direction) 0.6))})))) + {:x (+ v.x (* (math.cos self.direction) 0.6)) + :y (+ v.y (* (math.sin self.direction) 0.6))})))) (fn draw [self game id] (love.graphics.setColor 1 1 1) -- cgit 1.3.0-6-gf8a5