raylibstarter 0.1.0
|
A simple raylib project template for CMake and C/C++
This project template contains several basic classes, e.g. for animated sprites, a simple scene manager and more.
It integrates the C++ wrapper raylib-cpp and includes and extensive API documentation.
After downloading the repository, use CMake to build the project. The Raylib library and all other dependencies are downloaded automatically.
The project already contains three pre-built scenes - for the main menu, the actual game scene and a pause scene.
Basic settings, e.g. whether the game starts in fullscreen mode, sound and mouse support and much more can be configured in the file src/config.h.in
.
The project name and version number can be customized in the src/CMakeLists.txt
file. By default, the project name is 'game':
Store assets in the designated assets
folder. The project already contains some sample graphic files.
Which raylib version is used can be specified in the cmake/raylib.cmake
file. If this is changed after CMake has already created the project once, you must use CMake to completely rebuild the project.
If you want to build the API documentation make sure you have Doxygen and Graphviz installed on your system. CMake will then create the API documentation automatically. It will be located in the build folder under src/docs_doxygen
.
The template already contains a menu, game and pause scene. Add your code to the existing scenes under src/scenes
and/or create new scenes. You may never need to change the main.cpp
file or the main()
function itself directly.
The cpack command can be used on the command line to create a binary distribution of the project, for example:
All assets will be packed into the distribution.
see LICENCE
file for details.