summaryrefslogtreecommitdiff
path: root/scripts/mainmenu.gd
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 /scripts/mainmenu.gd
parent5e6d1b25330c8246dba43dbc232e8787b40a0ab4 (diff)
Added leaderboard and various tweaks
Diffstat (limited to 'scripts/mainmenu.gd')
-rw-r--r--scripts/mainmenu.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mainmenu.gd b/scripts/mainmenu.gd
index 258760f..c317d22 100644
--- a/scripts/mainmenu.gd
+++ b/scripts/mainmenu.gd
@@ -7,10 +7,11 @@ func _ready():
$"/root/Audio/AudioStreamPlayer".play()
func _on_StartButton_pressed():
+ # warning-ignore:return_value_discarded
get_tree().change_scene("res://scenes/level.tscn")
func _on_LeaderboardButton_pressed():
- pass
+ add_child(load("res://scenes/leaderboard.tscn").instance())
func _on_HelpButton_pressed():
pass