u(t) is called 60 times per second.
t: Elapsed time in seconds.
S: Shorthand for Math.sin.
C: Shorthand for Math.cos.
T: Shorthand for Math.tan.
R: Function that generates rgba-strings, usage ex.: R(255, 255, 255, 0.5)
c: A 1920x1080 canvas.
x: A 2D context for that canvas.
#game instructions: scroll down and back sometimes to begin. click on canvas and play with keys Q/A for one player and L/P for the other. also works when seeing/executing all the tree parts/dweets d/14017d/14016 and d/14015 . or just scroll my page up to the last part u/metamero
update: codegolf.tk (and all .tk domains), is permanently offline... for now there are a handful of working mirrors, e.g. https://whr.rf.gd/shorty/65NAW
u(t) is called 60 times per second.
t: elapsed time in seconds.
c: A 1920x1080 canvas.
x: A 2D context for that canvas.
S: Math.sin
C: Math.cos
T: Math.tan
R: Generates rgba-strings, ex.: R(255, 255, 255, 0.5)