A classic Snake game developed in C++ with the SFML graphics library.
Control a snake moving on a game board, eat food to grow, and avoid hitting the walls or your own body. A modern version of the 90s classic!
- Download the latest release from the "Releases" section
- Extract the zip archive
- Run
Snake_SFML.exe
- Arrow keys: Control the snake
- Escape: Quit the game
- Enter: Select an option in the menu
- C++17
- SFML 2.6
- CMake
- C++17 or higher
- CMake 3.0 or higher
- SFML 2.6 or higher
- Clone the repository:
git clone https://github.com/Anzzas/Snake_SFML.git - Create a build directory:
mkdir build && cd build - Generate build files:
cmake .. - Compile:
cmake --build . - The compiled game will be in
build/Snake_SFML.exe
classes/: Contains the game class definitionsSFML/: Main files and entry pointpolice/: Fonts used in the gameaudio/: Sound files
Feel free to open an issue if you encounter any problems or have suggestions for improvement!