Comets.gd/scripts/game_over_screen.gd

9 lines
233 B
GDScript

extends Control
func _on_retry_button_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/game.tscn")
func _on_quit_button_pressed() -> void:
# TODO: Go to title screen instead of killing the game
get_tree().quit()