aebrer - Andrew E. Brereton · @aebrer
441 followers · 1045 posts · Server genart.social

@2DArray

1. this is amazing, I really love it!!
2. why as opposed to ?

#tootjam #tootcart

Last updated 1 year ago

2DArray · @2DArray
259 followers · 114 posts · Server mastodon.gamedev.place

the mountain towers above the desert

?"\^!5f100β–’πŸ±249웃◆?>β˜‰πŸ…ΎοΈβ™₯7"
function t(x,z)return sin(x/5)/2+sin(z/4)/2+max(6-sqrt(x*x+z*z)/2)end::_::a=rnd()-.5b=rnd()-.5c=sqrt(1-a*a-b*b)x=0y=4z=-30r=b*1.5-a*3+c*12+.5+rnd()for i=1,40do
h=y-t(x,z)if(h<0)then
m=y-h-t(x+1,z)n=y-h-t(x,z+1)l=sqrt(m*m+n*n+4)m/=l
n/=l
r=3-m*2+n*4-c*16-1/l+rnd()break
end
if(h<1)h=1
x+=a*h
y+=b*h
z+=c*h
if(z>30)break
end
pset(64+a*128,64-b*128,r)goto _

#pico8 #tootjam

Last updated 1 year ago