aboutsummaryrefslogtreecommitdiff
path: root/bullets.lua
diff options
context:
space:
mode:
authorChris Bradley <1029chris@gmail.com>2022-02-18 15:38:37 -0800
committerChris Bradley <1029chris@gmail.com>2022-02-18 15:38:37 -0800
commitef48284d5dbda449ad74d1da2bfe9bf02557b785 (patch)
treeebd6e1bdbd037eb14cd621cb3d4285000b35cb61 /bullets.lua
parent803b40cd9ba514c1b6deb15e995723ba653474e4 (diff)
Final boss!! other stuff too :sweat_smile:
bullets now cause explosions where they hit enemies drop random pickups again, but only health high score is saved!!!! other tweaks, i dunno i forgot.
Diffstat (limited to 'bullets.lua')
-rw-r--r--bullets.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/bullets.lua b/bullets.lua
index f069036..bc9fc22 100644
--- a/bullets.lua
+++ b/bullets.lua
@@ -19,6 +19,7 @@ function addbullet(x, y, velx, vely, good, sprite)
function bullet.accurate_collide(object)
if x+4 >= object.x-2 and x+4 <= object.x+2+object.w and y+4 >= object.y-2 and y+4 <= object.y+object.h+2 then
object:shot()
+ explosion(x,y)
del(obj, bullet)
end
end