Simple Snake game using SDL2. I made this mostly as a coding exercise some time ago so don't expect anything groundbreaking 😃. Some parts could potentially be used for other simple games.
Compilation on UNIX like systems.
Dependencies:
sdl2
sdl2_image
Install packages on Ubuntu:
sudo apt install libsdl2-dev
sudo apt install libsdl2-image-dev
Go to game folder and type
cd build
cmake ..
make
./Snake
You should now have Snake executable in the build folder.
Arrows to turn, Escape to quit and Enter to start new game when dead.