Xaya Game Library and Mover
libxayagame is a C++ library that makes it easy to implement games on the
Xaya platform. It takes care of the interaction with
the Xaya Core daemon, so that game developers only have to implement the
rules of their game.
mover is a simple game using this library, where players
can move around an infinite plane. It is fully functional, although mainly
meant as example and/or basis for more complex games.
libxayagame and the example mover game, use the standard routine
for building autotools-based software:
autogen.sh && ./configure && make
After a successful build, you can optionally run
make check and/or
make install to run tests and install the library and
your system, respectively.
libxayagame has a couple of dependencies which need to be installed
for the configuration and/or build to be successful:
libjsoncpp: Available for Debian-based operating systems in the
jsonrpccpp: The packages
libjsonrpccpp-toolson Debian 9 "Stretch" are not suitable. Instead, build from source and make sure to configure with
ZeroMQ C++ bindings: Available in the Debian package
- SQLite3 with the
In Debian, the
libsqlite3-devpackage can be installed. Alternatively, build from source and configure with
- LMDB: Available for Debian in the
glog: Available for Debian as
gflags: The package (
libgflags-dev) included with Debian 9 "Stretch" does not include the
pkg-configfile yet, build from source instead.
For the unit tests, also the Google test framework is needed. The package included with Debian 9 "Stretch" is not fresh enough, it should be built and installed from source instead.