2021-04-23 20:16:43 +00:00
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
func load_scene(map_data):
|
2022-10-08 18:42:29 +00:00
|
|
|
var scene = load(map_data+".tscn")
|
|
|
|
print("MAP NAME ",map_data+".tscn")
|
|
|
|
var map = scene.instance()
|
|
|
|
return map
|
2021-04-25 10:36:01 +00:00
|
|
|
|
2021-04-23 20:16:43 +00:00
|
|
|
func _ready():
|
2022-10-12 20:52:13 +00:00
|
|
|
var map = "res://Maps/river_intersection"
|
|
|
|
self.add_child(load_scene(map))
|
|
|
|
|