#5 Render inventory when pressing i

This commit is contained in:
Tibo De Peuter 2022-12-22 14:35:58 +01:00
parent f529fc5237
commit d0302c3156
9 changed files with 76 additions and 52 deletions

View file

@ -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 -----------------------------