aboutsummaryrefslogtreecommitdiff
path: root/update.lua
diff options
context:
space:
mode:
authorChris Bradley <1029chris@gmail.com>2022-02-18 22:20:20 -0800
committerChris Bradley <1029chris@gmail.com>2022-02-18 22:20:20 -0800
commit4e64d1f68c0c8e74cced27043ae0ec52c7ced2a1 (patch)
tree15a4474205b0bb8f8d16beb2658a1a0ba9458685 /update.lua
parent0f74449ed091ed8a93bfbe75ede12f86e869bc62 (diff)
more final boss stuff, and token hunting!!!!
THESE TOKENS ARE GETTING TIGHT!!!!! FUUUUUCKKKK!!!!!!!!
Diffstat (limited to 'update.lua')
-rw-r--r--update.lua4
1 files changed, 2 insertions, 2 deletions
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