Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

QuantumCoderrr/PixelSnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

๐Ÿ PixelSnake

A retro-style Snake Game written in pure C using SDL2, built for fun, performance, and pixel aesthetics.

Gameplay Screenshot


๐ŸŽฎ Features

  • Built in C with SDL2 (no external dependencies)
  • Gradient-style snake body
  • Pixel-style score display and game messages
  • Pause (P), Restart (R), and clean visuals
  • Speed increases with score

๐Ÿงฑ Build Instructions (macOS/Linux)

Make sure you have SDL2 installed via Homebrew or apt:

# macOS (with Homebrew)
brew install sdl2
# Linux (Ubuntu/Debian)
sudo apt-get install libsdl2-dev
Then compile and run:
```bash
clang -std=c11 SnakeGame.c -o PixelSnake -I/opt/homebrew/include -L/opt/homebrew/lib -lSDL2
./PixelSnake

๐Ÿš€ Controls

Key Action
โ†‘ โ†“ โ† โ†’ Move Snake
P Pause/Unpause
R Restart Game

๐Ÿค Contributing

Pull requests are welcome!
If you find a bug or have a cool feature idea, feel free to fork and PR.
See CONTRIBUTING.md for guidelines.


๐Ÿ“„ License

This project is licensed under the MIT License.


๐Ÿ‘จโ€๐Ÿ’ป Author

Sandip Ghosh (@QuantumCoderrr)
4th Year B.Tech | AI/ML Engineer in the Making ๐Ÿš€

About

Minimal SDL2 Snake Game built in C with pixel-font graphics and no extra dependencies

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle ใซใ‚ˆใฃใฆๅค‰ๆ›ใ•ใ‚ŒใŸใƒšใƒผใ‚ธ (->ใ‚ชใƒชใ‚ธใƒŠใƒซ) /