💑MMO Server
Do you want player interaction inside of your Portal? This can be useful for mini-games that require co-operation or chat features.
Setup
To connect to Sunflower Land MMO server, you must first update your .env
file
Next you must ensure that a valid JWT is present from the player, see Setup & Authorisation
Connect to Server
We use colyseus
to manage MMO connections inside of the game. See the example below in portalMachine.ts
as to how the Crop Boom minigame creates a server connection.
Once you have established a server connection, you must pass this mmoServer
into your Phaser initialisation.
Last updated