Construct 3
Installation
⚠️
You need a server to use Colyseus!
Construct has well-known existing features to “host” a multiplayer session from the client-side. This is not possible when using Colyseus. Colyseus is an authoritative server, written in Node.js. You can’t let your client-side host the game sessions directly.
Example project
Please explore this demonstration project to understand how to use Colyseus with Construct3.
- Download
.c3p
and server files ( View source-code) - Open the
RawUsage.c3p
file on Construct3 Editor ↗. - Start the local server by running
npm install
and thennpm start
on theserver
folder.
Some of the concepts covered in this project:
Joining a Room
Joining a room, handling incoming messages from the server, and handling a connection close.
Listing available Rooms in the server
Listening for changes in the State
Listening for add/remove events on Maps and Arrays within the State
Last updated on