extends Area3D ## Lobby gate into the Bear's Den. Shut until the arena is cleared (Run.bear_gate_open()), ## which is also what plays the grid-opening animation — so the trigger only fires once the ## gate has actually risen. func _ready() -> void: body_entered.connect(_on_body_entered) func _on_body_entered(body: Node3D) -> void: if not body.is_in_group("player"): return if not Run.bear_gate_open(): return Run.choose_level(&"bear") get_tree().change_scene_to_file(Run.active_level().scene_path)