Merge multiplayer to dev branch #2

Merged
chrisbell merged 21 commits from multiplayer into develop 2025-08-07 22:06:02 +00:00
Showing only changes of commit b0199aff09 - Show all commits

View File

@@ -34,12 +34,21 @@ func _ready() -> void:
multiplayer.connected_to_server.connect(_on_connected_to_server)
multiplayer.connection_failed.connect(_on_connection_failed)
multiplayer.server_disconnected.connect(_on_server_disconnected)
Steam.p2p_session_request.connect(_on_p2p_session_request)
check_command_line()
func _on_p2p_session_request(steam_id_remote: int) -> void:
print("P2P session requested from: %s" % steam_id_remote)
Steam.acceptP2PSessionWithUser(steam_id_remote)
func _process(delta):
Steam.run_callbacks()
if Input.is_action_just_pressed("interact"):
print(lobby_members)
func check_command_line() -> void: