Using the provided HTML and CSS files, I added JavaScript to provide the logic for "Phrase Hunter." This is a game in which the player tries to guess a random phrase. Each time a correct letter is chosen, those matching letters from the phrase are revealed. A wrong choice results in losing one of the five hearts. To win, the player must guess all off the letters before running out of hearts.
- Event listener for the physical keyboard.
- Changes to app style:
- Animation added to game title.
- Animation added to 'Start Game' button.
- Colors changed: hearts, onscreen keys once chosen, phrase letters once revealed.
- Animation added for phrase letter reveal.
- Sound effects added for right and wrong letters chosen.
- Animation added to end of game messages.
- Sound effects added for end of game messages.