Jumpbacks and continue
This commit is contained in:
parent
dab6fadad4
commit
b7278d6afc
11 changed files with 59 additions and 44 deletions
|
@ -2,11 +2,16 @@ module RPGEngine.Input.Paused
|
|||
( handleInputPaused
|
||||
) where
|
||||
|
||||
import RPGEngine.Input.Core ( InputHandler )
|
||||
import RPGEngine.Input.Core ( InputHandler, handleAnyKey )
|
||||
|
||||
import RPGEngine.Data ( Game )
|
||||
import RPGEngine.Data ( Game (..), State (..) )
|
||||
|
||||
------------------------------ Exported ------------------------------
|
||||
|
||||
handleInputPaused :: InputHandler Game
|
||||
handleInputPaused = undefined
|
||||
handleInputPaused = handleAnyKey continueGame
|
||||
|
||||
continueGame :: Game -> Game
|
||||
continueGame g@Game{ state = Paused{ continue = state }} = newGame
|
||||
where newGame = g{ state = state }
|
||||
continueGame g = g
|
Reference in a new issue