Skip to content

Strife-AI/Strife.SingleplayerDemo

Repository files navigation

Strife.SingleplayerDemo

MadeWithStrifeEngine_BG

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.

Join us on Discord!

Getting Started

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

Visual Studio Instructions (Windows)

Prerequisite: In the Visual Studio installer, check "Desktop Development with C++".

  1. Open Visual Studio
  2. Open the project with File → Open Folder → Strife.SinglePlayerDemo
  3. CMake should run automatically. Alternately, you can run CMake manually.
    1. Project → Generate Cache.
    2. 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.

Non-Visual Studio - Generating Makefiles

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.

Using CMake in the command line

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

Using CLion

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.

About

A sample singleplayer game using the Strife Engine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •