快速重开不播放入场动画

This commit is contained in:
MrZ626
2020-12-20 23:17:51 +08:00
parent ecc1ae826f
commit d0ec3f4139
4 changed files with 26 additions and 25 deletions

View File

@@ -30,7 +30,7 @@ function scene.sceneInit()
love.keyboard.setKeyRepeat(false)
GAME.restartCount=0
if GAME.init then
resetGameData()
resetGameData(false,false)
GAME.init=nil
end
noKey=GAME.replaying
@@ -204,7 +204,7 @@ function scene.update(dt)
elseif P1.keyPressing[10]then
GAME.restartCount=GAME.restartCount+1
if GAME.restartCount>20 then
resetGameData()
resetGameData(false,false)
return
end
elseif GAME.restartCount>0 then