|
@@ -448,7 +448,7 @@ class Ball {
|
|
|
|
|
|
update(delta) {
|
|
|
this.y += this.gravity * delta;
|
|
|
- this.gravity += 2500 * delta;
|
|
|
+ this.gravity += 10000 * delta;
|
|
|
this.x += this.vx * delta;
|
|
|
this.y += this.vy * delta;
|
|
|
|
|
@@ -843,7 +843,7 @@ const calculateShootPower = () => {
|
|
|
const distanceToTarget = gameState.ballY - (highestHoopY - requiredHeightAboveHoop);
|
|
|
|
|
|
// 基础力度系数(可根据实际效果调整)
|
|
|
- const powerCoefficient = 2.2;
|
|
|
+ const powerCoefficient = 4.3;
|
|
|
|
|
|
// 最小力度保障(防止过小的屏幕尺寸导致力度不足)
|
|
|
const minPower = clientObj.value.height;
|