Overview
This project involved creating a card-matching game with JavaScript, which I chose to base on the 1978 film Invasion of the Body Snatchers. The requirements:
- Counters to track the number of matches
- Prevent the user from selecting more than 2 cards at a time
- Matched cards remain flipped
- Mismatched cards flip back over
Features
- Film-inspired audio with an audio toggle to disable the sound
- Light/dark mode
- Flip animation on the cards
- Match and mismatch counters
- Exit button to allow the user to quit the game at any time
- 70s/retro-inspired aesthetic, with floral patterns on the back of the cards and use of earthy tones (browns, oranges, yellows)

To give users more control over their experience, I added two toggles. The audio toggle allows users to switch the sound on (or leave it off, which is the default). When enabled, some mild audio plays on the Instructions page, when the cards are flipped, and when the game ends (both when the player wins and loses). I also added a toggle for light and dark mode, so users can choose whatever visual style they prefer.

