Renamed a bunch of player stuff to pawn stuff and implemented extensive work on getting single-address 'netplay' code working. Not sure if I've created issues with single player but in theory it should all transfer across as if the player is simply always the host.
This commit is contained in:
@@ -42,7 +42,7 @@ func _on_hosting_back_button_pressed() -> void:
|
||||
|
||||
|
||||
func _on_start_game_button_pressed() -> void:
|
||||
Game.start_vs_man.rpc()
|
||||
Game.start_pawn_select.rpc(true)
|
||||
|
||||
|
||||
func _on_waiting_back_button_pressed() -> void:
|
||||
@@ -61,7 +61,7 @@ func _on_join_button_pressed() -> void:
|
||||
#Check for valid game
|
||||
#If found
|
||||
%Joining.visible = false
|
||||
if Multiplayer.join_game(handle):
|
||||
if await Multiplayer.join_game(handle):
|
||||
%"Host Waiting".visible = true
|
||||
%StartButton.visible = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user