aboutsummaryrefslogtreecommitdiff
path: root/update.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2022-02-15 23:52:01 -0800
committer1029chris <1029chris@gmail.com>2022-02-15 23:52:01 -0800
commit457aaf1cc62789c1272bd13237b0f0a58307c007 (patch)
tree540be29273667094780d427de914dbf63b2a942d /update.lua
parentefcd8adf972b113816a65b863d0ae59d76598f94 (diff)
more token hunting... aaaaaAAAAAAAAAAAAAa
Diffstat (limited to 'update.lua')
-rw-r--r--update.lua12
1 files changed, 4 insertions, 8 deletions
diff --git a/update.lua b/update.lua
index 5af959c..21a3ca4 100644
--- a/update.lua
+++ b/update.lua
@@ -1,7 +1,7 @@
--scrolling and respawn stuff
-respawntimer -= 1/60
+respawntimer -= ft
if gameover then
- scrollspeed = mid(-1/10,scrollspeed-1/3000,1/60)
+ scrollspeed = mid(-1/10,scrollspeed-1/3000,ft)
if respawntimer < 0 then
gameover = false
foreach(players, function(obj) obj:respawn() end)
@@ -10,7 +10,7 @@ if gameover then
end
elseif gamerunning then
updatewaves() -- update the wave function
- scrollspeed = mid(0,scrollspeed+1/2000,1/60)
+ scrollspeed = mid(0,scrollspeed+1/2000,ft)
end
gt += scrollspeed + 1/600
@@ -31,11 +31,7 @@ end
--screenshake math
shake = shake + 0.11 * (0 - shake);
-if shake < 1 then
- shake = 0
-end
-
-if not doshake then
+if shake < 1 or not doshake then
shake = 0
end
--add another player if they fire