Skip to content

Instantly share code, notes, and snippets.

@firedev
Created April 22, 2020 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save firedev/a2aaf9a8c15066643f6af510402723f0 to your computer and use it in GitHub Desktop.
Save firedev/a2aaf9a8c15066643f6af510402723f0 to your computer and use it in GitHub Desktop.
PICO8 Tweetcart
-- https://twitter.com/lucatron_/status/1252171663883423745
-- https://gist.github.com/lucatronica/5d1b2bdceced5d5f1315b8e2f252146e
for i=1,8 do pal(i,({8,11,10,140,14,12,7})[i],1)end
::_::cls()
?"#pico8♥",0,0,8
for i=0,2 do
k=.25+i/60+cos(t()/8)/5
for y=0,5,.25 do
for x=0,30,.25 do
if(pget(x,y)>0) u=64+(x-15)/k v=64+(y-2.3)/k pset(u,v,bor(2^i,pget(u,v)))
end end end flip()goto _
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment