snake
A simple Snake game in C++, using the SFML library.
How to run:
Grab the latest stable compiled binaries here(scroll down, and check the Assets)
How to compile:
-
I generally use an ubuntu-based distro, I use this command to compile:
g++ src/*.cpp -Wall -Wextra -Wpedantic -O3 -o build/game -I lib/SFML-2.5.1/include -L lib/SFML-2.5.1/lib -Wl,-rpath,./lib/SFML-2.5.1/lib -lsfml-graphics -lsfml-window -lsfml-system
-
Please place the SFML-2.x.x library under
lib
directory, I have added this directory specifically for putting libraries. -
Please place the executable under
build
directory, I have added this directory specifically for putting compiled binaries. -
For other os's I would highly encourage you to follow the steps given here. Find the way to build for your OS/IDE/compiler under
Getting started
heading. They have explained most of the steps very well. -
This whole process could be automated, using CMake. I may add in future.
Thanks in advance for contributing to my project