Comets.gd/scripts/game_over_screen.gd

11 lines
298 B
GDScript3
Raw Permalink Normal View History

extends Control
func _on_retry_button_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/game.tscn")
func _on_quit_button_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/title_screen.tscn")
func _on_visibility_changed() -> void:
$Panel/RetryButton.grab_focus()