Classic console-based Snake game implemented in C++ with object-oriented design. Features real-time gameplay, collision detection, and terminal-based controls using WASD keys.
| include | ||
| src | ||
| .gitignore | ||
| best_score.txt | ||
| CMakeLists.txt | ||
| DarkSnake.png | ||
| LICENSE | ||
| README.md | ||
✨ Features
- Modern graphics with SFML
- WASD/Arrow key controls
- Score tracking with best score persistence
- Menu and pause functionality
- Smooth collision detection
📋 Requirements
- C++17+
- CMake 3.10+
- SFML 2.5+
🚀 Quick Start
# Install dependencies (Ubuntu/Debian)
sudo apt install cmake build-essential libsfml-dev
# Build and run
mkdir build && cd build
cmake .. && make
./Snake
🎮 Controls
- WASD/Arrows — Move
- Space — Pause
- Enter — Menu select
- Escape — Menu/Quit
📁 Structure
Snake/
├── src/ # Source files
├── include/ # Headers
├── assets/ # Game assets
└── CMakeLists.txt # Build config
🤝 Contributing
Feel free to submit issues and pull requests!
📄 License
MIT License - see LICENSE file.
