aboutsummaryrefslogtreecommitdiff
path: root/bullets.lua
diff options
context:
space:
mode:
authorChris Bradley <1029chris@gmail.com>2022-02-20 20:43:42 -0800
committerChris Bradley <1029chris@gmail.com>2022-02-20 20:43:42 -0800
commit851375b7063ff90b83a68351bfca80e920b9cfd2 (patch)
tree8cfd643c671e7923e00d093cc4a3dfb2f6ce06e8 /bullets.lua
parent531734dc2de04741ce1c9c8442718614c47bffd4 (diff)
Token hunted by changing the targetplayer from an index to the actual player
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 6686a7e..dec0309 100644
--- a/bullets.lua
+++ b/bullets.lua
@@ -136,7 +136,7 @@ function addmissile(x, y, target) --basic small weak enemy
function enemy.update()
enemy.x -= enemy.speed
enemy.speed += 0.015
- enemy.y += (players[target].y - enemy.y)/30
+ enemy.y += (target.y - enemy.y)/30
addcircle(enemy.x+12, enemy.y+rnd(8), 0, rnd()/8, 2.1, 0.6, rnd({9,5}))
enemymisc(enemy)
if enemy.health <= 0 then -- die!!!!!