Development of the game "Snake" featuring portals, custom maps and sound effects.
Cross-platform compatibility using CMake, C, C++ and SDL2.
A project for the Software Engineering course as part of our studies.
For Windows 64-Bit a pre-compiled release, that also includes the required .dll files and assets is available:
Snake.exe
On other Systems you currently have to compile from source (see next sections)Install tools and SDL2
pacman -S sdl2 sdl2_ttf
pacman -S cmake gcc
Build
mkdir build
cd build
cmake ..
make
Download SDL
SDL2-devel-2.28.5-VC.zip
from github/libsdl-orgSDL2
(avoid unnecessary subfolder)Download SDL_ttf
SDL2_ttf-devel-2.20.2-VC.zip
from github/libsdl-orgSDL2_ttf
(avoid unnecessary subfolder)Install compiler (if not available already)
x86_64-8.1.0-release-posix-seh-rt.7z
C:\MinGW
MinGW/bin
folder to system environment variable PATH
(so CMake finds it as 'Kit'):
C:\MinGW\bin
Install CMake
Compile
See VS Code section
CTRL + SHIFT + P
run cmake.build
ctrl-F5
run without debuggershift-F5
run with debuggerF5
only, currently does not work with CMake in VS-Code?