Log In  


Cart #38801 | 2017-03-28 | Code ▽ | Embed ▽ | No License
3

Here's the whole thing:

k,i,q=64,0,sqrt
cls(1)memset(i,223,k)::a::for y=3,k do
s=y/4
sspr(q(q(s))*16-i%8/4,0,k+k,1,k-y*32,k+y,k*4*s,1)
end i+=1 flip()goto a

Leverages memset for the checkerboard, piggybacking off some code for the background rendering in my upcoming PLAT4MER cart.

3


really cool, I could see making a pico-8 space harrier with it.


can you explain in details how it works?


That's really lovely! But... there's already a tweetjam thread for these haha!
lexaloffle.com/bbs/?tid=3726 :)


I think TRASEVOL_DOG's link is broken - here's the tweetjam thread link :D

(P.S. - Great "black magic" tweet coding you got there!)


Improved version posted to the correct thread: https://www.lexaloffle.com/bbs/?pid=38799#p38799

I thought that I had to start a new thread for these to appear in the Jam section of the console.

I'm not going to explain it...I learned to hack low-level vfx by deciphering things like this, so I like to leave them a little cryptic in this context. I will explain some of the techniques instead:

  • 223 = 13 * 16 + 15, i.e, put 13 in the top part of a byte and 15 in the bottom part
  • look up what sspr does in the PICO-8 docs :)
  • k is just a constant I'm using to reduce characters...it never changes

cheers!



[Please log in to post a comment]