stronger passes

This commit is contained in:
Pierre Wessman 2025-09-16 13:21:58 +02:00
parent 344569edee
commit 2533e3c50e
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ class Player {
pass(puck, target) {
const direction = target.position.subtract(puck.position).normalize();
const distance = puck.position.distance(target.position);
const power = Math.min(600, distance * 2);
const power = Math.min(800, distance * 2.5);
puck.velocity = direction.multiply(power);
this.state.hasPuck = false;

View File

@ -183,7 +183,7 @@ class Puck {
this.trail = [];
}
pass(target, power = 300) {
pass(target, power = 500) {
const direction = target.subtract(this.position).normalize();
this.velocity = direction.multiply(power);
}