Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c.height=c.width=W=255
- c.style.border='4px solid #000'
- V=3
- s=t=L=U=0
- h=X=10
- Y=125
- $=[]
- with(Math)with(a)K=r=random,P=function(x,y,p){if(p)for(J=0;J++<56;p/=2)p&1&&P(x+J%8,y+J/8)
- else for(z=0;z<5;I.data[m*4+z]=++z&4&&W)m=x+~~y*W},R=onkeydown=onkeyup=function(e){e?(v=[-1,-2,1,2][e.which-37],w=!!e.type[6]&&v,v?v&1?L=w:U=w:w+h&&(h=0,t=X+8,b=Y+1)):(fillStyle='red',fillRect(0,0,W,W),fillStyle='#000',K=r)},setInterval(function(){X+=L
- Y+=U
- I=createImageData(W,W)
- for(i=V;i>0;)P(W-i--*10,245,Z=0x3F6DFFBF12720C)
- P(X,Y,Z)
- h||P(t,b,h=(t+=4)>251)
- $=$.filter(function(v){P(x=--v[0],y=v[1],G)
- return!(x<1|x-X>=0&x-X<8&abs(y-Y)<8?V--+(K=R):h|x-t<0|x-t>9|b-y<0|b-y>9?0:h=++s%20||++V)})
- V>0&&P(2,3,G=0x607E416AD57E60)+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