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