Initial leaderboard scene

This commit is contained in:
Manuel 2023-10-02 22:03:17 +02:00
parent 6c6125956d
commit 4a7809694c
Signed by: Manuel
GPG key ID: 4085037435E1F07A
4 changed files with 410 additions and 2 deletions

30
src/gui/menu/scores.gd Normal file
View file

@ -0,0 +1,30 @@
extends Control
@export var level_select: Control
@export var first_selection: Control
@export var level_first_selection: Control
@export var leaderboard: Control
# Called when the node enters the scene tree for the first time.
func _ready():
first_selection.grab_focus()
func _on_quit_button_pressed():
get_tree().quit()
func _on_back_button_pressed():
level_select.hide()
func _on_level_button_pressed(level:int):
load_level("res://src/game/levels/level_%s.tscn" % level)
func load_level(path: String):
leaderboard.show()
load_leaderboard_content()
func load_leaderboard_content(level: String):