No description
Find a file
2021-07-27 21:10:32 +05:00
include Added font render function 2021-07-27 15:14:02 +05:00
res Added font render function 2021-07-27 15:14:02 +05:00
src Added death screen 2021-07-27 21:10:32 +05:00
.gitignore Added .gitignore 2021-07-23 14:52:09 +05:00
README.md Removed PolyMars Sfx and added his font 2021-07-27 14:07:14 +05:00

Space Shooter thingy - Budget Edition

Made with C++20 and SDL2

Background

Something like Galaga and Space invaders but not really. Made this just to get the basics of SDL2

Compiling

Windows

Install Git Bash, Mingw64, SDL2, SDL_Image, SDL_TTF, and SDL_Mixer.

Linux

Install SDL2, SDL Image, SDL TTF and SDL Mixer.

For Arch

sudo pacman -S sdl2 sdl2_image sdl2_ttf sdl2_mixer

For other distros

Check your distro package manager/repos

After acquiring SDL2

g++ -c src/*.cpp -std=c++20 -m64 -g -Wall -I include && g++ *.o -o bin/debug/main -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer

Compiled file will be located in ./bin/debug, you will need to copy ./res folder to ./bin/debug folder. (On windows you will also need to copy SDL2 DLLs to ./bin/debug folder)

Credits

Used cocogoose.ttf from PolyMarsDev Cursor Custodian