Initial leaderboard scene
This commit is contained in:
parent
6c6125956d
commit
4a7809694c
4 changed files with 410 additions and 2 deletions
30
src/gui/menu/scores.gd
Normal file
30
src/gui/menu/scores.gd
Normal 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):
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue