Damn, that code is totally incomprehensible to me. Wish I could've learned how to do things like these from it, but I neither understand what memset does, nor why the values of hline() are what they are or where all the values come from, especially XM. Oh well, I'll figure it out eventually. Good job!
btw. you can press buttons to toggle the outline on and off
The effect itself is:
x1 = sin(a)
x2 = sin(a+90)
x3 = sin(a+902)
x4 = sin(a+903)
the rest is just scaling, positioning and animation via coordinate offsets.
memset is documented in the pico-8 manual, it is a function to write directory to memory (I'm writing to 0x6000 which is the screen memory)
[Please log in to post a comment]