parent
5cc96cbdba
commit
f3bce99120
18 changed files with 289 additions and 103 deletions
|
@ -12,7 +12,7 @@ import RPGEngine.Render.Core ( Renderer )
|
|||
-- A game is the base data container.
|
||||
data Game = Game {
|
||||
state :: State
|
||||
}
|
||||
} deriving (Eq, Show)
|
||||
|
||||
------------------------------- State --------------------------------
|
||||
|
||||
|
@ -33,6 +33,7 @@ data State = Menu
|
|||
| Win
|
||||
-- Lost a level
|
||||
| Lose { restart :: State }
|
||||
deriving (Eq, Show)
|
||||
|
||||
------------------------------- Level --------------------------------
|
||||
|
||||
|
|
Reference in a new issue