Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Snake Game (Pygame)

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.


✨ Features

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

🎮 Controls

Key Action
Arrow Keys / WASD Move
P Pause
M Mute / Unmute music
SPACE Restart after game over
ENTER / Click Start game (menu)

🛠️ Requirements

  • Python 3.7+
  • Pygame 2.6.1

Install pygame:

pip install pygame

How to Run

python snake_game_2.py

📜 License

This project is open for learning and experimentation. Feel free to fork, modify, and build on it.

Made with ❤️ using Python & Pygame

About

A modern Snake game with smooth seamless rendering, animated food effects, sound design, a main menu with persistent stats, and performance-optimized assets.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages