瀏覽代碼

日常开发

林旭祥 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();