Snake Game by Mr. Halip
Snake Game is a classic snake game implemented in Python using the Pygame library. The player controls a snake that grows longer as it eats food, while avoiding collisions with itself and the walls.
- Playable snake game with adjustable speed levels (slow, normal, fast).
- Sound effects for eating food and game over.
- Attractive graphics with a background image.
- Simple and intuitive controls.
- Python 3.12 or higher
- Pygame library
-
Clone the repository:
git clone https://github.com/Halip26/snake-game.git cd snake-game -
Install the required packages:
pip install -r requirements.txt
-
Ensure you have the sound files inside 'assets' directory (
game-point.mp3,game-start.mp3,game-intro.mp3,game-over.mp3) and the background image (image-snake-game.png) in the project directory.
Run the game using the following command:
python snake_game.py- Arrow keys to change the direction of the snake.
- Click on the buttons to select the speed level or restart the game after a game over.
This project is licensed under the MIT License. See the LICENSE file for details.
