소스 검색

日常开发

林旭祥 2 주 전
부모
커밋
c37f95fb2c
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/views/game/components/basketball.vue

+ 8 - 0
src/views/game/components/basketball.vue

@@ -909,6 +909,14 @@ const initGame = async () => {
 
 // 再次游戏
 const getResumeGame = async () => {
+  gameState.gameOver = false;
+  gameState.started = false;
+  gameState.score = 0;
+  gameState.time = 60;
+  gameState.balls = [];
+  gameState.state = 'play';
+  gameState.click = false;
+  gameState.exitTimer = null;
   handleMouseDown();
   setTimeout(() => {
     handleMouseUp();