aboutsummaryrefslogtreecommitdiff
path: root/menu
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-08-05 20:17:55 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-08-05 20:17:55 -0400
commit19aba81bd9920c470ff258b35ef14276faa1146e (patch)
tree2937e91c1822edaf4ad0fcaf44f8a50ecf303203 /menu
parentcc3ae0f86b824cec321ee7734df4daa22b81af70 (diff)
downloadfrivolous-run-19aba81bd9920c470ff258b35ef14276faa1146e.tar.gz
frivolous-run-19aba81bd9920c470ff258b35ef14276faa1146e.tar.bz2
frivolous-run-19aba81bd9920c470ff258b35ef14276faa1146e.zip
Finally some gameplay
Diffstat (limited to 'menu')
-rw-r--r--menu/Menu.gd31
-rw-r--r--menu/Menu.tscn61
2 files changed, 92 insertions, 0 deletions
diff --git a/menu/Menu.gd b/menu/Menu.gd
new file mode 100644
index 0000000..d04aad7
--- /dev/null
+++ b/menu/Menu.gd
@@ -0,0 +1,31 @@
+extends MarginContainer
+
+
+# Declare member variables here. Examples:
+# var a = 2
+# var b = "text"
+
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ pass # Replace with function body.
+
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+#func _process(delta):
+# pass
+
+
+func _on_Play_button_up():
+ if get_tree().change_scene("res://game/game.tscn") != OK:
+ print("There was an error trying to load the scene...")
+ pass # Replace with function body.
+
+
+func _on_Credits_button_up():
+ pass # Replace with function body.
+
+
+func _on_Quit_button_up():
+ get_tree().quit()
+ pass # Replace with function body.
diff --git a/menu/Menu.tscn b/menu/Menu.tscn
new file mode 100644
index 0000000..b7d3a05
--- /dev/null
+++ b/menu/Menu.tscn
@@ -0,0 +1,61 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://menu/Menu.gd" type="Script" id=1]
+[ext_resource path="res://assets/images/text236.png" type="Texture" id=2]
+
+[node name="Menu" type="MarginContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+rect_scale = Vector2( 1.00487, 1.03334 )
+rect_pivot_offset = Vector2( -1427, -96 )
+script = ExtResource( 1 )
+
+[node name="CenterContainer" type="CenterContainer" parent="."]
+margin_right = 1280.0
+margin_bottom = 720.0
+
+[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
+margin_left = 448.0
+margin_top = 308.0
+margin_right = 832.0
+margin_bottom = 412.0
+
+[node name="Logo" type="Sprite" parent="CenterContainer/VBoxContainer"]
+position = Vector2( 505, 64 )
+scale = Vector2( 0.991787, 1.0997 )
+texture = ExtResource( 2 )
+
+[node name="Play" type="Button" parent="CenterContainer/VBoxContainer"]
+margin_right = 384.0
+margin_bottom = 20.0
+text = "Play"
+
+[node name="Credits" type="Button" parent="CenterContainer/VBoxContainer"]
+margin_top = 24.0
+margin_right = 384.0
+margin_bottom = 44.0
+text = "Credits"
+
+[node name="Quit" type="Button" parent="CenterContainer/VBoxContainer"]
+margin_top = 48.0
+margin_right = 384.0
+margin_bottom = 68.0
+text = "Quit"
+
+[node name="About" type="Label" parent="CenterContainer/VBoxContainer"]
+margin_top = 72.0
+margin_right = 384.0
+margin_bottom = 86.0
+text = "Made for the bits & Bytes Unofficial Game Jam! August 2022"
+align = 1
+
+[node name="Copyright" type="Label" parent="CenterContainer/VBoxContainer"]
+margin_top = 90.0
+margin_right = 384.0
+margin_bottom = 104.0
+text = "Copyright 2022 Andrew Lee. Powered by the Godot Engine"
+align = 1
+
+[connection signal="button_up" from="CenterContainer/VBoxContainer/Play" to="." method="_on_Play_button_up"]
+[connection signal="button_up" from="CenterContainer/VBoxContainer/Credits" to="." method="_on_Credits_button_up"]
+[connection signal="button_up" from="CenterContainer/VBoxContainer/Quit" to="." method="_on_Quit_button_up"]