林旭祥 hai 1 mes
pai
achega
6273682ffd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/game/basketball.vue

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

@@ -714,7 +714,7 @@ const update = (delta) => {
 
     // 处理投篮逻辑(修改后)
     const isShooting = gameState.click || gameState.spaceShoot; // 鼠标或键盘触发投篮
-    if (isShooting && gameState.ballY <= 950) {
+    if (isShooting && gameState.ballY <= clientObj.value.height) {
       if (gameState.balls.length < 1) {
         const ball = new Ball(gameState.ballX + (93 / 2), gameState.ballY);
         ball.drawAngle = gameState.ballAngle;