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 _