A C/SDL port of my original JavaScript game Space Drifter.
Space Drifter Native has two external dependencies: SDL2 and SDL2_mixer. Download or clone SDL2(2.30.3) and SDL2_mixer(2.8.0).
The build script takes three positional paramters.
- The path to the SDL2 source directory.
- The path to the SDL2_mixer source directory
- If set to
true, will build SDL2 and SDL2_mixer in order before building the game.
./build.bat path\to\SDL2 path\to\SDL_mixer trueThe project includes a very straightforward CMakeLists.txt file for convenience.
See add_executable and target_link_libraries for the source files and libraries required to build.
cd SDL2
./configure && make && sudo make install
cd ../SDL2_mixer
./external/download.sh
./configure && make && sudo make install
cmake -B bin -S src
pushd bin && make && popd