aboutsummaryrefslogtreecommitdiff
path: root/update.lua
diff options
context:
space:
mode:
authorRibbonCable <ambiguousmachine@gmail.com>2022-02-19 00:50:49 -0800
committerRibbonCable <ambiguousmachine@gmail.com>2022-02-19 00:50:49 -0800
commit05c10238d59c8e6e1289aa8cae930c3a4c940c53 (patch)
tree31b143e3e9637f1731c3a6b943cafce348223cb9 /update.lua
parent13450507f924af5743d24f2a19df4320cdbd1be8 (diff)
Token hunting: removed most of "local" before variables (seems to work fine), removed health from wall shooter since it was always 10, added check for coop and laser functionality on wave 16
Diffstat (limited to 'update.lua')
-rw-r--r--update.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/update.lua b/update.lua
index a7216cc..e39bb4d 100644
--- a/update.lua
+++ b/update.lua
@@ -6,6 +6,9 @@ circletimex = sin(t())*3 -- for elements that move in a circle (respawn timer)
circletimey = cos(t())*3
screenshakex = sin(shake+t())*shake
screenshakey = sin(shake+gt/2.1)*shake
+if #players > 1 then
+ coopmode = true
+end
if gameover then
scrollspeed = mid(-1/10,scrollspeed-1/3000,ft)