Construct 3 SDK¶
Installation¶
Attention! 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) - 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.