Current versions:
- Godot v4.5.1
- GodotSteam v4.17
This repo implements GameDevTV's Godot multiplayer project using Steam to connect online. I roughly followed the documentation from GodotSteam.
In particular (other than basic installation of the extension), you will want to focus on the Initializing Steam tutorial as well as the Lobbies tutorial. Authentication is done as well, but Multiplayer Peer helps with a lot of that.
This example still uses Multiplayer Peer (Called Steam Multiplayer Peer, and now included in GodotSteam as of version v4.17) to connect to other peers and perform RPCs. Examples of using Steam Multiplayer Peer to host and join games are shown below.
var peer = SteamMultiplayerPeer.new()
var error = peer.create_host(0)
if error:
print("Unable to create host: ", error)
return error
multiplayer.multiplayer_peer = peer
var peer = SteamMultiplayerPeer.new()
var error = peer.create_client(host_id, 0)
if error:
print("Failed to create peer: ", error)
return
multiplayer.multiplayer_peer = peer
I have another example project that implements a basic lobby system using GodotSteam with lobbies, Multiplayer Peer, and Authentication you are free to checkout and use as a basic starting point.