A simple Snake Game implemented in Python using the Pygame library.
-
Install Pygame:
pip install pygame
-
Run the game:
python snake_game.py
-
Control the snake using arrow keys: UP, DOWN, LEFT, RIGHT.
-
Eat apples to grow the snake and increase your score.
-
Avoid collisions with the snake's own body.
-
Press 'ESC' to exit the game.
- The snake starts with 3 segments.
- Each apple eaten adds 10 points to the score.
- The game ends if the snake collides with its own body.
- UP Arrow: Move the snake up
- DOWN Arrow: Move the snake down
- LEFT Arrow: Move the snake left
- RIGHT Arrow: Move the snake right
- ESC: Exit the game
- Customizable constants such as snake size, apple size, and screen dimensions.
- Game over screen with the option to play again.
- Pygame: A cross-platform set of Python modules designed for writing video games.
Feel free to contribute to the improvement of this Snake Game. Fork the repository, make your changes, and submit a pull request.