简化resetGameData函数

This commit is contained in:
MrZ626
2020-11-20 00:43:47 +08:00
parent 7bfd362567
commit 0456bf515e
4 changed files with 21 additions and 67 deletions

View File

@@ -131,7 +131,7 @@ function keyDown.pause(key)
resetGameData()
SCN.swapTo("play","none")
elseif key=="p"and(GAME.result or GAME.replaying)and #PLAYERS==1 then
resetPartGameData(true)
resetGameData(true)
SCN.swapTo("play","none")
end
end

View File

@@ -202,7 +202,7 @@ function Tmr.play(dt)
elseif P1.keyPressing[10]then
restartCount=restartCount+1
if restartCount>20 then
resetPartGameData()
resetGameData()
return
end
elseif restartCount>0 then