Comets.gd/scripts/game_over_screen.gd

12 lines
280 B
GDScript

extends Control
func _on_retry_button_pressed() -> void:
# TODO: Reload main game scene from level 1
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()