{"name":"Falling Leaves - TTC Series 01 Tweetcart 01","description":"The first tweetcart for the Tweetcart Token Club (TTC)! \nClick/Tap to generate a new tree!\n\nSource Code:\npal(0,12)cls(12)m=128r=rnd\nl=line::_::\nfor i=1,99do\nx=r(m)y=r(m)\nif(r()>.9)?\"░\",x-r(9),y+r(9)+2,r({8,9})\n?\"▒\",x,y,0\nend\nfor i=1,25do\nf=-r(2)x=110y=m\nz=x+i\nw=y-r(9)-40l(z,y,z,w,4)\nfor i=1,25do\nz+=r(9)*f*i/9w-=r(9)l(z,w,4)c=r({8,9})?\"░\",z,w,c\nend\nend\nif(t()<1)goto _\n\n\nExplanation:\npal(0,12) -- set the bg color to sky blue\ncls(12) -- clear the screen (fill with blue)\nm=128 -- I use this number a lot, store it to save characters\nr=rnd -- likewise but for this function\nl=line -- and again\n::_:: -- start of the draw loop\n\n-- dithering to avoid screen clutter\nfor i=1,99do  -- 99 loops\nx=r(m)y=r(m)  -- random x and y position\n-- 10% of the time, print some falling leaves \nif(r()>.9)?\"░\",x-r(9),y+r(9)+2,r({8,9})\n?\"▒\",x,y,0  -- erase parts of the screen\nend\n\n-- trunk of the tree\nfor i=1,25do  -- 25 vertical lines\nf=-r(2) -- need a consistent scaling factor\nx=110y=m -- line starts at bottom of screen, on the right side\nz=x+i  -- move to the right to draw the trunk\nw=y-r(9)-40 -- get a random length factor for end point\nl(z,y,z,w,4) -- draw trunk\nfor i=1,25do  -- draw branches (25 for each trunk line)\nz+=r(9)*f*i/9  -- get new branch x endpoint \nw-=r(9) -- get new branch y endpoint \nl(z,w,4)  -- draw branch\nc=r({8,9})  -- random leaf color 8 or 9\n?\"░\",z,w,c  -- draw leaves at the branch endpoints\nend\nend\nif(t()<1)goto _  -- only loop in the first second\n\n","tags":["pico-8","pico8","subscription","tweetcart","tweetcart_token_club","codeart","neoretro","pixelart","generative","opensource"],"symbol":"OBJKT","artifactUri":"ipfs://QmeMUYo3Un23e17vwCjqk5GsJnEL5aiCZ7RJANNgPsnCe6","displayUri":"ipfs://Qmf25vo6rtTYxzFL2T97M7qkHt4uqfDbpewzaNfsjWmmpq","thumbnailUri":"ipfs://QmNrhZHUaEqxhyLfqoq1mtHSipkWHeT31LNHb1QEbDHgnc","creators":["tz1ZBMhTa7gxSpaeXoqyc6bTCrxEHfZYSpPt"],"formats":[{"uri":"ipfs://QmeMUYo3Un23e17vwCjqk5GsJnEL5aiCZ7RJANNgPsnCe6","mimeType":"application/x-directory"}],"decimals":0,"isBooleanAmount":false,"shouldPreferSymbol":false}