Retro Astro Lander clone (well, that's what it was called on Timesplitters 2!). Use the space bar to keep the rocket from accelerating into the terrain. Keys A and D rotate the rocket to allow side…
D=document;W=640;H=480;w=10;h=15;a=0.01;q=0.0175;x=y=50;r=0;R="red";G="#0f0";B="#000";i=j=0;T=F=350;t=410;f=400;c=D.getElementById('c');c.width=W;c.height=H;X=c.getContext('2d');X.T=X.lineTo;X.L=X.translate;X.B=X.beginPath;X.M=X.moveTo;X.F=X.fill;X.R=X.fillRect;l=[0,f,140,T,250,f,T,280,T,t,f,t,430,320,560,T,610,320,W,T];setInterval(d,h);function d(){j+=a;X.fillStyle=B;X.R(0,0,W,H);L=l.length;X.fillStyle=R;X.R(h,h,F,h);X.B();X.M(0,f);for(k=2;k<L;k+=2)X.T(l[k],l[k+1]);X.T(W,H);X.T(0,H);X.F();X.fillStyle=G;X.save();X.L(x+=i,y+=j);X.rotate(r*q);X.L(-x,-y);X.B();o=y+h;p=[[x,y-w],[x+w,o],[x-w,o]];X.T(x,y-w);X.T(x+w,o);X.T(x-w,o);X.F();X.restore();X.R(T,t,f-T,5);for(k=0;k<3;++k)for(n=0;n<L;n+=2){K=P(k,0);Q=l[n+2];if(K>l[n]&&K<Q){z=l[n+1];cg=(z-l[n+3])/(l[n]-Q);if(P(k,1)>z+(K-l[n])*cg){if(n==8&&r==0&&j<1)alert("Win");else alert("Crash");x=y=50;r=j=0;F=T}}}}function P(x,y){return p[x][y]}D.onkeydown=function(e){E=e.keyCode;if(E==65)r-=w;if(E==68)r+=w;if(E==32&&F>0){j-=(a*h)*Math.cos(r*q);i+=(a*h)*Math.sin(r*q);F-=3}}
RD1kb2N1bWVudDtXPTY0MDtIPTQ4MDt3PTEwO2g9MTU7YT0wLjAxO3E9MC4wMTc1O3g9eT01MDtyPTA7Uj0icmVkIjtHPSIjMGYwIjtCPSIjMDAwIjtpPWo9MDtUPUY9MzUwO3Q9NDEwO2Y9NDAwO2M9RC5nZXRFbGVtZW50QnlJZCgnYycpO2Mud2lkdGg9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