aboutsummaryrefslogtreecommitdiff
path: root/players.lua
diff options
context:
space:
mode:
authorRibbon <ambiguousmachine@gmail.com>2022-02-11 09:52:06 -0800
committerRibbon <ambiguousmachine@gmail.com>2022-02-11 09:52:06 -0800
commitba21794f28d67f2be5c3154fa3d30b114fd6c37c (patch)
tree41be6cc844a5e57c319decc4c6c09f058b3a483c /players.lua
parent2debf09efb92513ef69bfdcf6120bf2d1a9725a7 (diff)
moved sprites, updated text on title screen, added mock up of high score display
also made some edits to sfx channels
Diffstat (limited to 'players.lua')
-rw-r--r--players.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/players.lua b/players.lua
index cd56cb4..ac755f1 100644
--- a/players.lua
+++ b/players.lua
@@ -43,20 +43,19 @@ function addplayer(x, y, sprite, bulletsprite)
player.shootspeed = 0.25
player.shoot3 = false
shake = 9
- sfx(10, 0)
+ sfx(10, 1)
explosion(player.x, player.y)
if isgameover() then --FUCK, GAME OVER YOU DIED!
- sfx(11, 0)
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
+ sfx(11, 3)
sfx(29, 1)
elseif player.health <= 0 then
- --kill sfx for co-op
- sfx(11, 0)
+ sfx(11, 3)
player.inv = 5
end
end