aboutsummaryrefslogtreecommitdiff
path: root/update.lua
diff options
context:
space:
mode:
authorChris Bradley <1029chris@gmail.com>2022-02-20 18:39:03 -0800
committerChris Bradley <1029chris@gmail.com>2022-02-20 18:39:03 -0800
commitefc2bacb0928a51ac362007733bbcb3a57639529 (patch)
tree6d692b59d96d5f257ecd7bcf970ffa6130e35bef /update.lua
parent3a78f154f1fc147a8d7a21861d22083ef1c049ab (diff)
Win screen song! and fix to scroll speed, other tweaks
Diffstat (limited to 'update.lua')
-rw-r--r--update.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/update.lua b/update.lua
index 79bbeb0..e2115aa 100644
--- a/update.lua
+++ b/update.lua
@@ -19,10 +19,10 @@ if gameover then
elseif gamerunning then
updatewaves() -- update the wave function
local targetspeed = ft
- if currentsong >= 8 then
+ if currentwave == 20 then
+ targetspeed /= 8 --slow scroll on score screen
+ elseif currentsong >= 8 then
targetspeed /= 2 --half scroll speed when boss
- elseif currentwave == 20 then
- targetspeed /= 8
end
scrollspeed = lerp(scrollspeed, targetspeed, 0.03)
end