Classic demoscene effect, now in PICO-8 form!
P#18686 2016-02-07 00:18 ( Edited 2016-05-14 23:54)


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!
P#18687 2016-02-07 04:34 ( Edited 2016-02-07 09:34)

1

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)
P#18697 2016-02-07 12:09 ( Edited 2016-02-07 17:12)
[Please log in to post a comment]