A simple memory game where players must replicate a sequence of button flashes. The game becomes progressively challenging with each level.
This project is built using HTML, CSS, and JavaScript to deliver an interactive browser-based game.
- Press any key to start the game.
- The game begins at Level 1 and generates a random button flash.
- Click on the buttons in the same sequence as displayed.
- Progress to the next level if the sequence is correct.
- If an incorrect sequence is clicked, the game ends.
- The game displays your score and prompts you to restart.
- Dynamic Levels: Each level adds a new button to the sequence.
- Visual Feedback: Button flashes indicate the sequence.
- Game Reset: Automatically resets upon game over.
- HTML: Structuring the game layout.
- CSS: Styling the buttons and animations.
- JavaScript: Implementing the game logic and interactivity.
-
Clone the repository:
git clone https://github.com/your-username/MemoryGame.git
-
Open the folder in VS Code.
-
Open
index.htmlin your browser to play the game.
- Add sound effects for button flashes.
- Implement a leaderboard to save high scores.
- Support for touch events on mobile devices.
Working on this project enhanced my understanding of:
- DOM manipulation using JavaScript.
- Event handling for interactive gameplay.
- Creating dynamic animations with CSS.