[gd_scene format=3 uid="uid://dti7d1rslmhgp"] [sub_resource type="GDScript" id="GDScript_kvqlu"] script/source = "extends Control @onready var next_scene := preload(\"res://maps/game.scn\") func _ready(): Input.mouse_mode = Input.MOUSE_MODE_VISIBLE func _on_start_button_pressed() -> void: get_tree().change_scene_to_packed.call_deferred(next_scene) " [node name="MainMenu" type="Control" unique_id=1132875586] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = SubResource("GDScript_kvqlu") [node name="CenterContainer" type="CenterContainer" parent="." unique_id=1899341646] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer" unique_id=1514750426] layout_mode = 2 [node name="StartButton" type="Button" parent="CenterContainer/VBoxContainer" unique_id=856435673] layout_mode = 2 text = "Start" [connection signal="pressed" from="CenterContainer/VBoxContainer/StartButton" to="." method="_on_start_button_pressed"]