Browse Source

日常开发

林旭祥 4 weeks ago
parent
commit
4db6195bbc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/game/basketball.vue

+ 2 - 2
src/views/game/basketball.vue

@@ -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;