feat: 由AI辅助进行游戏内容编写

This commit is contained in:
2026-06-22 11:40:53 +08:00
parent 2d6bf19a10
commit 70bd359f8a
9 changed files with 1992 additions and 455 deletions
+80 -2
View File
@@ -1,8 +1,86 @@
[gd_scene format=3 uid="uid://croqe86tpmsco"]
[ext_resource type="Script" uid="uid://di3cxx8th55lg" path="res://scripts/game/card.gd" id="1_3aeal"]
[ext_resource type="FontFile" uid="uid://c2bipf4tpdjj8" path="res://assets/fonts/AlibabaPuHuiTi-3-65-Medium.ttf" id="2_font"]
[node name="Card" type="Node2D" unique_id=1826213731]
[node name="Card" type="Node2D"]
script = ExtResource("1_3aeal")
[node name="Sprite" type="Sprite2D" parent="." unique_id=1627492935]
[node name="Background" type="ColorRect" parent="."]
offset_left = 0.0
offset_top = 0.0
offset_right = 120.0
offset_bottom = 180.0
color = Color(0.75, 0.75, 0.82, 1)
[node name="Sprite" type="Sprite2D" parent="."]
position = Vector2(60, 90)
[node name="NameLabel" type="Label" parent="."]
offset_left = 5.0
offset_top = 5.0
offset_right = 115.0
offset_bottom = 35.0
theme_override_fonts/font = ExtResource("2_font")
theme_override_font_sizes/font_size = 18
text = ""
horizontal_alignment = 0
[node name="DescriptionLabel" type="Label" parent="."]
offset_left = 5.0
offset_top = 140.0
offset_right = 115.0
offset_bottom = 175.0
theme_override_fonts/font = ExtResource("2_font")
theme_override_font_sizes/font_size = 12
text = ""
horizontal_alignment = 0
[node name="ElementLabel" type="Label" parent="."]
offset_left = 5.0
offset_top = 35.0
offset_right = 115.0
offset_bottom = 70.0
theme_override_fonts/font = ExtResource("2_font")
theme_override_font_sizes/font_size = 24
text = ""
horizontal_alignment = 1
vertical_alignment = 1
[node name="FormulaLabel" type="Label" parent="."]
offset_left = 5.0
offset_top = 35.0
offset_right = 115.0
offset_bottom = 70.0
theme_override_fonts/font = ExtResource("2_font")
theme_override_font_sizes/font_size = 20
text = ""
horizontal_alignment = 1
vertical_alignment = 1
[node name="EffectLabel" type="Label" parent="."]
offset_left = 5.0
offset_top = 35.0
offset_right = 115.0
offset_bottom = 70.0
theme_override_fonts/font = ExtResource("2_font")
theme_override_font_sizes/font_size = 16
text = ""
horizontal_alignment = 1
vertical_alignment = 1
[node name="SelectionHighlight" type="ColorRect" parent="."]
visible = false
offset_left = -3.0
offset_top = -3.0
offset_right = 123.0
offset_bottom = 183.0
color = Color(1, 1, 0.3, 0.5)
[node name="HighlightOverlay" type="ColorRect" parent="."]
visible = false
offset_left = 0.0
offset_top = 0.0
offset_right = 120.0
offset_bottom = 180.0
color = Color(0.3, 1, 0.3, 0.3)
+91 -45
View File
@@ -3,17 +3,17 @@
[ext_resource type="FontFile" uid="uid://c2bipf4tpdjj8" path="res://assets/fonts/AlibabaPuHuiTi-3-65-Medium.ttf" id="1_uwrxv"]
[ext_resource type="Script" uid="uid://78lmrp321x85" path="res://scripts/game/game.gd" id="1_yqjtg"]
[node name="Game" type="Node2D" unique_id=818469863]
[node name="Game" type="Node2D" unique_id=736592237]
script = ExtResource("1_yqjtg")
[node name="Background" type="ColorRect" parent="." unique_id=802635055]
[node name="Background" type="ColorRect" parent="." unique_id=1805986496]
offset_left = -29.0
offset_top = -18.0
offset_right = 2599.0
offset_bottom = 1485.0
color = Color(0.7058824, 0.6862745, 0, 1)
[node name="IsServerLabel" type="Label" parent="." unique_id=592205212]
[node name="IsServerLabel" type="Label" parent="." unique_id=1073183772]
offset_left = 58.0
offset_top = 15.0
offset_right = 255.0
@@ -22,7 +22,7 @@ theme_override_fonts/font = ExtResource("1_uwrxv")
theme_override_font_sizes/font_size = 20
text = "GAMEUI_URNULL"
[node name="IPLabel" type="Label" parent="." unique_id=2017838611]
[node name="IPLabel" type="Label" parent="." unique_id=1989497270]
offset_left = 54.0
offset_top = 53.0
offset_right = 156.0
@@ -31,60 +31,106 @@ theme_override_fonts/font = ExtResource("1_uwrxv")
theme_override_font_sizes/font_size = 24
text = "127.0.0.2"
[node name="Player1" type="Node2D" parent="." unique_id=1336934388]
[node name="PhaseLabel" type="Label" parent="." unique_id=1288595795]
offset_left = 525.0
offset_top = 15.0
offset_right = 825.0
offset_bottom = 63.0
theme_override_fonts/font = ExtResource("1_uwrxv")
theme_override_font_sizes/font_size = 28
[node name="Username" type="Label" parent="Player1" unique_id=264475054]
[node name="RoundLabel" type="Label" parent="." unique_id=1408966789]
offset_left = 825.0
offset_top = 15.0
offset_right = 1025.0
offset_bottom = 63.0
theme_override_fonts/font = ExtResource("1_uwrxv")
theme_override_font_sizes/font_size = 28
[node name="EndPhaseButton" type="Button" parent="." unique_id=1666060569]
offset_left = 2074.0
offset_top = 1332.0
offset_right = 2374.0
offset_bottom = 1382.0
theme_override_fonts/font = ExtResource("1_uwrxv")
theme_override_font_sizes/font_size = 24
text = "结束阶段"
[node name="NotificationLabel" type="Label" parent="." unique_id=489502093]
offset_left = 525.0
offset_top = 580.0
offset_right = 2025.0
offset_bottom = 640.0
theme_override_fonts/font = ExtResource("1_uwrxv")
theme_override_font_sizes/font_size = 40
horizontal_alignment = 1
[node name="Player1" type="Node2D" parent="." unique_id=2011511951]
[node name="Username" type="Label" parent="Player1" unique_id=29274612]
offset_left = 70.0
offset_top = 1338.0
offset_right = 552.0
offset_bottom = 1396.0
offset_top = 1300.0
offset_right = 470.0
offset_bottom = 1360.0
theme_override_fonts/font = ExtResource("1_uwrxv")
theme_override_font_sizes/font_size = 35
text = "Player1"
[node name="CardAreaPanel" type="PanelContainer" parent="Player1" unique_id=881125453]
offset_left = 525.0
offset_top = 1194.0
offset_right = 1967.0
offset_bottom = 1400.0
[node name="ReactionAreaPanel" type="PanelContainer" parent="Player1" unique_id=1328772147]
offset_left = 530.0
offset_top = 700.0
offset_right = 1972.0
offset_bottom = 1139.0
[node name="Label" type="Label" parent="Player1" unique_id=739321767]
offset_left = 71.0
offset_top = 1292.0
offset_right = 352.0
offset_bottom = 1353.0
[node name="ElectronLabel" type="Label" parent="Player1" unique_id=7738246]
offset_left = 70.0
offset_top = 1240.0
offset_right = 370.0
offset_bottom = 1300.0
theme_override_fonts/font = ExtResource("1_uwrxv")
theme_override_font_sizes/font_size = 35
text = "HP: 5"
text = "电子层: 3/3"
[node name="Player2" type="Node2D" parent="." unique_id=1559551502]
[node name="CardAreaPanel" type="PanelContainer" parent="Player1" unique_id=511752962]
offset_left = 525.0
offset_top = 1200.0
offset_right = 2025.0
offset_bottom = 1400.0
[node name="Username" type="Label" parent="Player2" unique_id=1130366682]
offset_left = 2121.0
offset_top = 36.0
offset_right = 2434.0
offset_bottom = 94.0
[node name="ReactionAreaPanel" type="PanelContainer" parent="Player1" unique_id=531235727]
offset_left = 525.0
offset_top = 650.0
offset_right = 2025.0
offset_bottom = 1150.0
[node name="ElementAreaPanel" type="PanelContainer" parent="Player1" unique_id=699278238]
offset_left = 70.0
offset_top = 650.0
offset_right = 520.0
offset_bottom = 1150.0
[node name="Player2" type="Node2D" parent="." unique_id=74741602]
[node name="Username" type="Label" parent="Player2" unique_id=510041133]
offset_left = 2100.0
offset_top = 40.0
offset_right = 2400.0
offset_bottom = 100.0
theme_override_fonts/font = ExtResource("1_uwrxv")
theme_override_font_sizes/font_size = 35
text = "Player2"
[node name="ReactionAreaPanel" type="PanelContainer" parent="Player2" unique_id=470786359]
offset_left = 525.0
offset_top = 15.0
offset_right = 1967.0
offset_bottom = 425.0
[node name="Label" type="Label" parent="Player2" unique_id=1027772856]
offset_left = 2127.0
offset_top = 104.0
offset_right = 2333.0
offset_bottom = 165.0
[node name="ElectronLabel" type="Label" parent="Player2" unique_id=340501131]
offset_left = 2100.0
offset_top = 100.0
offset_right = 2400.0
offset_bottom = 160.0
theme_override_fonts/font = ExtResource("1_uwrxv")
theme_override_font_sizes/font_size = 35
text = "HP: 5"
text = "电子层: 3/3"
[node name="ReactionAreaPanel" type="PanelContainer" parent="Player2" unique_id=1230613866]
offset_left = 525.0
offset_top = 15.0
offset_right = 2025.0
offset_bottom = 515.0
[node name="ElementAreaPanel" type="PanelContainer" parent="Player2" unique_id=1343260677]
offset_left = 2100.0
offset_top = 160.0
offset_right = 2500.0
offset_bottom = 515.0