luceroweb / haunted-house-game

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

“You found the key!” message is displayed #14

Open garetshough14 opened 2 years ago

garetshough14 commented 2 years ago

[timebox: 10 min, complexity: 1]

As a player, I need a way to see a display for the key so that I know I got the key.

Assets

Expected outcomes

Story(You got Silver key text) You return to the group with the key. The cage containing Juan and the rest of the team lifts. The team rushes out of the cage, and passes you to the door. As you hold out the key, the group parts and you spot the door. You insert the key into the keyhole and turn. As the door unlocks, you push the heavy door open. Fresh air rushes past you and into the house. You and the team spill out into the street as you spot a figure strolling up the street to the house.

“Irma?! What are you doing here?!” Eyob questions.

“Hi everyone. You’re early for the Bitwise Haunted House!” Irma says, a smile plastered on her face as she points to the small “Bitwise Industries” sign just above the doorway.

You got Gold key text The group makes their way to the front door. Juan takes the key out of his pocket and inserts it into the keyhole, but just as the tip of the key touches the lock, it smashes into the lock, the gold wrapping peels away and reveals semi-melted chocolate.

luceroweb commented 2 years ago

@srosenberg74 consolidate your logic into your one component. use a single component, but pass in the values of the silver and gold keys. Use those key booleans to determine which key to display.

srosenberg74 commented 2 years ago

@luceroweb I think this is ready for QA. Just need to figure out where to put my component in the App.js with everyone else's stuff