A simple racing game modelled after 80's LCD style handheld games (If you're born in the 70's or early 80's you'll recognize the game type, I guess.
_="$ in a)a[$[0]+($[6]||$[2])]=a[$];s=c.wc.height2v2k=2q=20Q,j=I=t=2,zh6C='#00F84&FFF00&AAF04&8F842&C81'.spli@7ont='20px serif';aB=cLv);B0 4]);GG5 6]);SS7 8]sT=set,window.ondowna=a.CodeU7t--U9tD,t=t<0?0:t>3?3:t},f==5(p[4t)>0?(l--,Q<Hg()):I+=JI%q||(z=z<1?1:z-1p.unshif@Math.random()*14|>5p.pop(,gx('GAME OVER',y,2l,I=z1,clear(T2e3,dasv(ceKsB,KvG,v,KqtavbNS,mvXln(KqlnqlnXcNfl1l=;iH;i<ll;iDy=7*Pi;xH;x<4;xD)(p[ix)>0illRec@x*(10*i+5)+(h-P2y+4P5+1,P2+2r=.37-t/4,tN70+t*6hr@rstrokeStyle=C[2ineWJbNac-11,!1sr1],-24,16-18Y13Yre3],fx(I,28kfx(l,k,kT=5jD,j%z=Hf(,d()";for(X in Y="Y,JkX(h,U,=Qp=[Pi*Na(Ks,J5,H=0D++@t(&0=1sT(d,]&1<<idth=a.f(=312,-4,0)}Timeout(C[for(],l&&){7#)C[fc(key=cL(v,s); ]1,C[p.lengthwith(),=function(0,addColorStop(),fillStyle=".split(""))_=_.replace(RegExp(Y[X][0],"g"),Y[X].slice(1));eval(_)
Xz0iEyQgaW4gYSlhWyRbMF0rKCRbNl18fCRbMl0pXT1hWyRdO3M9Yy53HGMuaGVpZ2h0GTIEdh8yBGs9MgRxPTIwBFEZLGo9ST0EdD0yLHofBGgfNgRDPScjMDBGAzg0JkZGRgMwMCZBQUYDMDQmOEY4AzQyJkM4MScuc3BsaUA3BhtvbnQ9JzIwcHggc2VyaWYnOwdhEEI9Y0waBAR2KTsHQg8wCTRdKTtHC0cPNQk2XSk7UwtTDzcJOF0Wc1Q9c2V0FSx3aW5kb3cub24MZG93bgVhEAw9YS4MQ29kZVU3EXQtLVU5EXRELHQ9dDwwPzA6dD4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=[];l=3;j=I=0;t=2;z=10;h=160;
C='#00F7#8407#FFF7#0007#AAF7#0407#8F87#4207#C81'.split(7);
a.font='20px serif'
with(a) {
B=cL(0,0,0,v);with(B){addColorStop(0,C[0]);addColorStop(1, C[4])};
G=cL(0,v,0,s);with(G){addColorStop(0,C[5]);addColorStop(1, C[6])};
S=cL(0,v,0,s);with(S){addColorStop(0,C[7]);addColorStop(1, C[8])};
};
sT=setTimeout;
window.onkeydown=function(e) {key=e.keyCode;if(key==37)t--;if(key==39)t++;t=t<0?0:(t>3?3:t)};
f=function() {
if(p.length==5 && ((p[4] & (1 << t)) > 0)) {
l--,p=[];
if(l<=0)g()
} else I+=5;
if(!(I%q))z=z<1?1:z-1;
p.unshift(Math.random()*14|0);
if(p.length>5)p.pop();
},g=function() {
a.fx('GAME OVER', y,20);
l=3;I=0;z=11;
clearTimeout(T);
sT(d, 2000);
},d=function() {
with(a) {
sv();
ce(0,0,s,s);
fillStyle=B;fc(0,0,s,v);
fillStyle=G;fc(0,v,s,q);
ta(0,v);
// field
ba();fillStyle=S;
mv(h,0);ln(s,q);ln(0,q);ln(h,0);ca();fl();
fillStyle=C[1];
ll=p.length;for(i=0;i<ll;i++){
y=(7*i*i);
for(x=0;x<4;x++) {
if((p[i] & (1 << x)) > 0) a.fillRect(x*(10*i + 5) + (h - (i*20)),y + 40,i*5+1,i*2+2);
}
}
r = 0.37-(t/4);
ta(70+(t*60),h);
rt(r);
strokeStyle=C[2];
lineWidth=5;
ba();
ac(0,-10,12,-4,1, false);
sr();
fillStyle=C[1];
fc(-12,-4,24,16);
fc(-18,0,5,k);
fc(13,0,5,k);
re();
fillStyle=C[3];
fx(I, 280, k);
fx(l, k,k);
}
T=sT(d,50);
j++;
if(j%z==0)f();
};
d();