summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2023-02-15 04:32:17 -0700
committerLogan <logan@cflip.net>2023-02-15 04:32:17 -0700
commitf30fbd753b23be1f71b4bada5e7063ac00215c33 (patch)
treeb44a6ad3e33daa6895e3ee26cfa7ff084495311e /scenes
parent5e6d1b25330c8246dba43dbc232e8787b40a0ab4 (diff)
Added leaderboard and various tweaks
Diffstat (limited to 'scenes')
-rw-r--r--scenes/leaderboard.tscn374
-rw-r--r--scenes/mainmenu.tscn3
-rw-r--r--scenes/optionsmenu.tscn32
3 files changed, 391 insertions, 18 deletions
diff --git a/scenes/leaderboard.tscn b/scenes/leaderboard.tscn
new file mode 100644
index 0000000..e71a790
--- /dev/null
+++ b/scenes/leaderboard.tscn
@@ -0,0 +1,374 @@
+[gd_scene load_steps=7 format=2]
+
+[ext_resource path="res://theme_data/interface_theme.tres" type="Theme" id=1]
+[ext_resource path="res://scripts/leaderboard.gd" type="Script" id=2]
+[ext_resource path="res://textures/retry.png" type="Texture" id=3]
+[ext_resource path="res://textures/quit_hover.png" type="Texture" id=4]
+[ext_resource path="res://textures/retry_hover.png" type="Texture" id=5]
+[ext_resource path="res://textures/quit.png" type="Texture" id=6]
+
+[node name="Leaderboard" type="Control"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+theme = ExtResource( 1 )
+script = ExtResource( 2 )
+
+[node name="Panel" type="Panel" parent="."]
+anchor_right = 1.0
+anchor_bottom = 1.0
+
+[node name="GridContainer" type="GridContainer" parent="."]
+anchor_top = 0.5
+anchor_bottom = 0.5
+margin_left = 5.0
+margin_top = -54.0
+margin_right = 125.0
+margin_bottom = 162.0
+rect_scale = Vector2( 0.5, 0.5 )
+columns = 2
+
+[node name="NamePanel1" type="PanelContainer" parent="GridContainer"]
+margin_right = 90.0
+margin_bottom = 18.0
+rect_min_size = Vector2( 90, 0 )
+
+[node name="Name" type="Label" parent="GridContainer/NamePanel1"]
+margin_left = 5.0
+margin_right = 85.0
+margin_bottom = 16.0
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "Name"
+
+[node name="ScorePanel1" type="PanelContainer" parent="GridContainer"]
+margin_left = 94.0
+margin_right = 120.0
+margin_bottom = 18.0
+
+[node name="Score" type="Label" parent="GridContainer/ScorePanel1"]
+margin_left = 5.0
+margin_right = 21.0
+margin_bottom = 16.0
+size_flags_horizontal = 6
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "00"
+
+[node name="NamePanel2" type="PanelContainer" parent="GridContainer"]
+margin_top = 22.0
+margin_right = 90.0
+margin_bottom = 40.0
+rect_min_size = Vector2( 90, 0 )
+
+[node name="Name" type="Label" parent="GridContainer/NamePanel2"]
+margin_left = 5.0
+margin_right = 85.0
+margin_bottom = 16.0
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "Name"
+
+[node name="ScorePanel2" type="PanelContainer" parent="GridContainer"]
+margin_left = 94.0
+margin_top = 22.0
+margin_right = 120.0
+margin_bottom = 40.0
+
+[node name="Score" type="Label" parent="GridContainer/ScorePanel2"]
+margin_left = 5.0
+margin_right = 21.0
+margin_bottom = 16.0
+size_flags_horizontal = 6
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "00"
+
+[node name="NamePanel3" type="PanelContainer" parent="GridContainer"]
+margin_top = 44.0
+margin_right = 90.0
+margin_bottom = 62.0
+rect_min_size = Vector2( 90, 0 )
+
+[node name="Name" type="Label" parent="GridContainer/NamePanel3"]
+margin_left = 5.0
+margin_right = 85.0
+margin_bottom = 16.0
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "Name"
+
+[node name="ScorePanel3" type="PanelContainer" parent="GridContainer"]
+margin_left = 94.0
+margin_top = 44.0
+margin_right = 120.0
+margin_bottom = 62.0
+
+[node name="Score" type="Label" parent="GridContainer/ScorePanel3"]
+margin_left = 5.0
+margin_right = 21.0
+margin_bottom = 16.0
+size_flags_horizontal = 6
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "00"
+
+[node name="NamePanel4" type="PanelContainer" parent="GridContainer"]
+margin_top = 66.0
+margin_right = 90.0
+margin_bottom = 84.0
+rect_min_size = Vector2( 90, 0 )
+
+[node name="Name" type="Label" parent="GridContainer/NamePanel4"]
+margin_left = 5.0
+margin_right = 85.0
+margin_bottom = 16.0
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "Name"
+
+[node name="ScorePanel4" type="PanelContainer" parent="GridContainer"]
+margin_left = 94.0
+margin_top = 66.0
+margin_right = 120.0
+margin_bottom = 84.0
+
+[node name="Score" type="Label" parent="GridContainer/ScorePanel4"]
+margin_left = 5.0
+margin_right = 21.0
+margin_bottom = 16.0
+size_flags_horizontal = 6
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "00"
+
+[node name="NamePanel5" type="PanelContainer" parent="GridContainer"]
+margin_top = 88.0
+margin_right = 90.0
+margin_bottom = 106.0
+rect_min_size = Vector2( 90, 0 )
+
+[node name="Name" type="Label" parent="GridContainer/NamePanel5"]
+margin_left = 5.0
+margin_right = 85.0
+margin_bottom = 16.0
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "Name"
+
+[node name="ScorePanel5" type="PanelContainer" parent="GridContainer"]
+margin_left = 94.0
+margin_top = 88.0
+margin_right = 120.0
+margin_bottom = 106.0
+
+[node name="Score" type="Label" parent="GridContainer/ScorePanel5"]
+margin_left = 5.0
+margin_right = 21.0
+margin_bottom = 16.0
+size_flags_horizontal = 6
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "00"
+
+[node name="NamePanel6" type="PanelContainer" parent="GridContainer"]
+margin_top = 110.0
+margin_right = 90.0
+margin_bottom = 128.0
+rect_min_size = Vector2( 90, 0 )
+
+[node name="Name" type="Label" parent="GridContainer/NamePanel6"]
+margin_left = 5.0
+margin_right = 85.0
+margin_bottom = 16.0
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "Name"
+
+[node name="ScorePanel6" type="PanelContainer" parent="GridContainer"]
+margin_left = 94.0
+margin_top = 110.0
+margin_right = 120.0
+margin_bottom = 128.0
+
+[node name="Score" type="Label" parent="GridContainer/ScorePanel6"]
+margin_left = 5.0
+margin_right = 21.0
+margin_bottom = 16.0
+size_flags_horizontal = 6
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "00"
+
+[node name="NamePanel7" type="PanelContainer" parent="GridContainer"]
+margin_top = 132.0
+margin_right = 90.0
+margin_bottom = 150.0
+rect_min_size = Vector2( 90, 0 )
+
+[node name="Name" type="Label" parent="GridContainer/NamePanel7"]
+margin_left = 5.0
+margin_right = 85.0
+margin_bottom = 16.0
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "Name"
+
+[node name="ScorePanel7" type="PanelContainer" parent="GridContainer"]
+margin_left = 94.0
+margin_top = 132.0
+margin_right = 120.0
+margin_bottom = 150.0
+
+[node name="Score" type="Label" parent="GridContainer/ScorePanel7"]
+margin_left = 5.0
+margin_right = 21.0
+margin_bottom = 16.0
+size_flags_horizontal = 6
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "00"
+
+[node name="NamePanel8" type="PanelContainer" parent="GridContainer"]
+margin_top = 154.0
+margin_right = 90.0
+margin_bottom = 172.0
+rect_min_size = Vector2( 90, 0 )
+
+[node name="Name" type="Label" parent="GridContainer/NamePanel8"]
+margin_left = 5.0
+margin_right = 85.0
+margin_bottom = 16.0
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "Name"
+
+[node name="ScorePanel8" type="PanelContainer" parent="GridContainer"]
+margin_left = 94.0
+margin_top = 154.0
+margin_right = 120.0
+margin_bottom = 172.0
+
+[node name="Score" type="Label" parent="GridContainer/ScorePanel8"]
+margin_left = 5.0
+margin_right = 21.0
+margin_bottom = 16.0
+size_flags_horizontal = 6
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "00"
+
+[node name="NamePanel9" type="PanelContainer" parent="GridContainer"]
+margin_top = 176.0
+margin_right = 90.0
+margin_bottom = 194.0
+rect_min_size = Vector2( 90, 0 )
+
+[node name="Name" type="Label" parent="GridContainer/NamePanel9"]
+margin_left = 5.0
+margin_right = 85.0
+margin_bottom = 16.0
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "Name"
+
+[node name="ScorePanel9" type="PanelContainer" parent="GridContainer"]
+margin_left = 94.0
+margin_top = 176.0
+margin_right = 120.0
+margin_bottom = 194.0
+
+[node name="Score" type="Label" parent="GridContainer/ScorePanel9"]
+margin_left = 5.0
+margin_right = 21.0
+margin_bottom = 16.0
+size_flags_horizontal = 6
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "00"
+
+[node name="NamePanel10" type="PanelContainer" parent="GridContainer"]
+margin_top = 198.0
+margin_right = 90.0
+margin_bottom = 216.0
+rect_min_size = Vector2( 90, 0 )
+
+[node name="Name" type="Label" parent="GridContainer/NamePanel10"]
+margin_left = 5.0
+margin_right = 85.0
+margin_bottom = 16.0
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "Name"
+
+[node name="ScorePanel10" type="PanelContainer" parent="GridContainer"]
+margin_left = 94.0
+margin_top = 198.0
+margin_right = 120.0
+margin_bottom = 216.0
+
+[node name="Score" type="Label" parent="GridContainer/ScorePanel10"]
+margin_left = 5.0
+margin_right = 21.0
+margin_bottom = 16.0
+size_flags_horizontal = 6
+custom_colors/font_color_shadow = Color( 0, 0, 0, 0 )
+text = "00"
+
+[node name="Control" type="Control" parent="."]
+anchor_left = 0.5
+anchor_top = 0.5
+anchor_right = 0.5
+anchor_bottom = 0.5
+margin_left = -107.0
+margin_top = -60.0
+margin_right = 107.0
+margin_bottom = 60.0
+
+[node name="Label" type="Label" parent="Control"]
+anchor_left = 0.5
+anchor_top = 0.5
+anchor_right = 0.5
+anchor_bottom = 0.5
+margin_left = -13.0
+margin_top = -54.0
+margin_right = 75.0
+margin_bottom = -19.0
+text = "Your Score:
+00"
+align = 1
+
+[node name="HBoxContainer" type="HBoxContainer" parent="Control"]
+anchor_left = 1.0
+anchor_top = 0.5
+anchor_right = 1.0
+anchor_bottom = 0.5
+margin_left = -40.0
+margin_top = 40.0
+margin_right = -4.0
+margin_bottom = 56.0
+
+[node name="RestartButton" type="TextureButton" parent="Control/HBoxContainer"]
+margin_right = 16.0
+margin_bottom = 16.0
+focus_mode = 0
+size_flags_horizontal = 10
+enabled_focus_mode = 0
+texture_normal = ExtResource( 3 )
+texture_hover = ExtResource( 5 )
+
+[node name="QuitButton" type="TextureButton" parent="Control/HBoxContainer"]
+margin_left = 20.0
+margin_right = 36.0
+margin_bottom = 16.0
+focus_mode = 0
+size_flags_horizontal = 10
+enabled_focus_mode = 0
+texture_normal = ExtResource( 6 )
+texture_hover = ExtResource( 4 )
+
+[node name="LineEdit" type="LineEdit" parent="Control"]
+margin_left = 100.0
+margin_top = 101.0
+margin_right = 185.0
+margin_bottom = 119.0
+rect_scale = Vector2( 0.8, 0.8 )
+align = 1
+max_length = 10
+context_menu_enabled = false
+shortcut_keys_enabled = false
+middle_mouse_paste_enabled = false
+placeholder_text = "ENTER NAME"
+
+[node name="Button" type="Button" parent="Control"]
+margin_left = 170.0
+margin_top = 101.0
+margin_right = 220.0
+margin_bottom = 119.0
+rect_scale = Vector2( 0.8, 0.8 )
+text = "Submit"
+
+[connection signal="pressed" from="Control/HBoxContainer/RestartButton" to="." method="_on_RestartButton_pressed"]
+[connection signal="pressed" from="Control/HBoxContainer/QuitButton" to="." method="_on_QuitButton_pressed"]
+[connection signal="text_entered" from="Control/LineEdit" to="." method="_on_LineEdit_text_entered"]
+[connection signal="pressed" from="Control/Button" to="." method="_on_Button_pressed"]
diff --git a/scenes/mainmenu.tscn b/scenes/mainmenu.tscn
index a5f11aa..49fed43 100644
--- a/scenes/mainmenu.tscn
+++ b/scenes/mainmenu.tscn
@@ -53,7 +53,6 @@ text = "Start"
margin_top = 22.0
margin_right = 100.0
margin_bottom = 40.0
-disabled = true
text = "Leaderboard"
[node name="HelpButton" type="Button" parent="Control/VBoxContainer"]
@@ -84,7 +83,7 @@ text = "Quit"
[node name="AnnouncerAudio" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 2 )
-volume_db = -20.0
+volume_db = -15.0
autoplay = true
[connection signal="pressed" from="Control/VBoxContainer/StartButton" to="." method="_on_StartButton_pressed"]
diff --git a/scenes/optionsmenu.tscn b/scenes/optionsmenu.tscn
index 76968d7..c9970f6 100644
--- a/scenes/optionsmenu.tscn
+++ b/scenes/optionsmenu.tscn
@@ -22,26 +22,26 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
-margin_left = -154.0
+margin_left = -164.0
margin_top = -49.0
-margin_right = 154.0
+margin_right = 164.0
margin_bottom = 49.0
rect_scale = Vector2( 0.5, 0.5 )
-rect_pivot_offset = Vector2( 154, 49 )
+rect_pivot_offset = Vector2( 164, 49 )
[node name="GridContainer" type="GridContainer" parent="Control/VBoxContainer"]
-margin_right = 308.0
+margin_right = 328.0
margin_bottom = 76.0
columns = 2
[node name="FullscreenLabel" type="Label" parent="Control/VBoxContainer/GridContainer"]
-margin_right = 104.0
+margin_right = 124.0
margin_bottom = 16.0
text = "Fullscreen"
[node name="FullscreenCheckButton" type="CheckButton" parent="Control/VBoxContainer/GridContainer"]
-margin_left = 276.0
-margin_right = 308.0
+margin_left = 296.0
+margin_right = 328.0
margin_bottom = 16.0
size_flags_horizontal = 10
@@ -53,9 +53,9 @@ size_flags_horizontal = 2
text = "Master Volume"
[node name="VolumeMasterContainer" type="HBoxContainer" parent="Control/VBoxContainer/GridContainer"]
-margin_left = 108.0
+margin_left = 128.0
margin_top = 20.0
-margin_right = 308.0
+margin_right = 328.0
margin_bottom = 36.0
rect_min_size = Vector2( 200, 0 )
@@ -73,14 +73,14 @@ text = "50%"
[node name="VolumeMusicLabel" type="Label" parent="Control/VBoxContainer/GridContainer"]
margin_top = 40.0
-margin_right = 104.0
+margin_right = 124.0
margin_bottom = 56.0
text = "Music Volume"
[node name="VolumeMusicContainer" type="HBoxContainer" parent="Control/VBoxContainer/GridContainer"]
-margin_left = 108.0
+margin_left = 128.0
margin_top = 40.0
-margin_right = 308.0
+margin_right = 328.0
margin_bottom = 56.0
[node name="VolumeMusicSlider" type="HSlider" parent="Control/VBoxContainer/GridContainer/VolumeMusicContainer"]
@@ -97,14 +97,14 @@ text = "50%"
[node name="VolumeSFXLabel" type="Label" parent="Control/VBoxContainer/GridContainer"]
margin_top = 60.0
-margin_right = 104.0
+margin_right = 124.0
margin_bottom = 76.0
text = "SFX Volume"
[node name="VolumeSFXContainer" type="HBoxContainer" parent="Control/VBoxContainer/GridContainer"]
-margin_left = 108.0
+margin_left = 128.0
margin_top = 60.0
-margin_right = 308.0
+margin_right = 328.0
margin_bottom = 76.0
[node name="VolumeSFXSlider" type="HSlider" parent="Control/VBoxContainer/GridContainer/VolumeSFXContainer"]
@@ -121,7 +121,7 @@ text = "50%"
[node name="ReturnButton" type="Button" parent="Control/VBoxContainer"]
margin_top = 80.0
-margin_right = 308.0
+margin_right = 328.0
margin_bottom = 98.0
text = "Return"