aboutsummaryrefslogtreecommitdiff
path: root/update.lua
diff options
context:
space:
mode:
authorChris Bradley <1029chris@gmail.com>2022-02-19 13:40:34 -0800
committerChris Bradley <1029chris@gmail.com>2022-02-19 13:40:34 -0800
commit4f3bfa57d582d1f8a20da0c34cc7c94563570008 (patch)
tree40b909149599b732ab5501c867b3bb6993e7d543 /update.lua
parent86fdddc12397f45af95cd85729b12f88edd33dc5 (diff)
added back local variables, some more tokens gained
target player now changes every second
Diffstat (limited to 'update.lua')
-rw-r--r--update.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/update.lua b/update.lua
index e39bb4d..cbd7e06 100644
--- a/update.lua
+++ b/update.lua
@@ -6,9 +6,6 @@ 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)
@@ -36,6 +33,7 @@ elseif not gamerunning and t() > 1 then --main menu
addplayer(18, 60, 16, 18)
startgame()
elseif btn(5) then
+ coopmode = true
addplayer(18, 45, 16, 18)
addplayer(18, 75, 32, 34)
startgame()