Browse Source

日常开发

林旭祥 1 tháng trước cách đây
mục cha
commit
6273682ffd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;