A very simple example to show peer to peer communication with Godot's high level multiplayer API calls.
-
Build the library with
cargo build
. -
Import the Godot project in the Godot editor.
-
Open the
Server.tscn
scene and start the current scene withF6
. -
Start a second instance of the Godot editor.
-
Set a separate "Remote Port" for the second editor (e.g. 6012). The two editor instances need to have different debug ports so that they can connect to their own running scenes. Needed to show the godot print messages.
Editor > Editor Settings > Network > Debug
-
Open the
Client.tscn
scene and start the current scene withF6