添加小游戏面板

This commit is contained in:
2025-08-28 10:23:13 +08:00
parent 633c1cac44
commit ca5685df52
24 changed files with 4569 additions and 1250 deletions

View File

@@ -12,10 +12,10 @@ layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 50.0
offset_top = -300.0
offset_right = 350.0
offset_bottom = 300.0
offset_left = 542.0
offset_top = -300.5
offset_right = 842.0
offset_bottom = 299.5
grow_vertical = 2
[node name="NextPieceArea" type="Panel" parent="."]
@@ -23,9 +23,9 @@ layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -200.0
offset_left = -469.0
offset_top = 50.0
offset_right = -50.0
offset_right = -319.0
offset_bottom = 200.0
grow_horizontal = 0
@@ -35,10 +35,10 @@ anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -50.0
offset_top = 10.0
offset_right = 50.0
offset_bottom = 40.0
offset_bottom = 42.0
grow_horizontal = 2
theme_override_font_sizes/font_size = 30
text = "下一个"
horizontal_alignment = 1
@@ -47,11 +47,12 @@ layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -200.0
offset_top = 220.0
offset_right = -50.0
offset_bottom = 250.0
offset_left = -255.0
offset_top = 92.0
offset_right = -105.0
offset_bottom = 134.0
grow_horizontal = 0
theme_override_font_sizes/font_size = 30
text = "分数: 0"
horizontal_alignment = 1
@@ -60,11 +61,12 @@ layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -200.0
offset_top = 260.0
offset_right = -50.0
offset_bottom = 290.0
offset_left = -252.0
offset_top = 201.0
offset_right = -102.0
offset_bottom = 243.0
grow_horizontal = 0
theme_override_font_sizes/font_size = 30
text = "等级: 1"
horizontal_alignment = 1
@@ -73,28 +75,29 @@ layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -200.0
offset_top = 300.0
offset_right = -50.0
offset_bottom = 330.0
offset_left = -255.0
offset_top = 312.0
offset_right = -102.0
offset_bottom = 354.0
grow_horizontal = 0
theme_override_font_sizes/font_size = 30
text = "消除行数: 0"
horizontal_alignment = 1
[node name="GameOverLabel" type="Label" parent="."]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -100.0
offset_top = -50.0
offset_right = 100.0
offset_bottom = 50.0
offset_left = -116.5
offset_top = -48.5
offset_right = 93.5
offset_bottom = 51.5
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 30
text = "游戏结束
按空格重新开始"
horizontal_alignment = 1
@@ -108,13 +111,144 @@ layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -200.0
offset_top = 400.0
offset_right = -50.0
offset_bottom = 500.0
offset_left = -214.0
offset_top = 494.0
offset_right = -9.0
offset_bottom = 716.0
grow_horizontal = 0
theme_override_font_sizes/font_size = 30
text = "操作说明:
A/D - 左右移动
S - 快速下降
W - 旋转
空格 - 瞬间下降"
[node name="VirtualControls" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="LeftButton" type="Button" parent="VirtualControls"]
custom_minimum_size = Vector2(80, 80)
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 96.0
offset_top = -351.0
offset_right = 176.0
offset_bottom = -271.0
grow_vertical = 0
theme_override_font_sizes/font_size = 40
text = "A"
[node name="RightButton" type="Button" parent="VirtualControls"]
custom_minimum_size = Vector2(80, 80)
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 260.0
offset_top = -350.0
offset_right = 340.0
offset_bottom = -270.0
grow_vertical = 0
theme_override_font_sizes/font_size = 40
text = "D"
[node name="DownButton" type="Button" parent="VirtualControls"]
custom_minimum_size = Vector2(80, 80)
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 180.0
offset_top = -270.0
offset_right = 260.0
offset_bottom = -190.0
grow_vertical = 0
theme_override_font_sizes/font_size = 40
text = "S"
[node name="TestButton" type="Button" parent="VirtualControls"]
custom_minimum_size = Vector2(80, 80)
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 178.0
offset_top = -334.0
offset_right = 238.0
offset_bottom = -271.0
grow_vertical = 0
theme_override_font_sizes/font_size = 40
disabled = true
[node name="RotateButton" type="Button" parent="VirtualControls"]
custom_minimum_size = Vector2(80, 80)
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -1225.0
offset_top = -431.0
offset_right = -1145.0
offset_bottom = -351.0
grow_horizontal = 0
grow_vertical = 0
theme_override_font_sizes/font_size = 40
text = "W"
[node name="DropButton" type="Button" parent="VirtualControls"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -1284.0
offset_top = -583.0
offset_right = -1061.0
offset_bottom = -520.0
grow_horizontal = 0
grow_vertical = 0
theme_override_font_sizes/font_size = 40
text = "🚀瞬间下降"
[node name="RestartButton" type="Button" parent="VirtualControls"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -582.5
offset_top = 248.5
offset_right = -377.5
offset_bottom = 305.5
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 35
text = "🔄 重新开始"
[node name="QuitButton" type="Button" parent="."]
self_modulate = Color(1, 0.247059, 0, 1)
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -137.0
offset_top = -1.52588e-05
offset_right = -54.0
offset_bottom = 57.0
grow_horizontal = 0
scale = Vector2(1.54345, 1.50915)
theme_override_font_sizes/font_size = 25
text = "关闭"
[connection signal="pressed" from="QuitButton" to="." method="_on_quit_button_pressed"]