A classic Snake game implemented in Python using the Turtle Graphics library. This game simulates the fundamental mechanics of the popular Snake game where you control a snake to collect food (yellow circle), grow longer, and avoid colliding with your own tail.
- Snake Movement: Control the snake using the arrow keys.
- Growing Snake: The snake grows each time it eats the food.
- Collision Detection: Game over if the snake collides with its own tail.
- Score Tracking: Displays the current score and the highest score achieved.
- Sound Effects: Includes sound effects for eating food and game-over scenarios.
- Smooth Game Loop: The game loop updates the game state and renders the changes smoothly.
- Clone this repository:
git clone https://github.com/kilic-mustafa/snake-game.git
- Navigate to the project directory:
cd snake-game
- Install required libraries:
pip install pygame
- Make sure you have the following audio files in the project directory:
- woosh.mp3 (sound effect for eating food)
- negative_action.mp3 (sound effect for collision with own tail)
- game_music.mp3 (background music)
- Use the arrow keys (Up, Down, Left, Right) to control the snake's movement.
- The snake grows in length each time it eats the yellow food.
- Avoid colliding with your own tail to keep playing.
- The score is displayed at the top of the window, and the highest score is saved.
This project is licensed under the MIT License - see the LICENSE file for details.
