[gd_scene load_steps=12 format=3 uid="uid://dfa6ep4o53s08"]

[ext_resource type="Script" uid="uid://cci652umkym1f" path="res://scripts/test_scene.gd" id="1_752n1"]
[ext_resource type="Texture2D" uid="uid://c5yxq22ao1oyf" path="res://graphics/doorlight.png" id="2_oi1nh"]
[ext_resource type="PackedScene" uid="uid://cd08dp16bixfv" path="res://templates/guildhall.tscn" id="2_rma72"]
[ext_resource type="Script" uid="uid://bnbljf6u2d3kh" path="res://scripts/visitor_spawner.gd" id="3_oi1nh"]
[ext_resource type="PackedScene" uid="uid://c8ofw6na082gv" path="res://templates/main_panel.tscn" id="4_4k18p"]
[ext_resource type="PackedScene" uid="uid://c7jagw4y7w42l" path="res://templates/top_menu.tscn" id="5_p1w2f"]
[ext_resource type="AudioStream" uid="uid://cmray2frojcd" path="res://sounds/Door Hinge Creaking Door.wav" id="7_oi1nh"]

[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_752n1"]
blend_mode = 3

[sub_resource type="Animation" id="Animation_p1w2f"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}

[sub_resource type="Animation" id="Animation_4k18p"]
resource_name = "open"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.099999994, 0.13333333, 0.16666667, 0.2, 0.23333333),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3, 4]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.09737283),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_dtjin"]
_data = {
&"RESET": SubResource("Animation_p1w2f"),
&"open": SubResource("Animation_4k18p")
}

[node name="Active Scene" type="Node2D"]
script = ExtResource("1_752n1")

[node name="ColorRect" type="ColorRect" parent="."]
visible = false
z_index = 100
material = SubResource("CanvasItemMaterial_752n1")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 3.0
offset_top = 5.0
offset_right = 1923.0
offset_bottom = 1085.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
color = Color(0.2925, 0.29512504, 0.45, 1)

[node name="DoorLight" type="Sprite2D" parent="."]
visible = false
self_modulate = Color(2.5713813, 2.5713813, 2.5713813, 0.36078432)
z_index = 100
position = Vector2(866, 654)
scale = Vector2(2, 2)
texture = ExtResource("2_oi1nh")
hframes = 5
frame = 1

[node name="AnimationPlayer" type="AnimationPlayer" parent="DoorLight"]
libraries = {
&"": SubResource("AnimationLibrary_dtjin")
}

[node name="Guildhall" parent="." instance=ExtResource("2_rma72")]
position = Vector2(421, 289)

[node name="VisitorSpawner" type="Node2D" parent="Guildhall"]
position = Vector2(453, 533)
script = ExtResource("3_oi1nh")
total_visitors = 1

[node name="Timer" type="Timer" parent="Guildhall/VisitorSpawner"]

[node name="UI" type="CanvasLayer" parent="."]

[node name="VBoxContainer" type="VBoxContainer" parent="UI"]
offset_left = 1485.0
offset_top = 23.0
offset_right = 1886.0
offset_bottom = 351.0

[node name="MainPanel" parent="UI/VBoxContainer" instance=ExtResource("4_4k18p")]
layout_mode = 2

[node name="Notices" type="Control" parent="UI/VBoxContainer"]
layout_mode = 2

[node name="Control" parent="UI" instance=ExtResource("5_p1w2f")]

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("7_oi1nh")
volume_db = -24.535

[connection signal="timeout" from="Guildhall/VisitorSpawner/Timer" to="Guildhall/VisitorSpawner" method="_on_timer_timeout"]
