Implement basic networking
This commit is contained in:
parent
c320d9ddcb
commit
994823a9c3
25 changed files with 643 additions and 217 deletions
|
|
@ -2,8 +2,17 @@ using Godot;
|
|||
|
||||
public partial class MainMenuController : Node
|
||||
{
|
||||
public void OnStartGame()
|
||||
public void OnHostGame()
|
||||
{
|
||||
Global.IsGameHost = true;
|
||||
|
||||
GetTree().ChangeSceneToFile("res://scenes/game.tscn");
|
||||
}
|
||||
|
||||
public void OnJoinGame()
|
||||
{
|
||||
Global.IsGameHost = false;
|
||||
|
||||
GetTree().ChangeSceneToFile("res://scenes/game.tscn");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue