aboutsummaryrefslogtreecommitdiff
path: root/update.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2022-02-09 20:40:16 -0800
committer1029chris <1029chris@gmail.com>2022-02-09 20:40:16 -0800
commit0fa5fb690753ef6cbdb22795648a4373d1a0e18c (patch)
treea2f1476b4c8ee793c8cfcb2fab18a819a309c6c1 /update.lua
parent19a80ae48f1beec8b82f785d46a5b9015f9266c4 (diff)
respawn sound implemented, fixed dead players picking up pickups
Diffstat (limited to 'update.lua')
-rw-r--r--update.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/update.lua b/update.lua
index 3cdd445..6d8e3c1 100644
--- a/update.lua
+++ b/update.lua
@@ -1,12 +1,12 @@
--scrolling and respawn stuff
respawntimer -= 1/60
if gameover then
- -- sfx(1, 1, 0, 28)
scrollspeed = mid(-1/10,scrollspeed-1/3000,1/60)
if respawntimer < 0 then
gameover = false
foreach(players, function(obj) obj:respawn() end)
setwave(mid(1,currentwave-2,#wave))
+ sfx(29, -2)
end
elseif gamerunning then
updatewaves() -- update the wave function