diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index fcf8bac..0f1227c 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -809,22 +809,14 @@ remainder: end function bullet_base:hitship(_) - self:die() return true end -function bullet_base:die() -end - function bullet_base:move() self.x += self.dx self.y += self.dy if (self.f) self.f -= 1 - if (self.y > 145) or (self.y < -64) or (self.f and self.f < 0) or (self.x > 256) or (self.x < -128) then - self:die() - return true - end - return false + return (self.y > 145) or (self.y < -64) or (self.f and self.f < 0) or (self.x > 256) or (self.x < -128) end function bullet_base:draw()