Inspiration:
I had the opportunity to flip @Aebrer's BE NOT AFRAID https://teia.art/objkt/750984
I wanted to keep two core features from the original tweetcart; Entropy Locking (randomly reducing the entropy of a generative space using srand()) and using screen data as a sprite-sheet. BE NOT AFRAID strictly paired these two features, pushing screen contents via sspr(), as srand() reset the entropy for a given generation. So I chose to uncouple these commands on a regular interval. Hence the title, "entropy lock pick."
What is a Tweetcart Relay?:
We receive a tweetcart as a 1/1 from a friend, and we modify it to make our own tweetcart, which we then send to someone else, to continue the process. Eventually it's our hope to have many relay chains going on with many people, anyone at all who likes to make tweetcarts or wants to learn how :)
Suggested Relay Guidelines from myself:
-> Copy the prior tweetcart 1:1, and tweak the cart while keeping some part of the original program until you've left your aesthetic changes however robust, and pass it on
or
-> Copy just a portion of the cart and build new, before passing on the tweet
Relay Information:
-> inspiration tweetcart: https://teia.art/objkt/750984
-> inspiration tweetcart author: @Aebrer; tz1ZBMhTa7gxSpaeXoqyc6bTCrxEHfZYSpPt;
-> destination tweetcart author: @CarsonKompon; tz1XqJ9e6NdouxdGvm2V3aknwFnGL6Kinu6A
Pico-8 Source Code:
-> 128 Tokens, 275 Characters;
```
?"\^!5f107?βπ
ΎοΈ>8βμ9:β₯β;β¬
οΈ<βͺ"
r,p,q=rnd,srand,poke
s=r(-1)
p(s)
f=0
q(0x5f54,0x60)
q(24364,5)
cls(r(16))
::_::
for i=0,16do x,y=r(65),r(128)?"\22",x,y,pget(x,y)+1
end
if(r()>.96and f<4)f+=1p(s)sspr(r(3),r(3),122,122,0,0,128,128)
if(f>=4)f=0s=r(-1)p(s)
flip()goto _
```
Explanation:
```
-- using @2dArray's excellent Palette-Maker
-- https://www.lexaloffle.com/bbs/?pid=68190
?"\^!5f107?βπ
ΎοΈ>8βμ9:β₯β;β¬
οΈ<βͺ"
-- store keywords to save chars later on
-- srand resets the random seed
-- poke will let us adjust Pico-8 Memory values
r,p,q=rnd,srand,poke
-- get and assign random seed value
s=r(-1)
p(s)
-- f will be an incrementing value from 0-4
-- helping us 'pick the entropy lock' by getting a new seed value
f=0
-- set the screen memory as the spritesheet with poke()
q(0x5f54,0x60)
-- mirror the screen from left to right
q(24364,5)
-- assign a random start color
cls(r(16))
-- label for GOTO statement
::_::
-- every frame, place 16 triangles down on the left side of the screen
-- ?"\n" is shorthand for print a given P8SCII code. 22 is a triangle
-- print the color of the given x,y coord + 1, so we increment through
-- the entire palette and back again
for i=0,16 do
x,y=r(65),r(128)
?"\22",x,y,pget(x,y)+1
end
-- if random value is high enough lock entropy by reset seed, and randomly feed-forward expand a part of the display
if(r()>.96and f<4)f+=1p(s)sspr(r(3),r(3),122,122,0,0,128,128)
-- every 4 locks, reset to a new seed value
if(f>=4)f=0s=r(-1)p(s)
-- animate at a "smooth" 30fps
flip()
-- consider Dijkstra harmful? #goto4life
goto _
```
To Friends and Creators:
Want to change the code, or make a relay Tweetcart of yourself based on this one? No problem! You can find the official education edition of the Pico-8 here, for free, usable in the browser, thanks to the Pico-8 Creators lexaloffle & co: https://www.pico-8-edu.com/ . Simply press escape to get to the code editor, copy and paste the source code here into there, and press ctrl+r to run the pico8.
Find me on Twitter @Alexthescott, and I encourage you to join our Neoretro Creative Coding Discord to learn together. Send myself or @aebrer a DM, and we'd be happy to send you an invitation