Birthday-themed Snake game with a pink visual style, custom sprites, and a special celebration screen at score 20.
This game is a personal birthday surprise with classic Snake gameplay and custom presentation:
- pink cat sprite as the snake body
- pink mouse sprite as food
- soft pink vignette background
- win condition at score
20with confetti and birthday message
- Start menu with:
Start Gamebutton- last highscore display
Happy Birthdaytext when last highscore is exactly20
- Manual snake controls with arrow keys
- Smooth visual movement (interpolation) on top of grid-accurate logic
- Safe food spawning:
- avoids border/corner cells
- avoids snake body cells
- Lose state (wall/self-collision)
- Win state at score
20:- text:
Happy 20th Birthday Mia Maus - animated pink confetti
- text:
- Open
index.htmlin a browser, or host this repo with GitHub Pages. - On phone, use swipe gestures on the game area.
Use GitHub Pages so your friend can open it on Android/iPhone without installing anything:
- Push this repo to GitHub.
- In GitHub repo settings, go to
Pages. - Set source to
Deploy from a branch. - Select branch
mainand folder/ (root). - Save and wait ~1 minute.
- Share the generated URL:
https://<your-username>.github.io/Snake-Game/
- Install dependencies:
pip install pygame
- Run:
python game.py
- Web version:
- Swipe on canvas
- Keyboard arrows also work on desktop browser
- Python version in menu:
- Mouse click
Start Gameor pressEnter/Space Qto quit
- Mouse click
- Python version in game:
- Arrow keys to move
- Python version in lose/win screens:
Cto return/start a new roundQto quit
- Gameplay logic is grid-based (one cell per move), which keeps collision behavior stable.
- Rendering is frame-based with interpolation between grid steps for smoother motion.
- This separation was important to fix earlier issues where large sprites and pixel-step movement caused false/instant collisions.
Detailed technical breakdown is in: