A simple Snake Game implemented in HTML, CSS, and JavaScript.
- Play Snake with keyboard arrow keys or on-screen controls.
- Three difficulty levels: Easy, Medium, and Hard.
- Score tracking with a High Score display.
- Sound effects for eating and game over.
- Arrow Up: Move Up
- Arrow Down: Move Down
- Arrow Right: Move Right
- Arrow Left: Move Left
- Enter: Restart the game after Game Over
- Use the on-screen controls to change the snake's direction.
Choose the difficulty level to adjust the snake's speed:
- Easy: Slow speed
- Medium: Moderate speed
- Hard: Fast speed
- Open the
index.html
file in your web browser. - Choose the difficulty level using the buttons.
- Control the snake using the keyboard or on-screen controls.
- Eat the food to grow the snake and increase your score.
- Avoid collisions with the walls and the snake's body.
- Press Enter to restart the game after Game Over.
- Game Over sound: 'gameover.mp3'
- Eating sound: 'eating.mp3'
Check out the live demo here.
Feel free to contribute by opening issues or submitting pull requests. Bug reports and feature requests are welcome!