bullet_base:die doesn't actually make sense
This commit is contained in:
@ -809,22 +809,14 @@ remainder:
|
|||||||
end
|
end
|
||||||
|
|
||||||
function bullet_base:hitship(_)
|
function bullet_base:hitship(_)
|
||||||
self:die()
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
function bullet_base:die()
|
|
||||||
end
|
|
||||||
|
|
||||||
function bullet_base:move()
|
function bullet_base:move()
|
||||||
self.x += self.dx
|
self.x += self.dx
|
||||||
self.y += self.dy
|
self.y += self.dy
|
||||||
if (self.f) self.f -= 1
|
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
|
return (self.y > 145) or (self.y < -64) or (self.f and self.f < 0) or (self.x > 256) or (self.x < -128)
|
||||||
self:die()
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function bullet_base:draw()
|
function bullet_base:draw()
|
||||||
|
Reference in New Issue
Block a user