This is a project that shows how to create a simple multiplayer game with Colyseus library.
Web demo: https://axmp-colyseus.netlify.app/
These are the new files that you need:
There are some small changes that you need do to your project to include this.
1 - Add Colyseus directory:
add_subdirectory(ColyseusLib)
2 - Add flag to disable Boost:
target_compile_definitions(${APP_NAME} PUBLIC MSGPACK_NO_BOOST)
The game server is inside ColyseusServer
folder.
To start the server execute the following commands:
cd ColyseusServer
npm install
npm start
or simply:
make start-colyseus