seems like a decent restore before I broke everything earlier

This commit is contained in:
derek
2025-02-28 15:53:01 -06:00
parent 3356f9e191
commit dba1be2034
7 changed files with 48 additions and 28 deletions

View File

@@ -2,6 +2,7 @@ extends Node
@onready var playlist_generator: Control = $"../Playlist Generator"
var round_id = 2
var portals = []
# Called when the node enters the scene tree for the first time.
@@ -11,15 +12,10 @@ func _ready() -> void:
for i in get_tree().current_scene.get_children():
if i.is_in_group("portal"):
portals.append(i)
print("PORTALS")
var id = 0
for i in portals:
i.scene_path = str(GameGlobals.current_match[0][id]["map"])
i.scene_name = str(GameGlobals.current_match[0][id]["map"])
i.scene_path = str(GameGlobals.current_match[round_id][id]["level_path"])
i.scene_name = str(GameGlobals.current_match[round_id][id]["level_name"])
i.level_gamemode = load(GameGlobals.current_match[round_id][id]["gamemode_path"])
id += 1
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
print("CURRENT MATCH ",GameGlobals.current_match[0])