Advertisement
Guest User

Untitled

a guest
Dec 31st, 2010
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. G=27160417194573408
  2. Z=17853868722516492
  3. c.height=c.width=W=255
  4. c.style.border='4px solid #000'
  5. V=3
  6. $=[]
  7. s=t=L=U=0
  8. u={38:-2,40:2}
  9. l={37:-1,39:1}
  10. h=X=10
  11. Y=125
  12. m=Math
  13. K=r=m.random
  14. with(a)P=function(x,y){x=(x+~~y*W)*4
  15. for(y=1;y<5;)I.data[x++]=y++>>2?W:9},S=function(x,y,p){for(J=0;J++<56;)p&1&&P(x+J%8,y+J/8),p/=2},onkeydown=function(e){(v=u[e=e.which])?U=v:(v=l[e])?L=v:h&&(h=0,t=X+8,b=Y+1)},onkeyup=function(e){u[e=e.which]==U?U=0:l[e]==L?L=0:0},setInterval(function(){X+=L
  16. Y+=U
  17. I=createImageData(W,W)
  18. for(i=V;i>0;)S(W-i--*10,245,Z);S(X,Y,Z);h||P(t,b)&(h=t==(t=m.min(m.max(0,t+4),W-8)))
  19. $.forEach(function(v,i){S(x=--v[0],y=v[1],G);(x<1||x-X>=0&&x-X<8&&m.abs(y-Y)<8)?$.splice(i,1)+V--+(K=function(){fillStyle="red"
  20. fillRect(0,0,W,W)
  21. fillStyle='#000'
  22. K=r}):!h&&x-t>=0&&x-t<8&&b-y>=0&&b-y<8?h=$.splice(i,1)+(++s%20||++V):0})
  23. V>0&&S(2,3,G)+putImageData(I,0,0)+fillText(s,15,10);K((g=$.length<4&&r()>.93&&25+(r()*25<<3))&&$.push([246,g]))},70)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement