From 4e64d1f68c0c8e74cced27043ae0ec52c7ced2a1 Mon Sep 17 00:00:00 2001 From: Chris Bradley <1029chris@gmail.com> Date: Fri, 18 Feb 2022 22:20:20 -0800 Subject: more final boss stuff, and token hunting!!!! THESE TOKENS ARE GETTING TIGHT!!!!! FUUUUUCKKKK!!!!!!!! --- update.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update.lua') diff --git a/update.lua b/update.lua index 0c3a708..a7216cc 100644 --- a/update.lua +++ b/update.lua @@ -1,7 +1,7 @@ --scrolling and respawn stuff respawntimer -= ft --similar math elements grouped to lower tokens -flashtime = ceil(t()*10%2) --for flashing elements (ship, score) +flashtime = (ceil(t()*10%2) == 1) --for flashing elements (ship, score) circletimex = sin(t())*3 -- for elements that move in a circle (respawn timer) circletimey = cos(t())*3 screenshakex = sin(shake+t())*shake @@ -45,7 +45,7 @@ if gamerunning or t() < 1.95 then -- weird if because of freezing bubbles in the end --screenshake math -shake = shake + 0.11 * (0 - shake); +shake = lerp(shake, 0, 0.11) if shake < 1 or not doshake then shake = 0 end -- cgit