(very close to) Conways' game of life, fits in a single tweet.    Use left/right to move the cursor around and see what kind of patterns you can make!

Source:

t=64q,d,z,v,m=band,8192,11,128,memcpy::_::m(0,d*3,d)b=btn()t+=q(b,2)/2-q(b,1)circ(t,64,4,z)for x=0,v do
for y=0,v do
if z!=pget(x,y)then 
n=0
for i=x-1,x+1 do
for j=y-1,y+1 do
l=pget(i,j)n+=l/3+z*flr(l/z)end
end
sset(x,y,(n>9or n==2or n==3)and 3or 0)end
end
end
m(d*3,0,d)goto _


StatusReleased
PlatformsHTML5
Rating
Rated 4.0 out of 5 stars
(1 total ratings)
Authorstephan_gfx
Made withPICO-8

Download

Download
life2.p8 16 kB

Leave a comment

Log in with itch.io to leave a comment.