Welcome to the Snake Game—a classic, retro-style snake game built using Python and pygame. You can play the game directly in your browser, thanks to pygbag, or download and run it locally.
You can play the game directly in your browser via GitHub Pages:
Note: The game may take 5-10 seconds to load in your web browser.
- Classic snake gameplay
- Increasing difficulty as the snake grows
- Responsive controls for a smooth gaming experience
- Playable directly in your browser—no downloads required!
- Pause with P, quit with Esc, and mute with M.
- Arrow keys or WASD: Control the snake's movement
- Eat the fruit to grow your snake and increase your score
- Avoid colliding with the walls or the snake's own body to stay alive!
To run the game locally:
-
Clone the repository:
git clone https://github.com/your-username/your-repo-name.git
-
Navigate to the project directory:
cd your-repo-name
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the game:
python main.py
Contributions are welcome! If you'd like to improve the game or fix any issues, feel free to submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Enjoy the game! 🎮🐍