Restructuring, #9
This commit is contained in:
parent
2055ef234e
commit
dab6fadad4
41 changed files with 941 additions and 680 deletions
10
lib/Input.hs
Normal file
10
lib/Input.hs
Normal file
|
@ -0,0 +1,10 @@
|
|||
-- Go to the next stage of the Game
|
||||
-- setNextState :: Game -> Game
|
||||
-- setNextState game = game{ state = newState }
|
||||
-- where newState = nextState $ state game
|
||||
|
||||
-- -- Get the next state based on the current state
|
||||
-- nextState :: State -> State
|
||||
-- nextState Menu {} = defaultLvlSelect
|
||||
-- nextState Pause {} = Playing
|
||||
-- nextState _ = Menu
|
Reference in a new issue