A classic Snake game built using Pygame, featuring a home screen, score & time tracking and an end screen featuring stats and high scores.
- Home Screen: Input player name and start the game.
- Dynamic Gameplay: The snake grows as it eats fruits, increasing difficulty.
- Score Tracking: Track your high scores and game stats.
- End Screen: Check out your stats and see the leaderboard for the highest score.
- Python 3.8 or higher
- Pygame library
Install Pygame using pip:
pip install pygame
- Clone the repository or download the game files.
- Run the script:
python snake_game.py
- Enter your name on the home screen and press "Start."
- Use the arrow keys to control the snake: Up Arrow: Move up Down Arrow: Move down Left Arrow: Move left Right Arrow: Move right
- Avoid hitting the walls or the snake's own body. Eat fruits to grow and increase your score.
- snake_game.py: Main game file containing the logic and gameplay.
- high_scores.json: File to save player high scores (auto-generated).