No description
Find a file
Sebastiaan 2b0e3c1910 sos
2022-05-23 12:48:45 +02:00
src renamed source folder to src 2022-05-22 02:19:50 +02:00
.gitignore improved font rendering 2022-05-22 01:38:27 +02:00
CMakeLists.txt renamed source folder to src 2022-05-22 02:19:50 +02:00
Makefile.switch renamed source folder to src 2022-05-22 02:19:50 +02:00
README.md sos 2022-05-23 12:48:45 +02:00

Space Shooter

amongle

I didn't create the switch makefile, that was copied from one of the examples of devkitPro.

To get the data folder, you need to download the game from my website.

Build instructions

On Linux, install cmake, sdl2, sdl2 image and sdl2 mixer. Then run cmake . and make in the root directory of the repo.

To build the Windows version on Linux, install mingw-w64-gcc. Download sdl2, sdl2 image and sdl2 mixer for mingw and put them in the root of this repo.

I don't remember where I found which flags to set, but this seems to work. Some might not be needed tho.

You will have to add SDL2 yourself. You need the mingw development binaries https://www.libsdl.org/download-2.0.php https://www.libsdl.org/projects/SDL_image/ https://www.libsdl.org/projects/SDL_mixer/

Then run the following commands:

x86_64-w64-mingw32-c++ -static-libgcc -static-libstdc++ -c ./src/*.cpp -ISDL2-2.0.16/x86_64-w64-mingw32/include/SDL2/ -ISDL2_image-2.0.5/x86_64-w64-mingw32/include/SDL2/ -ISDL2_mixer-2.0.4/x86_64-w64-mingw32/include/SDL2/ -D__WIN32__

x86_64-w64-mingw32-c++ -static-libgcc -static-libstdc++ -static-libgcc -o ./space_shooter.exe *.o -LSDL2-2.0.16/x86_64-w64-mingw32/lib/ -LSDL2_image-2.0.5/x86_64-w64-mingw32/lib/ -LSDL2_mixer-2.0.4/x86_64-w64-mingw32/lib/ -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -lmingw32 -mwindows -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -O3