From efc2bacb0928a51ac362007733bbcb3a57639529 Mon Sep 17 00:00:00 2001 From: Chris Bradley <1029chris@gmail.com> Date: Sun, 20 Feb 2022 18:39:03 -0800 Subject: Win screen song! and fix to scroll speed, other tweaks --- update.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'update.lua') 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 -- cgit