From 9573d3ae4170f43f7f65224a16db7ad161a11e28 Mon Sep 17 00:00:00 2001 From: perivesta <> Date: Sat, 8 Jul 2023 15:53:37 +0200 Subject: add main menu, pause menu, basic level --- Nodes/game.tscn | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Nodes/game.tscn (limited to 'Nodes/game.tscn') diff --git a/Nodes/game.tscn b/Nodes/game.tscn new file mode 100644 index 0000000..5553ea5 --- /dev/null +++ b/Nodes/game.tscn @@ -0,0 +1,76 @@ +[gd_scene load_steps=3 format=3 uid="uid://b7wp8w46l64vc"] + +[ext_resource type="Script" path="res://Scripts/game.gd" id="1_1dait"] + +[sub_resource type="AudioStream" id="AudioStream_n3sou"] + +[node name="Game" type="Node2D"] +script = ExtResource("1_1dait") + +[node name="JinglePlayer" type="AudioStreamPlayer2D" parent="."] +stream = SubResource("AudioStream_n3sou") +volume_db = 1.0 + +[node name="Evaluation" type="Control" parent="."] +visible = false +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="EvaluationLabel" type="Label" parent="Evaluation"] +layout_mode = 0 +anchor_left = 0.3 +anchor_top = 0.4 +anchor_right = 0.7 +anchor_bottom = 0.5 +text = "Finished +" + +[node name="PausePopup" type="Control" parent="."] +process_mode = 2 +visible = false +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Panel" type="Panel" parent="PausePopup"] +layout_mode = 0 +anchor_right = 1.0 +anchor_bottom = 1.0 + +[node name="Label" type="Label" parent="PausePopup/Panel"] +layout_mode = 0 +anchor_right = 1.0 +anchor_bottom = 0.3 +text = "Game is Paused" + +[node name="VBoxContainer" type="VBoxContainer" parent="PausePopup/Panel"] +layout_mode = 0 +anchor_top = 0.3 +anchor_right = 1.0 +anchor_bottom = 1.0 +alignment = 1 + +[node name="ResumeButton" type="Button" parent="PausePopup/Panel/VBoxContainer"] +layout_mode = 2 +text = "Resume" + +[node name="MainMenuButton" type="Button" parent="PausePopup/Panel/VBoxContainer"] +layout_mode = 2 +text = "Main Menu" + +[node name="QuitButton" type="Button" parent="PausePopup/Panel/VBoxContainer"] +layout_mode = 2 +text = "Quit" + +[node name="LoadedLevel" type="Node2D" parent="."] + +[connection signal="pressed" from="PausePopup/Panel/VBoxContainer/ResumeButton" to="." method="_on_ResumeButton_pressed"] +[connection signal="pressed" from="PausePopup/Panel/VBoxContainer/MainMenuButton" to="." method="_on_MainMenuButton_pressed"] +[connection signal="pressed" from="PausePopup/Panel/VBoxContainer/QuitButton" to="." method="_on_QuitButton_pressed"] -- cgit