Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.5 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.5 KB

Standalone Client

A demo CLI client written to demonstrate how one can use the Trogdor++ library to build a single-player game.

Dependencies

  • G++ 7+ or Clang++ 8+. A different compiler might work, but it hasn't been tested, so you're on your own.
  • CMake 3.10 or above
  • The core library, installed as a shared object or DLL in a place where CMake can find it

Installation

To build and install the single player demo, use these commands (be sure you've built and installed the core library first and that pkg-config is configured to find it):

cd src/standalone && cmake -DCMAKE_BUILD_TYPE=Release .
make standalone && make install

The client will be installed to /usr/bin/standalone and will, by default, use the sample game data intalled to /usr/share/trogdor by the core library target.

If the core library was built with serialization support (either JSON, SQLite3, or both), the standalone client will be automatically built with support for saving and loading games.

If you need debug symbols, add the following option to your cmake command: -DCMAKE_BUILD_TYPE=Debug. If you've already built it using debug symbols in the past and want to switch back to a release build, use this cmake option instead: -DCMAKE_BUILD_TYPE=Release.

If you need to install relative to a custom path, add this to your cmake command: -DCMAKE_INSTALL_PREFIX:PATH=/your/custom/prefix.