Log In  

Cart #18685 | 2016-02-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
28


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)

This is great!

P#18690 2016-02-07 06:05 ( Edited 2016-02-07 11:05)

It's mesmerizing.

P#18696 2016-02-07 10:07 ( Edited 2016-02-07 15:07)
1

btw. you can press buttons to toggle the outline on and off

@Pizza:

The effect itself is:

x1 = sin(a)
x2 = sin(a+90)
x3 = sin(a+902)
x4 = sin(a+90
3)

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)

Oh boy, that does help understand it. Thank you!

P#18705 2016-02-07 16:01 ( Edited 2016-02-07 21:01)

thanks for posting this! I learned a ton from the code :D

P#18750 2016-02-09 13:29 ( Edited 2016-02-09 18:29)
1

Seen this the first time in "Hardwired" demo on Amiga, called it the "marshmallow" effect ^^

Thanks for posting this.

P#20568 2016-05-14 06:17 ( Edited 2016-05-14 10:17)

I don't know why, but that looks really tasty. I want to eat it.

P#20571 2016-05-14 06:47 ( Edited 2016-05-14 10:47)

I can't stop watching this @_@

P#20588 2016-05-14 19:54 ( Edited 2016-05-14 23:54)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 20:18:35 | 0.016s | Q:32