소스 검색

日常开发

林旭祥 1 개월 전
부모
커밋
6273682ffd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;