Play test - Game client integration - (Unity module)
Test to matchmaking
To perform the test, you need to run an instance of the game client. To build the game for desktop from Unity Editor, go to File > Build Settings. On the new window, select Windows, Mac, Linux for the Platform, and choose Windows as the Target Platform. Then, click on the Build button to build your game client as executable.
Next, locate the game client build and run it to play the game. On the game Main Menu, navigate to Custom Matchmaking > Start Matchmaking to connect the game client to the sample matchmaking backend service.
Your game client will try to connect to your local sample matchmaking backend service (the default value is
ws://127.0.0.1:8080
) via WebSocket. Since you haven't started your local backend service, you will receive connection error message on the game client, stating that the sample matchmaking backend service is unreachable. You will learn how to run the sample matchmaking backend service on the next tutorial module.At this point, the game client integration is complete because your game client is able to intialize the WebSocket connection.
Optionally, you can steal a start to run the sample matchmaking backend service by following this tutorial then try the game again. Your game client will able to connect to your local backend service similar to the result below.