-------------- notes --------------
The eighth tweetcart for the Tweetcart Token Club (TTC)!
Snapshot will be taken on June 1st 2022 of the holders of the Tweetcart Token Club token: hicetnunc objkt #414400
For this piece, a reserve is used so that each club member can mint 3 editions, for free, with 50% of the royalties.
10% of the royalties goes to my tezos Breadfond
find more info about my projects and roadmap at aebrer.xyz
-------------- details --------------
This is a Pico-8 tweetcart! The entire source code fits into a single tweet.
It's also a generator generator. Each piece is a generator that has its own unique starting position in an insanely massive linear sequence of outputs (determined by the random seed).
It uses a technique called "seed looping", a way to exploit the pseudorandom number generator, to create complex emergent loops.
This is best exemplified by commenting out these two lines:
```
if(r()>.5)p(s)
if(r()>.9)p(s)
```
likeso
```
--if(r()>.5)p(s)
--if(r()>.9)p(s)
```
Now you see that random lines are being generated in a highly noisy way. This is maximum entropy.
If you try different seeds, you technically get a unique animation, however, to a human they all look the same.
But by simply introducing the seed looping, you "catch" individual loops and they become discernible.
via this URL, you can interact directly with the source code on the Pico-8 Education Edition:
https://www.pico-8-edu.com/?c=AHB4YQEUANZPcE5x-9n5C1RvkJ3tk_ABDniLMy66oyhOKo45JkmCorgmKV4jaU65Pe7rKBkYiPIwW4i65vYwb5PwKZJ04S08ED-DKzxAH6eHvcDMllbAccEDFMHaI2TpULFz4WmxXpCd5_yWn6YlMNPN2GxraCldCYJ2yzXNTBnfFY4dd17uosGd1bWddrIrkpmlKu1Xki406sbCjrDQ5EPMFu3GffVMMKNicNfW3FoWr4ShZlGVzEmEc0wi1BlLSwMj7zC6cdpT7EXlcDWx_gxRXOwMAw==&g=w-w-w-w1HQHw-w2Xw-w3Xw-w2HQH
Join me on Twitch live Saturday May 28th, 2020, at 1pm EST, for a demonstration and walkthrough of the code.
-------------- controls --------------
left click - get next loop in the generator sequence
right click - save a gif of the last 16 seconds
-------------- tweetcart source code (280 chars) --------------
r=rnd
p=srand
pal({-8,8,9,10,11,12,2},1)cls()s=r(-1)p(s)b=0c=1x=-8y=-8poke(0x5f2d,1)::_::
if(r()>.5)p(s)
if(r()>.9)p(s)
x+=r(8)y+=r(8)b-=.0005c+=r(.2)x%=136y%=136line(x,y,x+r(6)-6,y+r(6)-6,c%8)
if(stat(34)==1and 0>b)s+=1cls()b=9
if(stat(34)==2and 0>b)b=9extcmd("video")
goto _
-------------- fxhash source code --------------
r=rnd
p=srand
w=stat(6)
s=1
for i=1,#w do
ch=ord(sub(w,i,i))s+=s*31+ch
end
if(#w==0)s=r(-1)
pal({-8,8,9,10,11,12,2},1)cls()p(s)b=0c=1x=-8y=-8poke(0x5f2d,1)::_::
if(r()>.5)p(s)
if(r()>.9)p(s)
x+=r(8)y+=r(8)b-=.0005c+=r(.2)x%=136y%=136line(x,y,x+r(6)-6,y+r(6)-6,c%8)
if(stat(34)==1and 0>b)s+=1cls()b=9
if(stat(34)==2and 0>b)b=9extcmd("video")
goto _