A game/engine. Initially inspired by Among Us.
Requires SDL3
This repository uses git submodules to include SDL3.
To download the repo and SDL3 at the same time run:
git clone --recurse-submodules [email protected]:poleonek/demongus.git
To clone repo and update submodules separately run:
git clone [email protected]:poleonek/demongus.git
git submodule update --init --recursive
On Linux: ./build.sh
On Windows: ./build.bat
Example commands:
./build.sh sdl game
./build.sh game
./build.sh sdl game release
Building CMake SDL from .bat file seems to be broken. What works from me is calling SDL build commands manually from Developer pwsh.exe (new powershell + cl compiler). Sorry about that, would be nice to fix this.
cd libs\SDL
cmake -S . -B build\win -DSDL_STATIC=ON && cmake --build build\win
cd ..\..
cd libs\SDL_image
cmake -S . -B build\win -DSDLIMAGE_VENDORED=OFF -DBUILD_SHARED_LIBS=OFF "-DSDL3_DIR=..\SDL\build\win" && cmake --build build\win
cd ..\..
The game uses SAT algorithm for collision detection. Two links that I found especially useful while researching how to implement it: