|
@@ -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();
|