Log In  
Log In  

Cart [#18685#] | 2016-02-07 | License: CC4-BY-NC-SA | Embed
27

Classic demoscene effect, now in PICO-8 form!

P#18686 2016-02-07 00:18 ( Edited 2016-05-14 23:54)

:: Pizza

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)
:: gtust

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)
:: visy

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)
:: Pizza

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

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

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)
:: jhice

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)
:: keiya

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)
:: emu

I can't stop watching this @[email protected]

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

[Please log in to post a comment]

X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-01-20 05:12 | 0.029s | 4194k | Q:37