115 lines
4.0 KiB
Plaintext
115 lines
4.0 KiB
Plaintext
[gd_scene load_steps=8 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"]
|
|
|
|
[sub_resource type="ViewportTexture" id="ViewportTexture_gyvwl"]
|
|
viewport_path = NodePath("InsideWorld/DebugInside")
|
|
|
|
[sub_resource type="ViewportTexture" id="ViewportTexture_34g5f"]
|
|
viewport_path = NodePath("SubViewportContainer/OutsideWorld/DebugOutside")
|
|
|
|
[node name="level_hermione" type="Node"]
|
|
script = ExtResource("1_gyvwl")
|
|
|
|
[node name="Window" type="Window" parent="."]
|
|
mode = 1
|
|
title = "Marek Debug"
|
|
position = Vector2i(960, 0)
|
|
size = Vector2i(480, 270)
|
|
|
|
[node name="Inside" type="TextureRect" parent="Window"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 0
|
|
texture = SubResource("ViewportTexture_gyvwl")
|
|
expand_mode = 2
|
|
stretch_mode = 3
|
|
|
|
[node name="Label" type="Label" parent="Window/Inside"]
|
|
layout_mode = 1
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -40.0
|
|
offset_bottom = 23.0
|
|
grow_horizontal = 0
|
|
text = "Inside"
|
|
|
|
[node name="Window2" type="Window" parent="."]
|
|
auto_translate_mode = 1
|
|
mode = 1
|
|
title = "Marek Debug 2"
|
|
position = Vector2i(480, 0)
|
|
size = Vector2i(480, 270)
|
|
|
|
[node name="Outside" type="TextureRect" parent="Window2"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 8
|
|
texture = SubResource("ViewportTexture_34g5f")
|
|
expand_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="Window2/Outside"]
|
|
layout_mode = 1
|
|
offset_right = 55.0
|
|
offset_bottom = 23.0
|
|
text = "Ouside"
|
|
|
|
[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="DebugOutside" type="SubViewport" parent="SubViewportContainer/OutsideWorld"]
|
|
|
|
[node name="DebugCamera3D" type="Camera3D" parent="SubViewportContainer/OutsideWorld/DebugOutside"]
|
|
transform = Transform3D(0.243648, -0.561794, 0.790584, 0, 0.81515, 0.57925, -0.969864, -0.141133, 0.19861, 11.8586, 7.0378, 3.58701)
|
|
|
|
[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")]
|
|
|
|
[node name="DebugInside" type="SubViewport" parent="InsideWorld"]
|
|
|
|
[node name="DebugCamera3D" type="Camera3D" parent="InsideWorld/DebugInside"]
|
|
transform = Transform3D(0.243648, -0.561794, 0.790584, 0, 0.81515, 0.57925, -0.969864, -0.141133, 0.19861, 11.8586, 7.0378, 3.58701)
|
|
|
|
[connection signal="pressed" from="HUD/TeleportButton" to="." method="_on_teleport_button_pressed"]
|