Skip to content
/ demongus Public
forked from poleonek/demongus

2D game/engine. Built with C and SDL3.

License

Notifications You must be signed in to change notification settings

fda0/demongus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

2D game/engine. Built with C and SDL3.

Resources

License

Stars

Watchers

Forks

Languages

  • C 88.1%
  • Batchfile 7.3%
  • Shell 4.6%