A simple and fun web-based Whack-a-Mole game built with HTML, CSS, and JavaScript.
- Classic whack-a-mole gameplay
- Score tracking
- 30-second timer
- Sound effects with toggle option
- Responsive design
- Visual feedback when game ends
- Click the "Start Game" button to begin
- Moles will randomly pop up from holes
- Click on the moles to whack them and earn points
- Try to get as many points as possible before the 30-second timer runs out
- When the game ends, your final score will be displayed
- HTML5
- CSS3
- JavaScript (ES6)
-
Clone this repository:
git clone https://github.com/yourusername/whack-a-mole-game.git -
Navigate to the project directory:
cd whack-a-mole-game -
Open
index.htmlin your web browser to play the game.
The game uses the following sound effects:
- Whack sound
- Game over sound
- Background music
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by the classic arcade game
- Built as a learning project for web development
- Special thanks to all open-source contributors
- Add difficulty levels
- Implement high score tracking with localStorage
- Add more visual effects and animations
- Create mobile-friendly touch controls
