A fun Hangman-style word guessing game built with React, themed around Marvel heroes. Guess the correct word before all heroes are defeated! The game includes visual feedback, animations, and a celebratory confetti effect when you win ๐
- โ๏ธ Built with React Hooks (
useState,useEffect,useRef) - ๐งฉ Randomly generated puzzle words
- ๐ฆธ Hero-based life system instead of classic hangman
- ๐จ Dynamic styling with
clsx - ๐ Confetti animation on win
- โจ๏ธ Interactive on-screen keyboard
- ๐ Restart game with Fight Again button
- ๐ฑ Responsive layout with automatic scrolling
- A random word is selected at the start of the game.
- Click letters on the on-screen keyboard to guess.
- Correct guesses reveal letters in the puzzle.
- Incorrect guesses eliminate heroes one by one.
- You win if you reveal the entire word.
- You lose if all heroes are defeated.
- Click Fight Again to start a new game.
This project uses the following packages:
reactnanoidโ unique keysclsxโ conditional class namesreact-useโ window size hookreact-confettiโ win animation