raster.art
SEARCH
Create Account
No wallets connected. Please connect a wallet first.
The Struggle
aebrer, 2022on fxhash
Platforms
fxhash
Description

creator: Andrew E. Brereton date: 2022-01-10 twitter: @aebrer website: aebrer.xyz medium: Pico-8, Lua, Tweetcart

This piece uses a type of probabilistic seed resetting to ensure that there will be a seamless loop of random length in each piece. It also makes heavy use of a screen copying technique added to the Pico-8 in version 0.2.4 (the latest). It copies vertical or horizontal bars, and these competing slices make up what you see on the screen, seeded by little hearts :)

Based on this tweetcart I made: https://twitter.com/aebrer/status/1480533290079694861?s=20

Source code: r=rnd 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) srand(s) function q()return r(32)-16end pal({q(),q(),q(),q(),q(),q(),q(),q(),q()},1) f=1_set_fps(60)cls()poke(0x5f54,0x60)::_:: for i=0,9do ?"♥",r(128),r(128),r(10) end for i=0,99do x=r(128)sspr(x,0,1,128,x+r({-1,1}),0,r(2),128)sspr(0,x,128,1,0,x+r({-1,1}),128,r(2))end if(r(f)>500)srand(s)f=0 f+=1flip()goto _