27 lines
408 B
GDScript
27 lines
408 B
GDScript
extends Control
|
|
|
|
|
|
func load_main_game():
|
|
get_tree().change_scene("res://scenes/Main.tscn")
|
|
|
|
|
|
func load_credits():
|
|
get_tree().change_scene("res://scenes/Credits.tscn")
|
|
|
|
|
|
func _on_NewGameButton_pressed():
|
|
Dialogic.reset_saves()
|
|
load_main_game()
|
|
|
|
|
|
func _on_ContinueButton_pressed():
|
|
load_main_game()
|
|
|
|
|
|
func _on_ExitButton_pressed():
|
|
get_tree().quit(0)
|
|
|
|
|
|
func _on_CreditsButton_pressed():
|
|
load_credits()
|
|
|