Getting Started
This guide explains how to get YourGameLib, create a user project and run it.
TL;DR
If you are in a hurry, grab the pre-initialized template YourGameProject.zip and jump to Build the project. You need Git, CMake and a C/C++ compiler, as mentioned below.
- Pro: Fast, easy,
Pythonnot required - Con: Manually rename "YourGameProject" across multiple files
The recommended way for initializing a new project is following this guide, though.
Requirements
The list of requirements for getting started:
Git 1.7.0+Python 3.5+withJinja2gitpython
CMake 3.6+- A common
C/C++ compilercapable of C++11
Installation
With YourGameLib, user projects get access to the YourGame API and a selected number of third-party libraries, to work with directly. YourGameLib is always built from source in user project context.
Let's get the code by cloning the repository:
git clone --depth 1 https://github.com/duddel/yourgamelib.git
Installation done.
Initialize a User Project
Initialize a new user project by running the init/init.py script. This creates the directory ./MyGame/ next to ./yourgamelib/ containing a couple of files derived from a template.
python ./yourgamelib/init/init.py MyGame
Build the project
The user project in ./MyGame/ already contains some scripts starting with build_[..], so we go straight ahead and try to build our project for the desktop platform by running a suitable build script.
cd MyGame
./build_desktop_debug.bash
If everything went fine, we now have an executable that renders something like this: a cube in a grid.

Next Steps
Check out the examples, the API and other target platforms.