From 4e64d1f68c0c8e74cced27043ae0ec52c7ced2a1 Mon Sep 17 00:00:00 2001 From: Chris Bradley <1029chris@gmail.com> Date: Fri, 18 Feb 2022 22:20:20 -0800 Subject: more final boss stuff, and token hunting!!!! THESE TOKENS ARE GETTING TIGHT!!!!! FUUUUUCKKKK!!!!!!!! --- players.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'players.lua') 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) -- cgit