8000 GitHub - Cvsssssss/Snake-: A simple Snake game built using Pygame. Control the snake with arrow keys and start the game by pressing the spacebar.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A simple Snake game built using Pygame. Control the snake with arrow keys and start the game by pressing the spacebar.

Notifications You must be signed in to change notification settings

Cvsssssss/Snake-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Snake Game 🐍

A simple Snake Game built using Python and Tkinter.

🎮 How to Play

  • Use arrow keys (⬆️⬇️⬅️➡️) to control the snake.
  • Press Spacebar to start the game.
  • The snake grows when it eats food (blue square 🟦).
  • The game ends when the snake hits the wall or itself.

🛠 Features

  • Smooth controls using keyboard input.
  • Start game only when pressing Space (prevents unwanted movement at launch).
  • Random food placement within game boundaries.
  • Game over screen when losing.

🏗 Installation & Run

  1. Install Python (if not installed) from python.org.
  2. Clone this repository:
    git clone https://github.com/YOUR_USERNAME/snake-game.git
    cd snake-game
  3. Run the game:
    python "Snake 1.py"

📌 Future Improvements

  • Add a scoring system with high scores.
  • Implement different difficulty levels.
  • Improve UI with modern graphics.

📝 License

This project is open-source and free to use.


License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0).
This means you are free to use, modify, and share this project, but commercial use is prohibited without the author's permission.

More details: Creative Commons BY-NC 4.0


🚀 Happy Coding!

About

A simple Snake game built using Pygame. Control the snake with arrow keys and start the game by pressing the spacebar.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0