- Main menu "Maze" button opens a setup panel (width, height in screens; complexity 1-5) and generates a maze of rock chambers joined by tubes, with Start and End pads and a win panel. - New one-way tube kind: orange tiles that only let the slime in at their entrance, with motes drifting into it (OneWayTube, TubeVacuum). The auto-tube trace moved to PixelStream.trace_tube so the player and the maze validator share it. - Generation: chamber graph (spanning tree rooted at End, one-way tubes only towards End on the route, extra tubes), carved with AStarGrid2D. MazeValidator re-derives the chamber graph from the tiles and checks that End is reachable from every chamber reachable from Start. - tests/maze_check.gd: headless batch check (360 mazes) plus a known soft-lock the validator must reject. See docs/MAZE.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.4 KiB
Text
46 lines
1.4 KiB
Text
[gd_scene format=3]
|
|
|
|
[ext_resource type="Script" path="res://Levels/Maze/maze_win_menu.gd" id="1_win"]
|
|
|
|
[node name="WinMenu" type="CanvasLayer"]
|
|
process_mode = 3
|
|
layer = 10
|
|
script = ExtResource("1_win")
|
|
|
|
[node name="Dim" type="ColorRect" parent="."]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0, 0, 0, 0.5)
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="CenterContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer/PanelContainer"]
|
|
custom_minimum_size = Vector2(160, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="Title" type="Label" parent="CenterContainer/PanelContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "You made it!"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="NewMazeButton" type="Button" parent="CenterContainer/PanelContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "New maze"
|
|
|
|
[node name="MainMenuButton" type="Button" parent="CenterContainer/PanelContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Main menu"
|
|
|
|
[connection signal="pressed" from="CenterContainer/PanelContainer/VBoxContainer/NewMazeButton" to="." method="_on_new_maze_button_pressed"]
|
|
[connection signal="pressed" from="CenterContainer/PanelContainer/VBoxContainer/MainMenuButton" to="." method="_on_main_menu_button_pressed"]
|