#5 Render inventory when pressing i
This commit is contained in:
parent
f529fc5237
commit
d0302c3156
9 changed files with 76 additions and 52 deletions
|
@ -99,9 +99,11 @@ data Direction = North
|
|||
deriving (Eq, Show)
|
||||
|
||||
data Player = Player {
|
||||
playerHp :: HP,
|
||||
inventory :: [Item],
|
||||
position :: (X, Y)
|
||||
playerHp :: HP,
|
||||
inventory :: [Item],
|
||||
position :: (X, Y),
|
||||
showHp :: Bool,
|
||||
showInventory :: Bool
|
||||
} deriving (Eq, Show)
|
||||
|
||||
------------------------------ Condition -----------------------------
|
||||
|
|
Reference in a new issue