Files
sijcdu 7c78a088a0 Add diamond collection and a level-clear door
The three diamonds and both doors were painted as tiles in TerrainBase, which cannot act as pickups or triggers. Replaced them with real prefabs that reuse the same atlas tiles (diamond = (7,3), doors = (10,6) and (11,5)) and erase their placeholder tile on ready. Collecting all three diamonds unlocks the door; touching it fades to black, pauses the tree and shows the level-clear screen with a next-level button (currently reloads the level, as there is only one). HUD now shows the diamond count.
2026-10-07 21:04:58 +08:00

57 lines
1.8 KiB
Plaintext

[gd_scene load_steps=4 format=3]
[ext_resource type="Script" path="res://scripts/level_clear.gd" id="1_clear"]
[sub_resource type="SystemFont" id="SystemFont_cjk"]
font_names = PackedStringArray("Microsoft YaHei UI", "Microsoft YaHei", "SimHei", "Noto Sans CJK SC", "sans-serif")
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button"]
bg_color = Color(0.16, 0.62, 0.36, 1)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
content_margin_left = 18.0
content_margin_top = 6.0
content_margin_right = 18.0
content_margin_bottom = 6.0
[node name="LevelClear" type="CanvasLayer" groups=["level_clear"]]
process_mode = 3
layer = 20
script = ExtResource("1_clear")
[node name="Fade" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
color = Color(0, 0, 0, 0)
[node name="Center" type="CenterContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
[node name="VBox" type="VBoxContainer" parent="Center"]
theme_override_constants/separation = 10
[node name="Title" type="Label" parent="Center/VBox"]
theme_override_colors/font_color = Color(1, 0.85, 0.3, 1)
theme_override_fonts/font = SubResource("SystemFont_cjk")
theme_override_font_sizes/font_size = 26
text = "过关!"
horizontal_alignment = 1
[node name="Subtitle" type="Label" parent="Center/VBox"]
theme_override_colors/font_color = Color(0.8, 0.95, 0.85, 1)
theme_override_fonts/font = SubResource("SystemFont_cjk")
theme_override_font_sizes/font_size = 13
text = "钻石 3 / 3"
horizontal_alignment = 1
[node name="NextButton" type="Button" parent="Center/VBox"]
theme_override_fonts/font = SubResource("SystemFont_cjk")
theme_override_font_sizes/font_size = 14
theme_override_styles/normal = SubResource("StyleBoxFlat_button")
text = "进入下一关 (R)"