Ashiok [Lexaloffle Blog Feed] Quantum Bullshit <p> <table><tr><td> <a href="/bbs/?pid=81126#p"> <img src="/bbs/thumbs/pico8_quantumbullshit-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=81126#p"> Quantum Bullshit</a><br><br> by <a href="/bbs/?uid=40157"> Ashiok</a> <br><br><br> <a href="/bbs/?pid=81126#p"> [Click to Play]</a> </td></tr></table> </p> <p>Here's a tiny tweetcart!<br /> 188 chars of pixelated punch~</p> <p>Here it is on twitter, if you want more &hearts;<br /> <a href=""></a></p> Mon, 24 Aug 2020 20:50:22 UTC cursed_petri <p> <table><tr><td> <a href="/bbs/?pid=81089#p"> <img src="/bbs/thumbs/pico8_cursed_petri-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=81089#p"> cursed_petri</a><br><br> by <a href="/bbs/?uid=40157"> Ashiok</a> <br><br><br> <a href="/bbs/?pid=81089#p"> [Click to Play]</a> </td></tr></table> </p> <p>I stumbled upon this very odd behaviour while making this tweetcart :<br /> <a href=""></a></p> <p>After loosing some sleep over why a pixel than can randomly go in any of the 4 direction always build staircases, here is what the poor souls of the #help channel on the pico8 discord server and I have found out :</p> <ul> <li>When trying to have randomly one of these results :<br /> dx=0 dy=1<br /> dx=0 dy=-1<br /> dx=1 dy=0<br /> dx=-1 dy=0</li> </ul> <p>I wrote this :</p> <p>dx=rnd({-1,1}) dy=0<br /> -- %50 chance to swap them<br /> if(rnd({true,false})) then dy=dx dx=0 end</p> <p>The behaviour disappears if I use any other method of achieving this result</p> <ul> <li>HOWEVER, the distribution of dx and dy with this method appears to really be random</li> <li>The pattern rnd({foo,bar}) appears to yield odd results, even on it's own</li> <li>if I swap out +dy and +dy<em>2 with a -dy and -dy</em>2 in the pset() calls, the staircase pattern is reversed.<br /> Which makes no sense, considering the sign of dy is supposed to be 50/50</li> </ul> <p>So, if anyone can explain why this behaviour happens, I'd be very grateful!</p> Sun, 23 Aug 2020 19:40:53 UTC petri <p> <table><tr><td> <a href="/bbs/?pid=81087#p"> <img src="/bbs/thumbs/pico8_petri-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=81087#p"> petri</a><br><br> by <a href="/bbs/?uid=40157"> Ashiok</a> <br><br><br> <a href="/bbs/?pid=81087#p"> [Click to Play]</a> </td></tr></table> </p> <p>Finally took the time to make a #tweetcart of this cute effect I found!<br /> It makes me think of bacteria on a Petri dish c:<br /> Credit to @Naxane_ on the #pico8 discord server for the help fixing a particularly /w e i r d/ bug with rnd() on tables, and for golfing it into a tweet!</p> Sun, 23 Aug 2020 19:28:33 UTC