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.

P#38747 2017-03-26 08:02 ( Edited 2017-03-28 14:14)

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

P#38769 2017-03-27 01:07 ( Edited 2017-03-27 05:07)
:: sax3

can you explain in details how it works?

P#38771 2017-03-27 03:25 ( Edited 2017-03-27 07:25)

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

P#38772 2017-03-27 03:44 ( Edited 2017-03-27 07:44)

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!)

P#38774 2017-03-27 06:23 ( Edited 2017-03-27 10:23)

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
P#38800 2017-03-27 23:57 ( Edited 2017-03-28 03:57)
:: sax3

cheers!

P#38811 2017-03-28 10:14 ( Edited 2017-03-28 14:14)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2019-12-13 06:25 | 0.019s | 2097k | Q:36