[gd_scene load_steps=6 format=3 uid="uid://dgvdetmbv5jya"]

[ext_resource type="PackedScene" uid="uid://b5x7fmpwck335" path="res://hud.tscn" id="1_2k7q4"]
[ext_resource type="Script" uid="uid://ca45js46kc0l7" path="res://levels/level_hermione.gd" id="1_gyvwl"]
[ext_resource type="PackedScene" uid="uid://drhaqr78kv1o2" path="res://levels/room_hermione_outside.tscn" id="2_empe6"]
[ext_resource type="PackedScene" uid="uid://ci81nttn6foio" path="res://levels/room_hermione_inside.tscn" id="2_lv1mc"]
[ext_resource type="PackedScene" uid="uid://cgdlowfuuorvi" path="res://player.tscn" id="3_gyvwl"]

[node name="level_hermione" type="Node"]
script = ExtResource("1_gyvwl")

[node name="SubViewportContainer" type="SubViewportContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="OutsideWorld" type="SubViewport" parent="SubViewportContainer"]
unique_name_in_owner = true
handle_input_locally = false
size = Vector2i(1920, 1080)
render_target_update_mode = 4

[node name="OutsideWorldContainer" type="Node3D" parent="SubViewportContainer/OutsideWorld"]

[node name="room_hermione_outside" parent="SubViewportContainer/OutsideWorld/OutsideWorldContainer" instance=ExtResource("2_empe6")]

[node name="Player" parent="SubViewportContainer/OutsideWorld/OutsideWorldContainer" instance=ExtResource("3_gyvwl")]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.08041, 1.41104, 0)

[node name="HUD" parent="." instance=ExtResource("1_2k7q4")]

[node name="TeleportButton" type="Button" parent="HUD"]
layout_mode = 2
text = "Switch Worlds (T)"

[node name="InsideWorld" type="SubViewport" parent="."]
unique_name_in_owner = true
own_world_3d = true
size = Vector2i(1920, 1080)

[node name="InsideWorldContainer" type="Node3D" parent="InsideWorld"]

[node name="room_hermione_inside" parent="InsideWorld/InsideWorldContainer" instance=ExtResource("2_lv1mc")]

[connection signal="pressed" from="HUD/TeleportButton" to="." method="_on_teleport_button_pressed"]
