Added basic title screen functionality

This commit is contained in:
Paul Norberger
2020-04-18 14:21:22 +02:00
parent 88a8f255d3
commit 4d696c0cea
9 changed files with 104 additions and 23 deletions

View File

@@ -0,0 +1,12 @@
extends Button
class_name TitleSceenButton
export(String, FILE, "*.tscn,*.scn") var scene_to_load = ""
export(bool) var quit = false
func _pressed():
if quit:
get_tree().quit()
return
get_tree().change_scene(scene_to_load)