{"name":"Memory City","description":"press and hold the circle button to dissolve the city\n\n\nTweetcart Sourcecode (266 Characters):\n\npoke(▒|▤,웃/●)memset(81-😐,170,8)s=●-웃\npal({0,0,-15,1,-4,12,13,12,-4,1,-15,1,-4,1,-15},1)pal({-15,1,-4,1,-15,1,-4,12,13,12,-4,1,-15,0,0},2)cls()r=rnd::_::\nx=r(128)y=r(16)+56pset(x,y,r(16))d=r(8191)poke(s+d-tonum(btn(4))*0.5,@(s+d-64*(mid(1,(r()-.5)/0)*2-1)))  \ngoto _\n\n\nExplanation:\n\n-- instruct the pico8 to use the second palette, for the top half of the screen only\npoke(▒|▤,웃/●)\nmemset(81-😐,170,8)\n\n-- save space by encoding the memory address for the display\ns=●-웃\n\n-- set both palette one and two\npal({0,0,-15,1,-4,12,13,12,-4,1,-15,1,-4,1,-15},1)\npal({-15,1,-4,1,-15,1,-4,12,13,12,-4,1,-15,0,0},2)\n\n-- clear the screen\ncls()\n\n-- save characters when calling rnd\nr=rnd\n\n-- mark the start of the draw loop\n::_::\n\n-- random position for x\nx=r(128)\n-- random position for y within narrow band\ny=r(16)+56\n-- draw pixel of random color at that position\npset(x,y,r(16))\n\n-- choose a position in the display memory\nd=r(8191)\n\n-- the part that makes the \"city\"\npoke(\n s+d-tonum(btn(4))*0.5, -- write to this position, if the button is pressed shift by -0.5\n @(s+d-64*(mid(1,(r()-.5)/0)*2-1))  -- peek @ this position, last part is to get 1 or -1\n)  \ngoto _","tags":["pico-8","pico8","codeart","opensource","loop","lua","pixelart","tweetcart","interactive","generative"],"symbol":"OBJKT","artifactUri":"ipfs://Qmdwx1NRBDfNf1AQ1sG5KXyAf266eC3qRKQAmvPACRyHv3","displayUri":"ipfs://QmViUt9i8Gzi7UvMmNitnQZPzMMXQz5WxepsrSQBPYBYcp","thumbnailUri":"ipfs://QmNrhZHUaEqxhyLfqoq1mtHSipkWHeT31LNHb1QEbDHgnc","creators":["tz1ZBMhTa7gxSpaeXoqyc6bTCrxEHfZYSpPt"],"formats":[{"uri":"ipfs://Qmdwx1NRBDfNf1AQ1sG5KXyAf266eC3qRKQAmvPACRyHv3","mimeType":"application/x-directory"}],"decimals":0,"isBooleanAmount":false,"shouldPreferSymbol":false}