Snake Game is a simple snake game project created using HTML, CSS, and JavaScript. The game includes three levels of difficulty: easy, medium, and hard, which determine the speed of the snake's movement and the number of obstacles.
- The snake moves in four directions: up, down, left, right.
- The difficulty level can be selected before starting the game.
- The game ends when the snake hits itself or an obstacle.
- A "Game Over" message appears after losing the game.
- The best score is saved for each difficulty level.
- The game can be paused at any time.
- A warning message is displayed before changing the difficulty level during an active game.
- Open the
index.htmlfile in your web browser. - Select the level of difficulty.
- Click the "New Game" button to start the game.
- Control the snake using the arrow keys on your keyboard.
- Collect food to score points and grow.
- Avoid hitting yourself or an obstacle.
- This project was created with the assistance of GitHub Copilot.
- The game background is from freepik.com.
- The sound effects are from freesound.org and the 8-bit Video Game Sounds pack by ProjectsU012.
Maciej Gawłowski
This project is licensed under the MIT License.