Sample single-player game built using the Strife Engine feel free to use this as a template if you're interested in using the Strife.Engine for your game / machine-learning project. This starter project is provided under a modified UIUC/NCSA license.
Clone the repo (replace the repo url below with your own if you're mirroring the repo):
git clone --recurse-submodules -j8 [email protected]:Strife-AI/Strife.SingleplayerDemo.git
Run git lfs and fetch assets
cd Strife.SingleplayerDemo
git lfs install && git lfs fetch --all
Prerequisite: In the Visual Studio installer, check "Desktop Development with C++".
- Open Visual Studio
- Open the project with File → Open Folder →
Strife.SinglePlayerDemo
- CMake should run automatically. Alternately, you can run CMake manually.
- Project →
Generate Cache
. - The cmake build will download all the dependencies including PyTorch, so this could take upwards of 20 minutes. Vcpkg will cache most of its work so future builds will be much faster.
- Project →
Our team uses CLion, we can guarantee that the engine and the demo game build successfully with it. That being said, CMake is used as the buildsystem, so any IDE with CMake support should suffice.
Create a build directory:
mkdir build && cd build
Generate makefiles:
cmake ..
- Add a
-G
flag followed by a supported project generator, for example. If generating an Xcode project, do:
cmake -G Xcode .. <CMAKE_VARIABLES>
Build project:
make
Open the root CMakeLists.txt
as a project in CLion, then navigate to CLion
settings (File → Settings or CLion → Preferences on Mac).
Once updated, CLion will automatically attempt to generate the CMakeCache files.
After that, the game should successfully compile!
Feel free to join our engine discussion on Discord if you have any questions or feedback.