atualização 1.0/add menu

This commit is contained in:
2026-05-27 09:44:13 -03:00
parent 0b0113fbde
commit b8442324fa
9 changed files with 125 additions and 59 deletions
File diff suppressed because one or more lines are too long
+36
View File
@@ -0,0 +1,36 @@
[gd_scene format=3 uid="uid://cr7p1pwsut4lb"]
[ext_resource type="Script" uid="uid://chlo44qqf1jxt" path="res://test/Scripts/menu_inicial.gd" id="1_47gom"]
[node name="menu_inicial" type="CanvasLayer" unique_id=507596293]
process_mode = 3
script = ExtResource("1_47gom")
[node name="ColorRect" type="ColorRect" parent="." unique_id=583267878]
offset_right = 1148.0
offset_bottom = 658.0
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1503422526]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -98.0
offset_top = -33.0
offset_right = 98.0
offset_bottom = 33.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 4
[node name="Play" type="Button" parent="VBoxContainer" unique_id=1729784933]
layout_mode = 2
text = "Play"
[node name="Quit_game" type="Button" parent="VBoxContainer" unique_id=2132465000]
layout_mode = 2
text = "Quit game"
[connection signal="pressed" from="VBoxContainer/Play" to="." method="_on_play_pressed"]
[connection signal="pressed" from="VBoxContainer/Quit_game" to="." method="_on_quit_game_pressed"]
+5
View File
@@ -41,6 +41,10 @@ size_flags_vertical = 4
layout_mode = 2
text = "Continued"
[node name="Menu" type="Button" parent="VBoxContainer" unique_id=1808262501]
layout_mode = 2
text = "Menu"
[node name="Retry_button" type="Button" parent="VBoxContainer" unique_id=5830091]
layout_mode = 2
text = "Retry"
@@ -50,5 +54,6 @@ layout_mode = 2
text = "Quit"
[connection signal="pressed" from="VBoxContainer/Continued_button" to="." method="_on_continued_button_pressed"]
[connection signal="pressed" from="VBoxContainer/Menu" to="." method="_on_menu_pressed"]
[connection signal="pressed" from="VBoxContainer/Retry_button" to="." method="_on_retry_button_pressed"]
[connection signal="pressed" from="VBoxContainer/Quit_button" to="." method="_on_quit_button_pressed"]