Armazon/score_screen.gd
2024-04-03 19:24:04 -04:00

10 lines
274 B
GDScript

extends Control
func _ready() -> void:
%score.text = str(Scoring.score) + " pts"
%boxes.text = str(Scoring.boxes_passed) + " boxes"
func _on_retry_pressed() -> void:
get_tree().change_scene_to_file("res://main.tscn")
func _on_quit_pressed() -> void:
get_tree().quit()