{"name":"bad coin flip alt","description":"-- bad coin flip alt\n-- alexthescott \n-- 8/23/21\n\nt=0\npa={8,136,152,2}\npal(pa,1)\ncls(7)\nc=2\nb=-1\n\n::♥::\nif time()<2 then\n\tprint(\"bad coin flip alt\",30,64,0)\nelse\n\t-- big circle\n\tovalfill(15,15,112,112,c-1)\n\t\n\t-- burn pixels\n\tif b==1 then\n\t\tnc=7\n\t\tbc=0\n\telse\n\t\tnc=0\n\t\tbc=7\n\tend\n\tfor p=0,2048 do\n\t\tx=rnd(128)\n\t\ty=rnd(128)\n\t\tpc=pget(x,y)\n\t\tif pc==nc then\n\t\t\tpset(x,y,6)\n\t\telseif pc==6 then\n\t\t\tpset(x,y,bc)\n\t\tend\n\tend\n\t\n\t--little circle\n\tovalfill(31,31,96,96,c)\n\t\n\t--oscillating ovals\n\tfor i=1, 8 do\n\t\ts=i*32\n\t\tp=s/2*(1+cos(t+i/25))/2\n\t\tif b == 1 then\n\t\t\toval(64+p,0+s/2,64-p,127-s/2,7)\n\t\t\toval(0+s/2,64+p,127-s/2,64-p)\n\t\telse \n\t\t\toval(64+p,0+s/2,64-p,127-s/2,0)\n\t\t\toval(0+s/2,64+p,127-s/2,64-p,0)\n\t\tend\n\tend\n\tt+=0.005\n\t\n\t--color change if l,r btn press\n\tif btnp(0) then\n\t\tc-=1\n\telseif btnp(1) then\n\t\tc+=1\n\tend\n\tif c==0 then\n\t\tc=#pa\n\t\tb*=-1\n\telseif c==#pa+1 then\n\t\tc=2\n\t\tb*=-1\n\tend\n\t\n\t--goto considered harmful?!\n\t--not in this case dijkstra\n\tflip()\nend\ngoto ♥","tags":["pico8"],"symbol":"OBJKT","artifactUri":"ipfs://QmdZAZGBtv8RG9CRKqeCknnA8CqfNKnZKmiiix3XbPc1D4","displayUri":"ipfs://QmaTDTWyT2Mf2MdznL55mYDM1HPo5VCHwqva3YEnhoYeGW","thumbnailUri":"ipfs://QmaTDTWyT2Mf2MdznL55mYDM1HPo5VCHwqva3YEnhoYeGW","creators":["tz1St3n29AbYXZXV8W1BG41qYzz86J2CFAW7"],"formats":[{"uri":"ipfs://QmdZAZGBtv8RG9CRKqeCknnA8CqfNKnZKmiiix3XbPc1D4","mimeType":"application/x-directory"}],"decimals":0,"isBooleanAmount":false,"shouldPreferSymbol":false}