A classic Snake game built using C++ and the Raylib graphics library.
- Object-Oriented Design
- Random food generation
- Collision detection
- Score tracking
- Sound effects
- Retro-inspired UI
- C++17
- Raylib
- Make
- g++
.
├── Graphics/
├── Sounds/
├── main.cpp
├── Makefile
├── README.md
└── .gitignore
| Key | Action |
|---|---|
| ↑ ↓ ← → | Move Snake |
| ESC | Quit |
Compile:
makeRun:
make runClean:
make cleanInstall Raylib using Homebrew:
brew install raylibClone the repository:
git clone https://github.com/aru-srivastava/retro-snake-cpp.gitNavigate into the project:
cd retro-snake-cppBuild:
makeRun:
make run- Pause menu
- High-score saving
- Difficulty levels
- Game restart screen
- Better UI animations
Aru Srivastava
