colyseus-tic-tac-toe icon indicating copy to clipboard operation
colyseus-tic-tac-toe copied to clipboard

Colyseus 0.15: Turn-based Multiplayer Example

Tic-Tac-Toe Multiplayer

Turn-based demonstration project using Colyseus

  • JavaScript/PixiJS
  • Defold Engine

If you want to see more examples like this and help Colyseus to grow, consider supporting my work on Patreon.

Running the server locally

You'll need two terminal windows open to be able to run this. One for the client, and one for the server:

Running the server

cd server
npm install
npm start

Important files to have look at

  • registering room
  • room and state implementation

JavaScript / PixiJS

The JavaScript/PixiJS example uses:

Running the JavaScript/PixiJS client

cd javascript-pixi
npm install
npm start

Important files to have look at

  • room connection
  • receiving state updates

Defold Engine

The Defold project was made by Selim Anaç.

Remember to Fetch Libraries on Defold (Project > Fetch Libraries)

License

MIT