diff options
| author | Chris Bradley <1029chris@gmail.com> | 2022-02-20 15:51:09 -0800 |
|---|---|---|
| committer | Chris Bradley <1029chris@gmail.com> | 2022-02-20 15:51:09 -0800 |
| commit | 995f96d8af37320da58733aeb4b2107af25ab668 (patch) | |
| tree | 1bc7670dccbfc99bbc34a1612a737cb64be0010a /update.lua | |
| parent | a6097b11affbbd8c93c40bfc575bf25146c0c8fb (diff) | |
Turns out "\" is division + floor, thats cool! Saved a little tokens implementing it all over
Diffstat (limited to 'update.lua')
| -rw-r--r-- | update.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,6 +1,6 @@ respawntimer -= ft --similar math elements grouped to lower tokens -flashtime = ceil(t()*10%2) == 1 --for flashing elements (ship, score) +flashtime = t()\0.1%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 |
