added blocking doors to paths.

This commit is contained in:
2026-01-10 19:46:55 +01:00
parent 24ea2f3c60
commit 25be2c00bd
33 changed files with 4383 additions and 455 deletions

View File

@@ -23,6 +23,9 @@ func show_level(level_number: int):
if tween.is_valid():
tween.kill()
# Get vbox once at the start (reuse throughout function)
var vbox = get_child(0) if get_child_count() > 0 else null
# Update label text FIRST before showing
if level_label:
level_label.text = "LEVEL " + str(level_number)
@@ -30,7 +33,6 @@ func show_level(level_number: int):
else:
print("LevelTextUI: ERROR - level_label is null!")
# Try to find it again
var vbox = get_child(0) if get_child_count() > 0 else null
if vbox:
for child in vbox.get_children():
if child.name == "LevelLabel" or child is Label:
@@ -43,7 +45,6 @@ func show_level(level_number: int):
visible = true
# Fade in - fade the VBoxContainer and level label
var vbox = get_child(0) if get_child_count() > 0 else null
if vbox:
vbox.modulate.a = 0.0
var fade_in = create_tween()
@@ -68,4 +69,3 @@ func show_level(level_number: int):
await fade_out.finished
visible = false