Skip to content

mmgawlowski/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

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.

Features

  • 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.

How to Play

  1. Open the index.html file in your web browser.
  2. Select the level of difficulty.
  3. Click the "New Game" button to start the game.
  4. Control the snake using the arrow keys on your keyboard.
  5. Collect food to score points and grow.
  6. Avoid hitting yourself or an obstacle.

Notes

  • 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.

Author

Maciej Gawłowski

License

This project is licensed under the MIT License.

About

Training in the use of GitHub Copilot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published