bullets don't expire
This commit is contained in:
@ -772,13 +772,9 @@ function bullet_base:hitship(_)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function bullet_base:move()
|
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
|
self.x,self.y=x,y
|
||||||
if f then
|
return (y>128) or (y < -(self.height<<3)) or (x > 128) or (x < -(self.width<<3))
|
||||||
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))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function bullet_base:draw()
|
function bullet_base:draw()
|
||||||
|
Reference in New Issue
Block a user