The Advanced Snake Game is a modern twist on the classic snake game, featuring enhanced graphics, bonus food, and improved gameplay mechanics. The player controls a snake that grows in length as it eats food while avoiding collisions with the walls and itself.
- Graphics: Custom graphics for the snake's head, body, tail, and food.
- Bonus Food: Collect bonus food for extra points after eating a certain number of regular food items.
- Score Display: Keeps track of the player's score during gameplay.
- Game Over Screen: Displays the final score with options to play again or quit.
- Python 3.x
- Pygame library
-
Clone this repository:
git clone https://github.com/AditHash/Python-Snake-Game.git
-
Navigate to the project directory:
cd Python-Snake-Game -
Install Pygame if you haven't already:
pip install -r requirements.txt
-
Place the required assets (images, sounds) in the appropriate folders as follows:
assets/ body/ head_left.png head_right.png head_up.png head_down.png body_horizontal.png body_vertical.png body_topleft.png body_topright.png body_bottomleft.png body_bottomright.png tail_left.png tail_right.png tail_up.png tail_down.png food/ apple.png cookies.png background/ background.png sounds/ EatSound.ogg
To run the game, execute the following command in your terminal:
python snake_game.py- Arrow Keys: Control the direction of the snake (Up, Down, Left, Right).
- C: Play again after a game over.
- Q: Quit the game.
- Developed using Python and Pygame.
- Special thanks to the https://opengameart.org/ for assets.
