aboutsummaryrefslogtreecommitdiffstats
path: root/godot/scenes/Menu.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'godot/scenes/Menu.tscn')
-rw-r--r--godot/scenes/Menu.tscn47
1 files changed, 47 insertions, 0 deletions
diff --git a/godot/scenes/Menu.tscn b/godot/scenes/Menu.tscn
new file mode 100644
index 0000000..792bc28
--- /dev/null
+++ b/godot/scenes/Menu.tscn
@@ -0,0 +1,47 @@
+[gd_scene load_steps=4 format=2]
+
+[ext_resource path="res://assets/theme.tres" type="Theme" id=1]
+[ext_resource path="res://scenes/Menu.gd" type="Script" id=2]
+[ext_resource path="res://assets/sounds/main_menu.mp3" type="AudioStream" id=3]
+
+[node name="Menu" type="Control"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+script = ExtResource( 2 )
+
+[node name="VBoxContainer" type="VBoxContainer" parent="."]
+anchor_right = 0.25
+anchor_bottom = 1.0
+margin_left = 40.0
+margin_top = 789.0
+margin_bottom = -40.0
+theme = ExtResource( 1 )
+alignment = 2
+
+[node name="StartButton" type="Button" parent="VBoxContainer"]
+margin_top = 85.0
+margin_right = 440.0
+margin_bottom = 166.0
+focus_neighbour_top = NodePath("../QuitButton")
+text = "Start"
+
+[node name="LevelButton" type="Button" parent="VBoxContainer"]
+visible = false
+margin_top = 85.0
+margin_right = 440.0
+margin_bottom = 166.0
+text = "Levels"
+
+[node name="QuitButton" type="Button" parent="VBoxContainer"]
+margin_top = 170.0
+margin_right = 440.0
+margin_bottom = 251.0
+focus_neighbour_bottom = NodePath("../StartButton")
+text = "Quit"
+
+[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
+stream = ExtResource( 3 )
+autoplay = true
+
+[connection signal="pressed" from="VBoxContainer/StartButton" to="." method="_on_StartButton_pressed"]
+[connection signal="pressed" from="VBoxContainer/QuitButton" to="." method="_on_QuitButton_pressed"]