extends Control var destination_map = { "oustide":preload("res://scenes/outside.tscn"), } signal start signal save signal load var instanciated_destinations = {} func _ready() -> void: $MarginContainer/Panel/VBoxContainer/Load.disabled = not FileAccess.file_exists("user://savegame.save") func _on_button_pressed() -> void: emit_signal("start") $MarginContainer/Panel/VBoxContainer/Start.text="Continuer" $MarginContainer/Panel/VBoxContainer/Save.disabled = false func _on_save_pressed() -> void: emit_signal("save") $MarginContainer/Panel/VBoxContainer/Load.disabled = not FileAccess.file_exists("user://savegame.save") func _on_load_pressed() -> void: emit_signal("load") _on_button_pressed()