{"name":"it's a feature 2","description":"-- it's a feature 2 (block trig)\n-- alexthescott\n-- 9/23/21 11:11pm\n\n-- vert osc if day is even\n-- hori osc if day is odd\n\np={8,136,130,11,139,131,12,140,129}\npal(p,1)\n\nfunction new_obj(r)\n\tobj={}\n\tobj.col=4\n\tobj.point={x=64,y=64}\n\tobj.r=r\n\tobj.a=rnd()\n\tobj.span=.1\n\tobj.coin=stat(82)%2==0\n\t\n\tobj.draw=function(self)\n\t\tlocal p=self.point\n\t\tlocal a1=self.a-self.span/2\n\t\tlocal a2=self.a+self.span/2\n\t\t\n\t\tif self.coin then\n\t\t\tfor at=a2,a1,-0.002 do\n\t\t\t\tx=p.x+cos(at/rnd())*self.r\n\t\t\t\ty=p.y+sin(at)*self.r\n\t\t\t\tpset(x,y,self.r/3)\n\t\t\tend\n\t\telse\n\t\t\tfor at=a2,a1,-0.002 do\n\t\t\t\tx=p.x+cos(at)*self.r\n\t\t\t\ty=p.y+sin(at/rnd())*self.r\n\t\t\t\tpset(x,y,self.r/3)\n\t\t\tend\n\t\tend\n\t\n\t\tself.a+=0.004\n\tend\n\n\t\n\treturn obj\nend\n\nfunction burn()\n\tfor i=1,1200 do \n\t\tx=rnd(128)\\1\n\t\ty=rnd(128)\\1\n\t\tpc=pget(x,y)\n\t\tif pc!=0 and pc%3!=0 then\n\t\t\tcircfill(x,y,1,pc+1)\n\t\telse\n\t\t\tpset(x,y,0)\n\t\tend\n\tend\nend\n\nobjs={}\nfc=0\n\nfor i=1,20 do\n\tadd(objs,new_obj(i*3))\nend\n\ncls()\n::♥::\nif t()<2 then\n\tprint(\"it's a feature 2\",32,64,1)\nelse\n\tburn()\n\t\n\tfc+=1\n\t\n\tif fc>=100 then\n\t\tfc=0\n\tend\n\t\n\tfor obj in all(objs) do\n\t\tobj:draw()\n\tend\n\t\n\tflip()\nend\ngoto ♥","tags":["pico-8","pico8"],"symbol":"OBJKT","artifactUri":"ipfs://QmcYK72UfojHLYaFmTb8kMjkZao2snTbd9rVNMZhrJBPKR","displayUri":"ipfs://QmYfi52dXKTsKYqVCMDQ4dFHyLwdP68C6C7HMr1QV6NukC","thumbnailUri":"ipfs://QmNrhZHUaEqxhyLfqoq1mtHSipkWHeT31LNHb1QEbDHgnc","creators":["tz1St3n29AbYXZXV8W1BG41qYzz86J2CFAW7"],"formats":[{"uri":"ipfs://QmcYK72UfojHLYaFmTb8kMjkZao2snTbd9rVNMZhrJBPKR","mimeType":"application/x-directory"}],"decimals":0,"isBooleanAmount":false,"shouldPreferSymbol":false}