Here's a tiny tweetcart!
188 chars of pixelated punch~
Here it is on twitter, if you want more ♥
https://twitter.com/k10x10x10/status/1297998450408267782
I stumbled upon this very odd behaviour while making this tweetcart :
https://www.lexaloffle.com/bbs/?tid=39326
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 :
- When trying to have randomly one of these results :
dx=0 dy=1
dx=0 dy=-1
dx=1 dy=0
dx=-1 dy=0
I wrote this :
dx=rnd({-1,1}) dy=0
-- %50 chance to swap them
if(rnd({true,false})) then dy=dx dx=0 end
The behaviour disappears if I use any other method of achieving this result
- HOWEVER, the distribution of dx and dy with this method appears to really be random


