This project is an open source reimplementation of the GameBox game engine used in games by Nadeo such as TrackMania Nations Forever
Clone the repository using this command:
git clone https://github.com/ProtoByter/ReMania-GameBox --recurse-submodules
On Debian based distributions you should be able to install the required packages with:
sudo apt install libsdl2-dev libsdl2-image-dev libglew-dev cmake
On Arch based distributions you should run:
sudo pacman -S sdl2 glew cmake
On other distributions these libraries should be in their respective package repos. If not, just clone with submodules
Include this project as a submodule in your own repository and just add this to your CMake file like this:
add_subdirectory(<GIT SUBMODULE DIR>)
and add ReMania-GameBox
to the targets that require it, this should automatically build all three libraries and link to them
Run these commands:
mkdir build
cd build
cmake ..
make -j
and inside the build/dist
directory there should be four shared libraries which you can then link to in your project.