feat: 重构多人游戏界面和代码,使用文件存储游戏配置,重构底层代码

This commit is contained in:
ZZY
2024-11-06 22:13:03 +08:00
parent d323a0bee7
commit d6cbb5e11d
30 changed files with 715 additions and 262 deletions

View File

@ -41,6 +41,8 @@ public partial class Main : Node2D
// board.Visible = false;
// board.Can
global = GetNode<Global>("/root/Global");
global.GlobalTheme = GetChild<Control>(GetChildCount() - 1).Theme;
global.ConfigFlush();
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
@ -54,7 +56,7 @@ public partial class Main : Node2D
private void GoToMultiPlayer() {
// global.GotoScene("res://Scenes/MultiPlayer.tscn");
global.GotoScene("res://Scenes/Menu.tscn");
global.GotoScene("res://Scenes/GameLobby.tscn");
}
private void GoToSetting() {