[gd_scene load_steps=19 format=3 uid="uid://dfdsnwub212o6"]

[ext_resource type="Script" path="res://scripts/Player.cs" id="1_68nsf"]
[ext_resource type="SpriteFrames" uid="uid://e8ybb7seykdx" path="res://resources/sprites/player/player.tres" id="1_be2ex"]
[ext_resource type="FontFile" uid="uid://dwn20pw40jpxm" path="res://fonts/ZxSpectrum7-nROZ0.ttf" id="3_w5ojp"]
[ext_resource type="Texture2D" uid="uid://dvbfhk2703brs" path="res://resources/sprites/ui/metalPanel.png" id="4_ha8al"]
[ext_resource type="PackedScene" uid="uid://cmn7af4dsj8v2" path="res://prefabs/Dialog.tscn" id="4_owmws"]
[ext_resource type="Script" path="res://scripts/ChatLogContainer.cs" id="4_tbl72"]
[ext_resource type="PackedScene" uid="uid://phjermaw6phb" path="res://prefabs/AudioCollection.tscn" id="5_wnylg"]
[ext_resource type="AudioStream" uid="uid://cb0344er3onkq" path="res://resources/sounds/door/doorOpen_1.ogg" id="7_2fkyu"]
[ext_resource type="AudioStream" uid="uid://87caolv1uksk" path="res://resources/sounds/door/doorClose_3.ogg" id="8_4v0xv"]
[ext_resource type="AudioStream" uid="uid://c0toj2j52ya7t" path="res://resources/sounds/footsteps/impactMetal_004.ogg" id="8_alxid"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_sed4o"]
size = Vector2(22, 51)

[sub_resource type="Theme" id="Theme_8jldp"]
default_font = ExtResource("3_w5ojp")
default_font_size = 10
Label/colors/font_color = Color(0, 0, 0, 1)
Label/constants/line_spacing = 0

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_l7l8c"]
content_margin_left = 22.0
content_margin_top = 5.0
bg_color = Color(0.6, 0.6, 0.6, 0)

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_7gu8b"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5af0i"]
bg_color = Color(0.6, 0.6, 0.6, 0)

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_m2s6r"]
content_margin_left = 22.0
content_margin_bottom = 0.0
bg_color = Color(0.6, 0.6, 0.6, 0)

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6l2d2"]
content_margin_left = 22.0
bg_color = Color(0.6, 0.6, 0.6, 0)

[sub_resource type="AudioStreamPlaylist" id="AudioStreamPlaylist_flb1c"]
loop = false
stream_count = 2
stream_0 = ExtResource("7_2fkyu")
stream_1 = ExtResource("8_4v0xv")

[node name="Player" type="CharacterBody2D"]
z_index = 10
script = ExtResource("1_68nsf")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = ExtResource("1_be2ex")
frame_progress = 0.0128934

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -0.5)
shape = SubResource("RectangleShape2D_sed4o")

[node name="Camera2D" type="Camera2D" parent="."]
offset = Vector2(0, -20)
zoom = Vector2(2, 2)

[node name="Control" type="Control" parent="Camera2D"]
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
theme = SubResource("Theme_8jldp")

[node name="NinePatchRect" type="NinePatchRect" parent="Camera2D/Control"]
layout_mode = 0
offset_left = 160.0
offset_top = -140.0
offset_right = 268.0
offset_bottom = 100.0
texture = ExtResource("4_ha8al")
patch_margin_left = 10
patch_margin_top = 10
patch_margin_right = 10
patch_margin_bottom = 10

[node name="ChatLog" type="PanelContainer" parent="Camera2D/Control"]
visible = false
layout_mode = 0
offset_left = 160.0
offset_top = -140.0
offset_right = 256.0
offset_bottom = 100.0
theme = SubResource("Theme_8jldp")
theme_override_styles/panel = SubResource("StyleBoxFlat_l7l8c")

