aboutsummaryrefslogtreecommitdiff
path: root/players.lua
diff options
context:
space:
mode:
authorRibbon <ambiguousmachine@gmail.com>2022-02-10 17:25:56 -0800
committerRibbon <ambiguousmachine@gmail.com>2022-02-10 17:25:56 -0800
commit261d79999931657a25512c60e53fe322bbbf6f9a (patch)
treeccf3813bf6a35fd4387600bd3834f89f7b6d267f /players.lua
parent4a39a3a49f36ed804d61af8bb1e41fb1eb541452 (diff)
updated sfx, their placement in the list, and added multiplay respawn sfw. oh, and planet MEGASPRITE!!! 🪐🪐🪐
Diffstat (limited to 'players.lua')
-rw-r--r--players.lua6
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)