Simple example project that uses the Framework as submodule.
It is automatically deployed to itch.io and it can be played in browser.
TODO: Expand this page and the sample.
Checkout and build this project like any other CMake project.
Provide rbfx:
- Build engine: provide
-DCMAKE_PREFIX_PATH=/path/to/rbfx/CMake - Use engine SDK:
- Windows: provide
-DCMAKE_PREFIX_PATH=/path/to/rbfx-SDK/share - Unix: provide
-DCMAKE_PREFIX_PATH=/path/to/rbfx-SDK
- Windows: provide
Check out Scripts/ folder and .github/workflows/deploy.yml to see how this sample can be built.
Run Editor:
-
Launch
Editor.exe; -
Open
sample-project/Projectfolder; -
Open
Scenes/Scene.xmlin Editor; -
Press
Ctrl+Pto play the sample.
Run Player:
Launch Player.exe
The engine needs to somehow locate project resources on launch.
By default, the engine attempts to find Data, Cache and CoreData folders next to the executable.
However, this behavior may be inconvenient during development:
DataandCachefolders are located inProjectfolder,CoreDatais located inbinfolder ofrbfxrepository,- The executable is located somewhere in CMake build folder.
This issue can be mitigated by having ResourceRoot.ini file.
See the comments in ResourceRoot.ini file in this repository for details.
