The Snake Game is a classic arcade game where the player controls a snake that moves around the screen, eating food and growing in length. The objective is to guide the snake to eat as much food as possible without colliding with its own body.
You can play the game live by visiting the following link: Live Demo
- Simple and intuitive controls: The snake is controlled using arrow keys.
- Accelerating velocity: The snake's speed increases as it devours multiple meals, enhancing the exhilaration of the game.
- Random food generation: Food is randomly placed on the game screen for the snake to eat.
- Scoring: The player's score increases with each food item eaten by the snake.
- Game Over condition: The game ends if the snake collides with its own body.
- High score tracking: The highest score achieved by the player is displayed.
- Pause button: The game includes a pause button that allows the player to take a break and resume the game after a period of time.
Follow the steps below to run the Snake Game project:
-
Download or clone the project from the GitHub repository:
git clone https://github.com/eng-mohammad-mousa/Snake_Game.git
-
Navigate to the project directory.
-
Open the
index.html
file in your preferred web browser. You can do this by double-clicking on theindex.html
file or right-clicking and selecting "Open With" your desired web browser.
Now you should be able to play the Snake Game by following these installation steps. Happy gaming!
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue on the GitHub repository.