RingOfRaces/Other/base_tilemap/init.gd

13 lines
253 B
GDScript3
Raw Normal View History

2021-04-23 20:16:43 +00:00
extends Node2D
func load_scene(map_data):
var scene = load(map_data+".tscn")
print("MAP NAME ",map_data+".tscn")
var map = scene.instance()
return map
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))