diff options
| author | Chris Bradley <1029chris@gmail.com> | 2022-02-18 22:20:20 -0800 |
|---|---|---|
| committer | Chris Bradley <1029chris@gmail.com> | 2022-02-18 22:20:20 -0800 |
| commit | 4e64d1f68c0c8e74cced27043ae0ec52c7ced2a1 (patch) | |
| tree | 15a4474205b0bb8f8d16beb2658a1a0ba9458685 /players.lua | |
| parent | 0f74449ed091ed8a93bfbe75ede12f86e869bc62 (diff) | |
more final boss stuff, and token hunting!!!!
THESE TOKENS ARE GETTING TIGHT!!!!! FUUUUUCKKKK!!!!!!!!
Diffstat (limited to 'players.lua')
| -rw-r--r-- | players.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/players.lua b/players.lua index e13f2ce..a2c1c3c 100644 --- a/players.lua +++ b/players.lua @@ -23,7 +23,7 @@ function addplayer(x, y, sprite, bulletsprite) -- print(player.health) --draw a different sprite when moving, and blink when hurt - if (player.inv < 0 or flashtime == 1) and player.health > 0 then + if (player.inv < 0 or flashtime) and player.health > 0 then if (player.ymov == 0) then spr(sprite, player.x, player.y) elseif (player.ymov == 1) then @@ -48,9 +48,7 @@ function addplayer(x, y, sprite, bulletsprite) gameover = true -- gameover set to true respawntimer = 5 --respawns all players in 5 seconds player.inv = 20 - for i = 1, #enemies, 1 do - enemies[i].health = -1 - end + killallenemies() currentscore-=10 sfx(11, 3) sfx(29, 1) |
