feat: 优化代码

This commit is contained in:
2026-04-15 16:42:48 +08:00
parent 61ce331a00
commit 0118bf613c
3 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -130,18 +130,18 @@ theme_override_font_sizes/font_size = 30
text = "SETTINGS_SAVESETTINGS" text = "SETTINGS_SAVESETTINGS"
[node name="DownloadButton" type="Button" parent="." unique_id=315804661] [node name="DownloadButton" type="Button" parent="." unique_id=315804661]
offset_left = 595.0 offset_left = 554.0
offset_top = 1299.0 offset_top = 1309.0
offset_right = 923.0 offset_right = 761.0
offset_bottom = 1388.0 offset_bottom = 1398.0
theme_override_fonts/font = ExtResource("2_6wm04") theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 30 theme_override_font_sizes/font_size = 30
text = "SETTINGS_DOWNLOAD" text = "SETTINGS_DOWNLOAD"
[node name="CancelButton" type="Button" parent="." unique_id=135993345] [node name="CancelButton" type="Button" parent="." unique_id=135993345]
offset_left = 371.0 offset_left = 347.0
offset_top = 1305.0 offset_top = 1305.0
offset_right = 550.0 offset_right = 581.0
offset_bottom = 1394.0 offset_bottom = 1394.0
theme_override_fonts/font = ExtResource("2_6wm04") theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 30 theme_override_font_sizes/font_size = 30
+1 -1
View File
@@ -1,6 +1,6 @@
extends Node extends Node
const PORT: int = 8989 var PORT: int = 8989
const MAX_HAND_SIZE: int = 8 const MAX_HAND_SIZE: int = 8
const INITIAL_HP: int = 4 const INITIAL_HP: int = 4
const DEFAULT_DRAW_COUNT: int = 4 const DEFAULT_DRAW_COUNT: int = 4