🐍 Snake Game (Pygame) 🎮 A classic Snake Game developed using Python and Pygame, built as a second-year college project by: Abhishek Yadav, Vivek Yadav, Sushant Singh, and Narayn
🧠 Features 🕹️ Classic snake movement using arrow keys 🍎 Random food spawning with real-time score updates 🔄 Game Over screen with restart or quit options 🔊 Sound effects: 🎵 Game start 🍎 Eating food ❌ Game over
📁 Project Structure
SNAKE-GAME/ │ ├── game.py # Main game loop and logic ├── settings.py # Constants: screen size, colors, game speed ├── display.py # Scoreboard, rendering snake, game visuals ├── food.py # Food generation and placement │ ├── eat.wav # Sound: food eaten ├── distory.wav # Sound: game over ├── MP3.mp3 # Intro music ├── tab.wav # Optional extra sound │ ├── pycache/ # Python cache └── README.md # Project info
-
Install Python 3.13+ ➡️ Download Python
-
Install Required Libraries pip install pygame pip install playsound pip install random2
-
Run the Game python game.py
⌨️ Controls Key Action ↑ Move Up ↓ Move Down ← Move Left → Move Right C Restart after Game Over Q Quit after Game Over
🔊 Sound Credits
All sound files are stored locally in the project: eat.wav – Played when food is eaten distory.wav – Played on game over MP3.mp3 – Played at game start
📌 To-Do / Future Improvements
🏅 Add high score tracking 🧩 Welcome/menu screen UI 🌐 Web version using Pyodide or WebAssembly
📚 Libraries Used
pygame – Core game engine playsound – Background music random2 – Cross-compatible randomness
🏫 Project Info
🎓 This game was created as a second-year college project to explore:
Python fundamentals
Game loops
Real-time input handling
Modular coding structure

