Skip to content

Latest commit

 

History

History
53 lines (45 loc) · 1.54 KB

README.md

File metadata and controls

53 lines (45 loc) · 1.54 KB

demongus

A game/engine. Initially inspired by Among Us.

Requires SDL3

CLONING THE PROJECT

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

BUILD

On Linux: ./build.sh

On Windows: ./build.bat

Example commands:

./build.sh sdl game
./build.sh game
./build.sh sdl game release

Windows SDL build workaround

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 ..\..

Resources

Collision

The game uses SAT algorithm for collision detection. Two links that I found especially useful while researching how to implement it: