Simple SDL3 game project written in C99.
Required packages |
---|
build-essential |
libfreetype6 |
libfreetype6-dev |
libsdl2-dev |
- Install required packages
sudo apt install build-esseintial libfreetype6 libfreetype6-dev libsdl2-dev
2. Clone repo form github
git clone https://github.com/necromyhan/snake-game
3. Choose project directory
cd snake-game
4. Init and update git submodules
git submodule init
git submodule update
5. Configure CMake
cmake -B build
6. Build project
cmake --build build
Tested on Ubuntu 23.10.1
Same as Linux, but before cmake build download FreeType sources and copy them into ..\Snake-Game\sdl\SDL_ttf\external\freetype directory.
Tested on Windows 10 22H2
You can download archives with game from Releases section.
For Linux, self-build is recommended.
Snake movement and menu navigation with arrows. Enter to choose menu item.