paulocoutinhox / axmol-multiplayer-colyseus

Axmol Multiplayer Game Demo With Colyseus
0 stars 0 forks source link

Axmol Multiplayer With Colyseus

This is a project that shows how to create a simple multiplayer game with Colyseus library.

Web demo: https://axmp-colyseus.netlify.app/

Files To Add

These are the new files that you need:

Code Changes

There are some small changes that you need do to your project to include this.

CMake root file: CMakeLists.txt

1 - Add Colyseus directory:

add_subdirectory(ColyseusLib)

2 - Add flag to disable Boost:

target_compile_definitions(${APP_NAME} PUBLIC MSGPACK_NO_BOOST)

Game Server

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