Added Map Loader to Game to allow for map swaping in the future

This commit is contained in:
Willow Behar
2024-05-09 10:15:49 -05:00
parent 2d37e9d326
commit 44b37420be

View File

@ -0,0 +1,10 @@
extends Node3D
var Default_Map = "res://Assets/Levels/test_map.tscn"
func openMap(map_location):
var map_instance = load(map_location).instantiate()
add_child(map_instance)
func _init():
openMap(Default_Map)