Fixed Bugs; Added Score overview
This commit is contained in:
parent
fdfb6a7d39
commit
6d71780f36
9 changed files with 152 additions and 33 deletions
19
scenes/ScoreOverview/score_overview.gd
Normal file
19
scenes/ScoreOverview/score_overview.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
extends Control
|
||||
|
||||
@onready var score = $VBoxContainer3/VBoxContainer2/ScoreValue
|
||||
@onready var time = $VBoxContainer3/VBoxContainer/TimeValue
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
score.text = str(GLOBAL.points)
|
||||
time.text = str(GLOBAL.time)
|
||||
GLOBAL.resetGame()
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_left_button_pressed() -> void:
|
||||
get_parent().loadGrid()
|
||||
Loading…
Add table
Add a link
Reference in a new issue