Spaaace!
About
You travelled to the moon… your mission: land safely!
Use the arrows to control the spaceship. Aim for a flat area. Land with a low speed. Beware: your fuel is limited!
A game in 560 chars for the TweetTweetJam 3.
n=rnd
l={}x=55y=20u=.2v=0k=3w=.03m={{-w,0,-1,4},{w,0,7,4},{0,w,3,0}}e=75z={"웃","░","🅾️"}for i=0,8 do
add(l,{x=16*i,y=x+n(x)})end
f=ceil(n(8))l[f].y=l[f+1].y::_::cls(1)h=-1g=h
srand(f)for i=1,9 do
j,c=l[i].x,l[i].y
pset(n(128),n(55),6+(3*t()+n())%2)for w=0,74 do
line(g,h+w,j,c+w,5+w/25)end
g,h=j,c
end
d=ceil(x/16)if k==3then
v+=.01x+=u
y+=v
w=u*u+v*v<.1
if(pget(x,y)==5)k=l[d].y-l[d+1].y<4 and w and 1or cls(8)or 2
for i=0,2 do if(e>0 and btn(i))j=m[i+1] u+=j[1] v-=j[2]print("◆",x-j[3],y-j[4],8)e-=1end
end
?e,x-3,y-13
?z[k],x-3,y-4,w and 11or 12
flip()goto _