Skip to content

Notdutra/Python-Snake

Repository files navigation

🐍 Snake Game

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.

Play the Game

You can play the game directly in your browser via GitHub Pages:

Play Snake Game

Note: The game may take 5-10 seconds to load in your web browser.

Features

  • 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.

How to Play

  • 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!

Installation

To run the game locally:

  1. Clone the repository:

    git clone https://github.com/your-username/your-repo-name.git
  2. Navigate to the project directory:

    cd your-repo-name
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Run the game:

    python main.py

Contributing

Contributions are welcome! If you'd like to improve the game or fix any issues, feel free to submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

  • Inspired by the classic Snake game.
  • Built with pygame and pygbag.

Enjoy the game! 🎮🐍

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published