pir-serious-game-ethics/scenes/MainMenu.gd

28 lines
408 B
GDScript3
Raw Normal View History

2021-04-10 18:29:03 +02:00
extends Control
func load_main_game():
get_tree().change_scene("res://scenes/Main.tscn")
2021-04-20 11:36:39 +02:00
func load_credits():
get_tree().change_scene("res://scenes/Credits.tscn")
2021-04-10 18:29:03 +02:00
func _on_NewGameButton_pressed():
2021-04-12 10:59:06 +02:00
Dialogic.reset_saves()
2021-04-10 18:29:03 +02:00
load_main_game()
func _on_ContinueButton_pressed():
load_main_game()
func _on_ExitButton_pressed():
get_tree().quit(0)
2021-04-20 11:36:39 +02:00
func _on_CreditsButton_pressed():
load_credits()