better balancing for clicks
This commit is contained in:
parent
460686eb61
commit
70a3bfa2bd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue