A simple snake game made in simple SDL2.
-
make >= 3.8
-
gcc/g++ >= 13.1
- Run:
mkdir release && cd release
- Ensure
libfreetype-6.dll
,SDL2_image.dll
,SDL2_ttf.dll
&SDL2.dll
are present in this directory. - Copy
src/assets
directory torelease
. - Compile & run:
cd .. && make release && make rrun
.
-
MinGW-w64
- Suite of development tools, installed through MSYS2 from here.
-
SDL2 >= 2.0
- Low level cross-platform development library, latest version found here.
-
SDL2_ttf >= 2.0
- Used to render fonts, latest version found here.
-
SDL2_image >= 2.0
- Used to load the icon, latest version found here.
-
(Optional) Freetype
- Used to render fonts needed by SDL_ttf, installed through msys2 using commands found here.
- Copy installed SDL2, SDL2_ttf & SDL2_image include directories into
src/include
. - Copy SDL2, SDL2_ttf & SDL2_image lib directories in
src/lib
. - Copy SDL2, SDL2_ttf & SDL2_image dll into main directory.
- Either install freetype or place
libfreetype-6.dll
in this directory. - Compile & run:
make && make run
.