This is a classic Snake game implemented in Python using the Pygame library. The goal of the game is to navigate the snake, eat food, and grow as long as possible without running into the rock or the snake's own body.
- Classic snake gameplay
- Increasing difficulty as the snake grows
- Simple and clean graphics
- Python 3.9.12
- Pygame library (version specified in requirements.txt)
You can install the required Pygame version using pip and the requirements.txt file:
pip install -r requirements.txt
- Clone the repository:
git clone https://github.com/RockurDev/the_snake.git cd the_snake
- Run the game:
python the_snake.py
Arrow Keys: Move the snake (Up, Down, Left, Right)
- the_snake.py: The main script that runs the game also contains configurable settings for the game.
- requierments.txt: Contains necessary libraries.
- setup.cfg: Configuration file for packaging and distribution.
- pytest.ini: Configuration file for pytest.
You can customize various aspects of the game by modifying the the_snale.py file:
- Screen size: Change the width and height of the game window.
- Colors: Modify the colors of the snake, food, and background.
- Speed: Adjust the speed of the snake.
- Adding different levels or maps
- Implementing power-ups
- Adding sound effects and music
- Creating a multiplayer mode
Contributions are welcome! Feel free to submit a pull request or open an issue to discuss potential changes or improvements.
- Pygame library documentation and tutorials
- Classic Snake game inspiration
Enjoy the game and have fun coding!