[node name="ChatLog2" type="PanelContainer" parent="Camera2D/Control"]
visible = false
layout_mode = 0
offset_left = 160.0
offset_top = -140.0
offset_right = 256.0
offset_bottom = 100.0
theme = SubResource("Theme_8jldp")
theme_override_styles/panel = SubResource("StyleBoxTexture_7gu8b")

[node name="PanelContainer" type="PanelContainer" parent="Camera2D/Control"]
layout_mode = 0
offset_left = 160.0
offset_top = -140.0
offset_right = 256.0
offset_bottom = -130.0
theme_override_styles/panel = SubResource("StyleBoxFlat_l7l8c")

[node name="Label" type="Label" parent="Camera2D/Control/PanelContainer"]
layout_mode = 2
text = "Chat Log"

[node name="Control" type="Control" parent="Camera2D/Control"]
clip_contents = true
anchors_preset = 0
offset_left = 164.0
offset_top = -125.0
offset_right = 264.0
offset_bottom = 75.0

[node name="PanelContainer2" type="PanelContainer" parent="Camera2D/Control/Control"]
clip_contents = true
layout_mode = 0
offset_right = 100.0
theme_override_styles/panel = SubResource("StyleBoxFlat_5af0i")

[node name="ChatLogContainer" type="VBoxContainer" parent="Camera2D/Control/Control/PanelContainer2"]
layout_mode = 2
theme_override_constants/separation = 0
script = ExtResource("4_tbl72")

[node name="PlaceholderDialog" parent="Camera2D/Control/Control/PanelContainer2/ChatLogContainer" instance=ExtResource("4_owmws")]
visible = false
layout_mode = 2

[node name="PlaceholderDialog2" parent="Camera2D/Control/Control/PanelContainer2/ChatLogContainer" instance=ExtResource("4_owmws")]
visible = false
layout_mode = 2
Text = "Placeholder text 2"
Author = "NPC name 2"

[node name="ExitLabel" type="PanelContainer" parent="Camera2D/Control"]
layout_mode = 2
offset_left = 160.0
offset_top = 85.0
offset_right = 256.0
offset_bottom = 95.0
theme_override_styles/panel = SubResource("StyleBoxFlat_m2s6r")

[node name="Label" type="Label" parent="Camera2D/Control/ExitLabel"]
layout_mode = 2
text = "C - Exit"

[node name="NextLabel" type="PanelContainer" parent="Camera2D/Control"]
visible = false
layout_mode = 2
offset_left = 160.0
offset_top = 85.0
offset_right = 256.0
offset_bottom = 95.0
theme_override_styles/panel = SubResource("StyleBoxFlat_6l2d2")

[node name="Label" type="Label" parent="Camera2D/Control/NextLabel"]
layout_mode = 2
text = "E - Next"

[node name="ColorRect" type="ColorRect" parent="Camera2D"]
z_index = 11
offset_left = -160.0
offset_top = -140.0
offset_right = 160.0
offset_bottom = 100.0
color = Color(0, 0, 0, 0)

[node name="Footsteps" parent="." instance=ExtResource("5_wnylg")]
RandomPitch = true
PitchStart = 0.75
PitchEnd = 0.9

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="Footsteps"]
stream = ExtResource("8_alxid")
bus = &"Sound"

[node name="DoorSounds" parent="." instance=ExtResource("5_wnylg")]

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="DoorSounds"]
stream = ExtResource("7_2fkyu")
volume_db = -10.0
bus = &"Sound"

[node name="AudioStreamPlayer2" type="AudioStreamPlayer" parent="DoorSounds"]
stream = ExtResource("8_4v0xv")
volume_db = -10.0
bus = &"Sound"

[node name="AudioStreamPlayer2" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamPlaylist_flb1c")
bus = &"Sound"

[connection signal="Finished" from="DoorSounds" to="." method="_on_door_opened"]
