From 904fbe6b2ee8da1887e2d8f783e99f1ed9e13532 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Tue, 24 Jun 2025 23:06:09 -0700 Subject: [PATCH] bullets don't expire --- vacuum_gambit.p8 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index 506d1ae..70b9ac1 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -772,13 +772,9 @@ function bullet_base:hitship(_) end function bullet_base:move() - local x,y,f = self.x + self.dx, self.y+self.dy,self.f + local x,y = self.x + self.dx, self.y+self.dy self.x,self.y=x,y - if f then - self.f = f-1 - if (f <= 0) return true - end - return (y> 130) or (y < -(self.height<<3)) or (x > 128) or (x < -(self.width<<3)) + return (y>128) or (y < -(self.height<<3)) or (x > 128) or (x < -(self.width<<3)) end function bullet_base:draw()