better balancing for clicks

This commit is contained in:
biglyderv 2025-03-05 19:26:24 -05:00
parent 460686eb61
commit 70a3bfa2bd
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5

View file

@ -25,7 +25,7 @@ document.querySelector('canvas').addEventListener('click', (e) => {
p2[0] -= (mx - width / 2) / width * 2; p2[0] -= (mx - width / 2) / width * 2;
p2[1] += (my - height / 2) / height * 2; p2[1] += (my - height / 2) / height * 2;
let b = 1 / (Math.sqrt(p2[0] ** 2 + p2[1] ** 2) + .003); let b = 1 / (Math.sqrt(p2[0] ** 2 + p2[1] ** 2) + .03);
b = (b * b) * 0.001; b = (b * b) * 0.001;
getBonus += b; getBonus += b;