This document outlines the steps involved in creating a 6-digit p2p ID and setting up multiplayer functionality in GDevelop using the THNK extension.
Add two buttons: "Host" and "Join".
Events:
For Generating a P2P Code:
For the "Host" button:
Transition to the Game scene.
For the "Join" button:
Transition to the Join scene.
an input box for the player to enter the p2p ID.
Add a button to join the game using the entered p2p ID.
There is only one event here!
Add a text object to display the generated p2p ID (initially hidden).
Events:
Show the p2p ID on the text object.
Use THNK's functions to generate the p2p ID and handle multiplayer connections.
Refer to THNK's documentation for specific usage details.
GDevelop Multiplayer documentation:
https://gdevelop.io/blog/make-multiplayer-games-easily
THNK - Official Docs:
https://thnk.cloud/docs/