aboutsummaryrefslogtreecommitdiff
path: root/bullets.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2022-02-04 19:02:55 -0800
committer1029chris <1029chris@gmail.com>2022-02-04 19:02:55 -0800
commite9080c7efe446a21edff514941b0aed0b7f62f2d (patch)
tree63114d65e1443731322342ba24c78685c4765a0a /bullets.lua
parentc3adabae861162b66c1b4499754848d1ffdc0833 (diff)
Wall enemies! more waves!!!!!
Diffstat (limited to 'bullets.lua')
-rw-r--r--bullets.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/bullets.lua b/bullets.lua
index ea82be7..41ff210 100644
--- a/bullets.lua
+++ b/bullets.lua
@@ -22,7 +22,7 @@ function addbullet(x, y, velx, vely, evil, sprite)
end
function bullet.accurate_collide(object)
- if bullet.x+4 >= object.x-2 and bullet.x+4 <= object.x+2+object.w and bullet.y+4 >= object.y-2 and bullet.y+4 <= object.y+object.h+2 and object.inv < 0 then
+ if bullet.x+4 >= object.x-2 and bullet.x+4 <= object.x+2+object.w and bullet.y+4 >= object.y-2 and bullet.y+4 <= object.y+object.h+2 then
object:shot()
del(obj, bullet)
end