aboutsummaryrefslogtreecommitdiffstats
path: root/Nodes/game.tscn
diff options
context:
space:
mode:
authorLibravatar perivesta <>2023-07-08 15:53:37 +0200
committerLibravatar perivesta <>2023-07-08 15:53:37 +0200
commit9573d3ae4170f43f7f65224a16db7ad161a11e28 (patch)
treeaca31f8254e6e2876ade6472febf8ad003bfea18 /Nodes/game.tscn
parentbf17c8a97b77cdb783a2751e7ee4a90843a00f06 (diff)
download2023-9573d3ae4170f43f7f65224a16db7ad161a11e28.tar.gz
2023-9573d3ae4170f43f7f65224a16db7ad161a11e28.tar.bz2
2023-9573d3ae4170f43f7f65224a16db7ad161a11e28.zip
add main menu, pause menu, basic level
Diffstat (limited to 'Nodes/game.tscn')
-rw-r--r--Nodes/game.tscn76
1 files changed, 76 insertions, 0 deletions
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"]