Investors are throwing their money into the volatile market, beware the trawling CryptoMonster
for(_='),Z)ZYt(Xc.VVfillUUTexXOMath.N2*NPILp.KKx,KyJR(E~~ED**2CVfont=B*=.995@A("#ff?colour&&i=in}Z.map+=${0,E1)>.px ArialW.length:E-.5,.5Zr.ri.(Z(r,((i)=>Nabs( (r=>D1,9)}[, Ns(r/Kr/3YZVbegPathVarc(nerWidthnerHeightfor(A=UStyle=r||"#000"ZW=[],R=r+Nrandom()*(i-rYF={I=D3,6Z=["aaa","c81","da4"][I-3].spliX"")15*~~`0xr}`+D-110YW.push({ihr:IC,x:EZy:E-Zt:`rgb(0]},1]},2]})`})n=(>{r=E5,NsqrX/3))C,p={p:320/r*E1,2Zr:y:-x:-r}h={S=x-x,T=y-y,d=NhypoXS,T)+1e-5e={requestAnimationFrame(eZAURecX,Z(KxKp)>+Kr99n?0"J,KL-0ZVleTo(JZU<2505FW=W.filter(W.slice(i)(>{h(iZH=+d<H(m=H/d*5,M=m*S/d,P=m*T/diM/hP/i-=M/h-=P/r)})i@h.1h@,A(txyL,0ZUB`1.5*}`,AO"$"x-.4*y+/2Zh(pZ!(d<+Kr)YW{x< i))x>-- i))y>-h=- h))xiyhB"30",?f"ZO`$C+.`,/2,40)0;i++<50;)F();ne();';G=/[^ ->AFHIMP-TW[-~]/.exec(_);)with(_.split(G))_=join(shift());eval(_)
Zm9yKF89JyksWilaWXQoWGMuVlZmaWxsVVVUZXhYT01hdGguTjIqTlBJTHAuS0t4LEt5SlIoRX5+RUQqKjJDVmZvbnQ9Qio9Ljk5NUBBKCIjZmY/Y29sb3VyHyYmHmk9HWluHH1aGy5tYXAaKz0ZJHsYMCwXHkUXMSk+LhZweCBBcmlhbBVXLmxlbmd0aBQ6RS0uNSwuNVoTci4SEnIRaS4QKFoPER4oEg5yLAwoKAxpKT0+C05hYnMoCShyPT4IRDEsOSl9BxgfWwYsEgUJTnMcKHIvS3IvM1kEWlZiZWccUGF0aA9WYXJjKAMcbmVyV2lkdGgCHG5lckhlaWdodAFmb3IoQT0IVVN0eWxlPXJ8fCIjMDAwIlpXPVtdLFI9C3IrTnJhbmRvbSgpKihpLXJZRj0Ie0k9RDMsNlofPVsiYWFhIiwiYzgxIiwiZGE0Il1bSS0zXS5zcGxpWCIiKRoIMTUqfn5gMHgYcn1gK0QtMRcxMFlXLnB1c2goe2kTaBNyOklDLHg6RRcCWnk6RRctAVp0OmByZ2IoBjBdfSwGMV19LAYyXX0pYH0pG249KB0+e3I9RTUsTnNxclgBLzMpKUMscD17cDozMjAvcipFMSwyWnI6DHk6AS0MeDotcn0baD0Le1M9EngtEHgsVD0SeS0QeSxkPU5oeXBvWFMsVCkrMWUtNRtlPQh7cmVxdWVzdEFuaW1hdGlvbkZyYW1lKGVaQQ9VUmVjWBcXAiwBWihLeBlLcCk+AitLchY5OR5uDz8wIgNKLEsMBEwtBDBaVmwcZVRvKEpaVQ8UPDI1MBY1HkYPVz1XLmZpbHRlcgsoVy5zbGljZShpKRooHT57aCgMaVpIPRErEAxkPEgeKG09SC9kKjUsTT1tKlMvZCxQPW0qVC9kBWkZTS8RBWgZUC8SDBBpLT1NLxAMEGgtPVAvEHIpfSkFaUAFaBkuMQVoQCxBKBJ0AxJ4BXkFDBdMLDBaVQ9CYBgxLjUqEX0VYCxBD08iJCIFeC0uNCoRBXkrES8yWmgoDHBaIShkPBErS3IpWVcaCHsSeDwOHQkSaSkpBXg+Ai0OHS0JEmkpKQV5PgEtDmg9LQkSaCkpBXgZEmkFeRkSaBtCIjMwFSIsP2YiWk9gJBgUQysHLhgHGAdgLAIvMiw0MCkbHTA7aSsrPDUwOylGKCk7bg9lKCk7JztHPS9bXiAtPkFGSElNUC1UV1stfl0vLmV4ZWMoXyk7KXdpdGgoXy5zcGxpdChHKSlfPWpvaW4oc2hpZnQoKSk7ZXZhbChfKQ==
B = colour => c.fillStyle = colour||"#000",
v = [],
R = (min, max) => min + Math.random() * (max - min),
C = _ => { // create coin
O = ~~R(3,6) // coin size
colour = ["aaa", "c81", "da4"][O-3] // pick a colour scheme
.split("") // split rgb
.map(c => ~~(`0x${c}`) * 15 + ~~R(-10, 10)); // warp it
v.push({
mx: R(-.5,.5),
my: R(-.5,.5),
r: O ** 2,
x: R(0, innerWidth),
y: R(0, -innerHeight),
colour: `rgb(${ colour[0] },${ colour[1] },${ colour[2] })`
})
},
n = _ => { // pacman
r = R(5,Math.sqrt(innerHeight / 3)) ** 2
p = {
s: 320 / r * R(1,2),
r,
y: innerHeight - r,
x: -r//-R(0,innerWidth)
}
},
h = (a,b) => { // distance
X = a.x - b.x;
Y = a.y - b.y;
d = Math.hypot(X,Y) + 1e-5
},
e = t => { // render
requestAnimationFrame(e);
B();
c.fillRect(0,0,innerWidth,innerHeight);
// draw pacman
(p.x += p.s) > innerWidth + p.r && R(0,1) > .99 && n();
B("#ff0");
c.beginPath();
c.arc(p.x, p.y, p.r, Math.abs(Math.sin(t/p.r/3)), Math.PI*2 -Math.abs(Math.sin(t/p.r/3)), 0);
c.lineTo(p.x, p.y); // draw mouth
c.fill();
// generate more coins maybe?
v.length < 250 && R(0,1) > .5 && C();
// calc coins
v = v.filter((b,i)=>{
v.slice(i).map(o=>{
h(b, o);
D = b.r + o.r;
if (d < D) { // ok, let's bounce
m = D / d * 5,
U = m * X / d,
V = m * Y / d;
b.mx += U / b.r;
b.my += V / b.r;
o.mx -= U / o.r;
o.my -= V / o.r;
}
});
/*
D = b.r + p.r;
var survive = true;
if (d < D) { // ok, let's bounce off pacman?
if (b.x < p.x) {
m = D / d * 9,
U = m * X / d,
V = m * Y / d;
b.mx += U;// / p.r;
b.my += V;// / p.r;
} else {
survive = false;
}
}
*/
b.mx *= .995; // friction
b.my += .1; // gravity
b.my *= .995; // friction
B(b.colour);
c.beginPath();
c.arc(b.x, b.y, b.r, 0, Math.PI*2, 0);
c.fill();
c.font=`${b.r * 1.5}px Arial`;
B();
c.fillText(`$`, b.x - b.r*.4, b.y + b.r/2);
h(b, p);
return !(d < b.r + p.r); // decide if it's eaten by pacman
});
v.map(b => {
if ( b.x < b.r ) b.mx = Math.abs(b.mx);
if ( b.x > innerWidth - b.r ) b.mx = -Math.abs(b.mx);
if ( b.y > innerHeight - b.r ) b.my = -Math.abs(b.my); // bouncey Os
b.x += b.mx;
b.y += b.my;
});
// print crytop price
c.font=`30px Arial`;
B("#fff");
c.fillText(`$${ v.length ** 2 + ~~R(1,9) }.${ ~~R(1,9) }${ ~~R(1,9) }`, innerWidth / 2, 40);
}
for(i=0;i++<50;)C(); // create a bunch of coins
n(); // create pacman
e(); // start rendering