You need to have makefile support (make) and g++ installed in your system
-
Install SDL2
- by following instruction in the SDL Github Repository
- by following instruction in this Link (particularly for windows user). If you choose this option, you just need to extract "include" and "lib" from "x86_64-w64-mingw32" to the project root and extract "SDL2.dll" and "sdl2-config" to the "bin" directory that you need to create
-
Create a directory "bin" in the project root if not exists
mkdir bin
-
Run the build command
make build
-
Run the game with the command
make run
Use your arrow keyboard to control the snake