No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
mover
xayagame
xayagametest
.gitignore Install xayagametest as Python package. Nov 14, 2018
AUTHORS
COPYING
ChangeLog
Makefile.am
NEWS
README
README.md
autogen.sh
configure.ac Add pkg-config file for libxayagame. Nov 19, 2018

README.md

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.

Building

To build 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 moverd on your system, respectively.

Prerequisites

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 libjsoncpp-dev package.
  • jsonrpccpp: The packages libjsonrpccpp-dev and libjsonrpccpp-tools on Debian 9 "Stretch" are not suitable. Instead, build from source and make sure to configure with -DTCP_SOCKET_SERVER_SERVER=YES.
  • ZeroMQ C++ bindings: Available in the Debian package libzmq3-dev.
  • SQLite3 with the session extension. In Debian, the libsqlite3-dev package can be installed. Alternatively, build from source and configure with --enable-session.
  • LMDB: Available for Debian in the liblmdb-dev package.
  • glog: Available for Debian as libgoogle-glog-dev.
  • gflags: The package (libgflags-dev) included with Debian 9 "Stretch" does not include the pkg-config file 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.

The mover example game also needs protocol buffers. On Debian, install libprotobuf-dev and protobuf-compiler.