A modern, polished Snake game built using Python & Pygame, featuring smooth visuals, seamless movement, sound effects, a main menu with stats, and optimized asset handling.
This project started as a classic Snake clone and was gradually evolved into a high-quality, portfolio-ready game.
- 🌈 Seamless rainbow snake (continuous body, no blocks)
- 🐍 Tail tapering & animated head with eyes
- 🌀 Wrap-around world with intentional portal behavior
- 🍎 Food eat animation (pop + fade)
- 🎮 Keyboard controls (Arrow keys + WASD)
- ⏸️ Pause / Resume
- 🔊 Sound effects + background music
- 🏆 Persistent high score & stats
- 📊 Main menu with:
- High score
- Games played
- Total score
- ⚡ Optimized performance
- Asset caching
- No runtime image loading
- Smooth 120 FPS gameplay
| Key | Action |
|---|---|
| Arrow Keys / WASD | Move |
| P | Pause |
| M | Mute / Unmute music |
| SPACE | Restart after game over |
| ENTER / Click | Start game (menu) |
- Python 3.7+
- Pygame 2.6.1
Install pygame:
pip install pygamepython snake_game_2.pyThis project is open for learning and experimentation. Feel free to fork, modify, and build on it.
Made with ❤️ using Python & Pygame