This project is a basic Snake Game that uses the SDL2 and SDL2_ttf libraries. It uses CMake as a build system.
On Debian/Ubuntu based distributions, use the following command:
sudo apt install git build-essential pkg-config cmake cmake-data libsdl2-dev libsdl2-ttf-dev
Optional packages:
- SDL2_image library
- SDL2_net library
- SDL2_mixer library
- SDL2_gfx library
sudo apt install libsdl2-image-dev libsdl2-net-dev libsdl2-mixer-dev libsdl2-gfx-dev
# Clone this repo
git clone https://github.com/dmarcr1997/UdacityCPPCapstone.git
cd UdacityCPPCapstone
# Create a build folder
mkdir build
cd build
# Build
cmake ..
make
# Run
./SnakeGame
Note: To use SDL2_image, SDL2_net, SDL2_mixer or SDL2_gfx, you should
uncomment some instructions in the CMakeLists.txt file and re-execute the
make
command.
Author: Damon M. Rocha
This project is distributed under the terms of the MIT license <LICENSE>.