luceroweb / haunted-house-game

https://luceroweb.github.io/haunted-house-game/
1 stars 12 forks source link

Add an inventory display for keys. #26

Open Tesfa-Worku opened 2 years ago

Tesfa-Worku commented 2 years ago

[timebox: 10, complexity: 1] Feature: Story experience

As a player, I want to see that I have a gold or silver key in hand so that I can head to the hallway and leave the haunted house.

Assets Gold key boolean: ‘hasGoldKey’ (default false) Silver key boolean: ‘hasSilverKey’ (default false) Inventory CSS container: ‘inventory’ className Key icons: small ‘goldKey’.png/jpg, small ‘silverKey’.png/jpg

Expected Outcome *When ‘hasGoldKey’ or ‘hasSilverKey’ are true, key icons appear on side margins within own container area