Skip to content

fda0/Treasure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D game/engine with networking.

Clip 4, Clip 3, Clip 2, Clip 1, Clip 0

The project started in C (C version before migration) and migrated to jai (jai version after migration) along the way.

Cloning & building

git clone [email protected]:fda0/Treasure.git
git submodule update --init --recursive

Building the game, asset preprocessor and libraries (cgltf, SDL dlls).

jai compile.jai - build_all

Generating asset file (data.pie).

cd build
Baker.exe

Launching the game server & client.

cd build
Treasure.exe -server -headless
Treasure.exe

Educational resources

Things I found useful while working on this project.

Collision

The game uses the SAT algorithm for collision detection. Two resources I found especially useful when researching its implementation:

Networking

Gaffer on Games articles are great to get an overview of various networking topics.

Math

I used the Handmade Math library as a reference for matrix and quaternion math implementations.

Resources on quaternions:

Using .gltf files - models and animations

Shadow mapping

About

3D game engine with networking. jai & SDL3

Resources

License

Stars

Watchers

Forks

Languages