aboutsummaryrefslogtreecommitdiff
path: root/update.lua
diff options
context:
space:
mode:
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)