This is a very basic classic 2D snake game made with the SFML C++ game library.
- SFML 2.4.1 or above - http://www.sfml-dev.org/
sudo apt-get install libsfml-dev
- Vist www.sfml-dev.org and download the lastest version of the library.
- In project settings,
- Add the
</path/to/sfml/>/include
to your c++ include path. - Then add
</path/to/sfml/>/lib
to the linker extra library path.
- Visual Studio 15 or above
- VC++ 15 or above
- g++ 4.8 or above
- GNU Make
-
Download the source code.
-
Import into Visual Studio
-
Build according to your need (x64 or x86 or whatever)
Don't forget to link the sfml libraries - graphics, window and system. put the following files in linker input: sfml-system-d.lib, sfml-window-d.lib, sfml-graphics-d.lib and GameMenu.lib
-
Copy the sfml dlls (window, graphics and system) along with the executable
-
Then Run and enjoy
BUILD DON'T WORK, SEE ISSUE#1
- Download source code
- cd to directory
$ cd sfml-snake
- Run make
$ make
- The exectable
snake-sfml.out
should apear. - Run and enjoy