diff --git a/src/entities/player.js b/src/entities/player.js index 51dce98..2e5bab3 100644 --- a/src/entities/player.js +++ b/src/entities/player.js @@ -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; diff --git a/src/entities/puck.js b/src/entities/puck.js index 5f6791e..9fd02cb 100644 --- a/src/entities/puck.js +++ b/src/entities/puck.js @@ -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); }