255 lines
5.7 KiB
Plaintext
255 lines
5.7 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://c3nuuwu5te3bu"]
|
|
|
|
[ext_resource type="Script" uid="uid://yhljjw1pbovq" path="res://Scene/SmallGame/Tetris.gd" id="1_s1q1g"]
|
|
|
|
[node name="Tetris" type="Panel"]
|
|
offset_right = 1403.0
|
|
offset_bottom = 721.0
|
|
script = ExtResource("1_s1q1g")
|
|
|
|
[node name="GameArea" type="Panel" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 4
|
|
anchor_top = 0.5
|
|
anchor_bottom = 0.5
|
|
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="."]
|
|
layout_mode = 1
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -469.0
|
|
offset_top = 50.0
|
|
offset_right = -319.0
|
|
offset_bottom = 200.0
|
|
grow_horizontal = 0
|
|
|
|
[node name="NextPieceLabel" type="Label" parent="NextPieceArea"]
|
|
layout_mode = 1
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -50.0
|
|
offset_right = 50.0
|
|
offset_bottom = 42.0
|
|
grow_horizontal = 2
|
|
theme_override_font_sizes/font_size = 30
|
|
text = "下一个"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="ScoreLabel" type="Label" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.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
|
|
|
|
[node name="LevelLabel" type="Label" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.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
|
|
|
|
[node name="LinesLabel" type="Label" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.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="."]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
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
|
|
vertical_alignment = 1
|
|
|
|
[node name="DropTimer" type="Timer" parent="."]
|
|
autostart = true
|
|
|
|
[node name="ControlsLabel" type="Label" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.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"]
|