parent
becd305e01
commit
5cc96cbdba
10 changed files with 53 additions and 21 deletions
|
@ -50,7 +50,7 @@ checkPlaying g@Game{ state = s@Playing{ restart = restart }} = newGame
|
|||
where newGame | isPlayerDead g = loseGame
|
||||
| isPlayerAtExit g = g{ state = goToNextLevel s }
|
||||
| otherwise = g
|
||||
loseGame = g{ state = restart }
|
||||
loseGame = g{ state = Lose{ restart = restart }}
|
||||
checkPlaying g = g
|
||||
|
||||
pauseGame :: Game -> Game
|
||||
|
|
Reference in a new issue