bullet_base:die doesn't actually make sense

This commit is contained in:
2025-06-20 18:55:48 -07:00
parent c01c3400b7
commit a77180d89a

View File

@ -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()