Documentation and Optimization Part 1 (#2)

Authored-by: Dennis Ploeger <develop@dieploegers.de>
This commit is contained in:
Dennis Ploeger
2021-06-16 10:12:51 +02:00
committed by GitHub
parent a22805d0e6
commit 4e09f522ff
109 changed files with 3556 additions and 2043 deletions

View File

@@ -1,10 +1,13 @@
extends Node
# Main_scene is the entry point for Godot Engine.
# This scene sets up the main menu scene to load.
extends Node
# Start the main menu
func _ready():
var main_menu_path = ProjectSettings.get_setting("escoria/ui/main_menu_scene")
var main_menu_path = ProjectSettings.get_setting(
"escoria/ui/main_menu_scene"
)
var main_menu_scene = load(main_menu_path).instance()
# get_tree().get_root().call_deferred("add_child", main_menu_scene)
escoria.call_deferred("add_child", main_menu_scene)