TUTORIALS

Multiplay Tutorial

15min

Sample Project



Summary

Summary

From creating a Multiplay server to a client, set up the environment needed to develop a Multiplay World.

Difficulty

Intermediate

Time Required

1 Hour



Part 1. Installing Multiplay

  • From creating a Multiplay server to a client, set up the environment needed to develop a Multiplay World.




Part 2. Writing World Logic

  • Learn about the Schema needed for communication between the server and client, and define Schema Types and Room State.

  • Please note that the server script used in the video, which includes content related to hashCode, is no longer supported.
  • Therefore, exclude the following code when writing.
TypeScript




Part 3. Writing World Logic 2

  • Write World logic needed to sync from the player's location to the player's exit.




Part 4. Running the Server and Connecting to Multiplay

  • Run the server and connect to Multiplay.




Part 5. Scripts

Schemas.json

schemas.json




Server Code

index.ts




Client Code

ClientStarter.ts