aboutsummaryrefslogtreecommitdiff
path: root/update.lua
diff options
context:
space:
mode:
authorChris Bradley <1029chris@gmail.com>2022-02-20 15:51:09 -0800
committerChris Bradley <1029chris@gmail.com>2022-02-20 15:51:09 -0800
commit995f96d8af37320da58733aeb4b2107af25ab668 (patch)
tree1bc7670dccbfc99bbc34a1612a737cb64be0010a /update.lua
parenta6097b11affbbd8c93c40bfc575bf25146c0c8fb (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.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/update.lua b/update.lua
index abe39b6..79bbeb0 100644
--- a/update.lua
+++ b/update.lua
@@ -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