diff options
Diffstat (limited to 'players.lua')
| -rw-r--r-- | players.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/players.lua b/players.lua index 7b0d4b4..d395b83 100644 --- a/players.lua +++ b/players.lua @@ -46,6 +46,7 @@ function addplayer(x, y, sprite, bulletsprite) sfx(10) explosion(player.x, player.y) if isgameover() then --FUCK, GAME OVER YOU DIED! + sfx(11) gameover = true -- gameover set to true respawntimer = 5 --respawns all players in 5 seconds player.inv = 20 @@ -64,6 +65,11 @@ function addplayer(x, y, sprite, bulletsprite) for i = 1, 8, 1 do addcircle(player.x+4, player.y+4, sin(i/8), cos(i/8), 2, 0.6, 7, 0) end + if playercount == 1 then + sfx(27) + else + sfx(28) + end end function player.update(player) |
