Hello World Tweet
This program creates a heightmap (roughly) approximating the earth's surface by summing sinusoids.
Remix it on pico-8-edu.com
This cart is tweetable at just 278 characters.
w="+)G%K*C#+0?#;/_#?5S#7U7$'-W#/:/%#+3$+D[&31+$?3C$G-O#;8?$O9O$Ka3$+B##SC+$K2+$#M7#[D;#7[+#7:K$?9"
q=1::_::if(w[q])poke(q,ord(w[q])-35<<q%2*2)
x=q%128y=q\128h=0for i=1,89,8do
j=i+4h-=%i*sin(x*$i+sgn(25-i)*y*$j+%j>>14)>>13end
c=1if(h>1)c=5+2*sgn(y-53)
pset(x,y,c)q=1+q&8191goto _
About
See the explainer on GitHub
Acknowledgements
This technique was inspired by the plasma effect used in demoscene
Status | Released |
Platforms | HTML5 |
Author | Mini Mech Media |
Made with | PICO-8 |
Leave a comment
Log in with itch.io to leave a comment.