diff options
| author | Chris Bradley <1029chris@gmail.com> | 2022-02-18 22:20:20 -0800 |
|---|---|---|
| committer | Chris Bradley <1029chris@gmail.com> | 2022-02-18 22:20:20 -0800 |
| commit | 4e64d1f68c0c8e74cced27043ae0ec52c7ced2a1 (patch) | |
| tree | 15a4474205b0bb8f8d16beb2658a1a0ba9458685 /update.lua | |
| parent | 0f74449ed091ed8a93bfbe75ede12f86e869bc62 (diff) | |
more final boss stuff, and token hunting!!!!
THESE TOKENS ARE GETTING TIGHT!!!!! FUUUUUCKKKK!!!!!!!!
Diffstat (limited to 'update.lua')
| -rw-r--r-- | update.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
