Advertisement
Guest User

Untitled

a guest
Dec 30th, 2010
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. <html>
  2. <body>
  3. <canvas width=1059 style="border:5px solid #000" id=t></canvas>
  4. <script>
  5. // start submission
  6. V=3;c=t.getContext('2d');n='000';G=n+n+914062108081923[s='toString'](2);Z=n+6798437144058750[s](2);$=[];s=a=L=U=0;u={38:-2,40:2};l={37:-1,39:1};h=X=10;Y=125;m=Math;K=r=m.random;t.height=t.width=W=255;_=Function;j=_('v','return v>=0&&v<8');B=_('v','return m.min(m.max(0,v),W-8)');P=_('x,y','x=(x+y*W)*4;for(y=1;y<5;)I.data[x++]=y++>>2?W:9');S=_('x,y,p,i','for(i=0;i<56;i++)p.charAt(i)&1&&P(x+i%8,y+(i>>3))');R=_($,'c.fillStyle="red";c.fillRect(0,0,W,W);c.fillStyle="#000";K=r');onkeydown=_('e,v','(v=u[e=e.which])?U=v:(v=l[e])?L=v:h&&(h=0,a=X+8,b=Y+1)');onkeyup=_('e,v','u[e=e.which]==U?U=0:l[e]==L?L=0:0');setInterval('X+=L;Y+=U;I=c.createImageData(W,W);for(i=V;i>0;i--)S(W-i*10,245,Z);S(X,Y,Z);h||P(a,b)&(h=a==(a=B(a+4)));$.forEach(_("v,i","S(x=--v[0],y=v[1],G);(x<1||j(x-X)&&m.abs(y-Y)<8)?$.splice(i,1)+(K=R)+V--:!h&&j(x-a)&&j(b-y)?h=$.splice(i,1)+(++s%20||++V):0"));V>0&&S(2,3,G)+c.putImageData(I,0,0)+c.fillText(s,15,10);(g=$.length<4&&r()>.93&&25+8*~~(r()*25))&&$.push([246,g]);K()',70)
  7. // end submission
  8. </script>
  9. </body>
  10. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement