[gd_scene load_steps=27 format=3 uid="uid://10ew1xa1pxm2"]

[ext_resource type="Script" path="res://scripts/Day.cs" id="1_ii8yu"]
[ext_resource type="Texture2D" uid="uid://b5baxx5o21qy1" path="res://resources/sprites/Sub/Sub.png" id="1_p4jcj"]
[ext_resource type="PackedScene" uid="uid://coogmsw6rsdun" path="res://prefabs/Door.tscn" id="2_o6uwl"]
[ext_resource type="PackedScene" uid="uid://c5ndo6b0unkst" path="res://prefabs/NPC.tscn" id="3_4c2bg"]
[ext_resource type="SpriteFrames" uid="uid://dsgqo48qikwsn" path="res://resources/sprites/npcs/cock.tres" id="4_5jy86"]
[ext_resource type="SpriteFrames" uid="uid://bwssm27bm14s7" path="res://resources/sprites/npcs/captain.tres" id="5_vvft0"]
[ext_resource type="SpriteFrames" uid="uid://532buo56y4q2" path="res://resources/sprites/npcs/crewmate.tres" id="7_vou74"]
[ext_resource type="SpriteFrames" uid="uid://wu7pmuvjw5qm" path="res://resources/sprites/npcs/Empty.tres" id="8_8y5k0"]
[ext_resource type="PackedScene" uid="uid://dfdsnwub212o6" path="res://prefabs/Player.tscn" id="9_mxxxl"]
[ext_resource type="Texture2D" uid="uid://bu7tporh3nk4s" path="res://resources/sprites/barns/corrupt32.png" id="9_uvt3y"]
[ext_resource type="Texture2D" uid="uid://41c7sdjkinml" path="res://resources/sprites/barns/corrupt16.png" id="10_52vj7"]
[ext_resource type="AudioStream" uid="uid://3poadcg4f8mj" path="res://resources/music/Day5.wav" id="10_bwdem"]
[ext_resource type="PackedScene" uid="uid://x6pqolxtgwvy" path="res://prefabs/Interactable.tscn" id="12_bvb3u"]
[ext_resource type="AudioStream" uid="uid://cw6y35jglsn1" path="res://resources/sounds/nightmares/D1nm.wav" id="12_thjn8"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_h0540"]
size = Vector2(640, 24)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_i40av"]
size = Vector2(25.5, 104)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_ki2nk"]
size = Vector2(25.5, 38)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_3xi1q"]
size = Vector2(25.5, 104)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_nl627"]
size = Vector2(1697, 24)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_f1hcn"]
size = Vector2(33.75, 199)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_hgf7s"]
size = Vector2(681, 24)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_3d2ji"]
size = Vector2(2311, 24)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_1dgo4"]
size = Vector2(23, 302.5)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_ogw0u"]
size = Vector2(32.75, 104)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_bafxi"]
size = Vector2(640, 24)

[sub_resource type="AudioStreamPlaylist" id="AudioStreamPlaylist_7838k"]
fade_time = 1.0
stream_count = 1
stream_0 = ExtResource("10_bwdem")

[node name="Test" type="Node2D"]
script = ExtResource("1_ii8yu")
NextScene = "End"
IsEngineDisabled = false

[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_p4jcj")

[node name="StaticBody2D" type="StaticBody2D" parent="Sprite2D"]

[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(560, 51)
shape = SubResource("RectangleShape2D_h0540")

[node name="CollisionShape2D2" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(232, 11)
shape = SubResource("RectangleShape2D_i40av")

[node name="CollisionShape2D18" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(377, 29)
shape = SubResource("RectangleShape2D_ki2nk")

[node name="CollisionShape2D19" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(321, 266)
shape = SubResource("RectangleShape2D_ki2nk")

[node name="CollisionShape2D20" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(916, -244)
shape = SubResource("RectangleShape2D_ki2nk")

[node name="CollisionShape2D3" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(889, 11)
shape = SubResource("RectangleShape2D_3xi1q")

[node name="CollisionShape2D4" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(883, 171)
shape = SubResource("RectangleShape2D_nl627")

[node name="CollisionShape2D5" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(34.875, 83.5)
shape = SubResource("RectangleShape2D_f1hcn")

[node name="CollisionShape2D6" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1727, 127)
shape = SubResource("RectangleShape2D_3xi1q")

[node name="CollisionShape2D7" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1397, 51)
shape = SubResource("RectangleShape2D_hgf7s")

[node name="CollisionShape2D8" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1727, 5)
shape = SubResource("RectangleShape2D_3xi1q")

[node name="CollisionShape2D9" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1068, 5)
shape = SubResource("RectangleShape2D_3xi1q")

[node name="CollisionShape2D10" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(576.5, 292)
shape = SubResource("RectangleShape2D_3d2ji")

[node name="CollisionShape2D11" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(-568.5, 135.25)
shape = SubResource("RectangleShape2D_1dgo4")

[node name="CollisionShape2D12" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1540, 243)
shape = SubResource("RectangleShape2D_3xi1q")

[node name="CollisionShape2D13" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(552.625, 246)
shape = SubResource("RectangleShape2D_ogw0u")

[node name="CollisionShape2D14" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(231, 248)
shape = SubResource("RectangleShape2D_i40av")

[node name="CollisionShape2D15" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(829, -268)
shape = SubResource("RectangleShape2D_i40av")

[node name="CollisionShape2D16" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1172, -268)
shape = SubResource("RectangleShape2D_i40av")

[node name="CollisionShape2D17" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1032, -221)
shape = SubResource("RectangleShape2D_bafxi")

[node name="Doors" type="Node2D" parent="."]

[node name="Door_3F" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(788, 14)
Exit = NodePath("../Door_3F2")

[node name="Door_3F2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(790, 134)
Exit = NodePath("../Door_3F")

[node name="Door_MEDBAY" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(474, 134)
Exit = NodePath("../Door_MEDBAY2")

[node name="Door_MEDBAY2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(474, 255)
Exit = NodePath("../Door_MEDBAY")

[node name="Door_SONAR" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(1180, 134)
Exit = NodePath("../Door_SONAR2")

[node name="Door_SONAR2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(1179, 14)
Exit = NodePath("../Door_SONAR")

[node name="Door_QUOTERS" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(1436, 134)
Exit = NodePath("../Door_QUOTERS2")

[node name="Door_QUOTERS2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(1442, 255)
Exit = NodePath("../Door_QUOTERS")

[node name="Door_ENGINE" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(91, 134)
Exit = NodePath("../Door_ENGINE2")

[node name="Door_ENGINE2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(54, 255)
Exit = NodePath("../Door_ENGINE")

[node name="Door_CAPTAIN" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(980, 134)
Exit = NodePath("../Door_CAPTAIN2")

[node name="Door_CAPTAIN2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_o6uwl")]
position = Vector2(1019, -258)
Exit = NodePath("../Door_CAPTAIN")

[node name="NPCs" type="Node2D" parent="."]

[node name="Cook" parent="NPCs" instance=ExtResource("3_4c2bg")]
position = Vector2(351, 14)
NPCName = "Cook"
Frames = ExtResource("4_5jy86")
DefaultDialogLine = "Captain is waiting for you..."

[node name="Captain" parent="NPCs" instance=ExtResource("3_4c2bg")]
position = Vector2(889, -258)
NPCName = "Captain"
Frames = ExtResource("5_vvft0")
DialogLines = ["As you can see, your little mutiny didn't work", "However I want to congratulate you.", "You will bathe in HIS glory", "Come closer my friend"]

[node name="Ivan" parent="NPCs" instance=ExtResource("3_4c2bg")]
position = Vector2(1307, 254)
NPCName = "Ivan"
Frames = ExtResource("7_vou74")
DefaultDialogLine = "Captain is waiting for you..."

[node name="Eugene" parent="NPCs" instance=ExtResource("3_4c2bg")]
position = Vector2(1326, 14)
NPCName = "Eugene"
Frames = ExtResource("7_vou74")
DefaultDialogLine = "Captain is waiting for you..."
DialogLines = ["We are here.", "Captain is waiting for you..."]

[node name="Computer" parent="NPCs" instance=ExtResource("3_4c2bg")]
position = Vector2(1597, -12)
NPCName = "Computer"
Frames = ExtResource("8_8y5k0")
DefaultDialogLine = "Captain is waiting for you..."
DialogLines = ["tymawsmys dbzp onsmgsz bx tho eidheoeewko", "xss kmh zba jw ssnf", "wzaa nej hdjrv va jw hopdltbc pzpf", "dpapjas czi wsi eck tqlzh us tbpfvcilu ltg omyxpas", "hcwrfr tbobrp pu imd aasi ofabqd", "ijeic hdf hpsl eipd kdilb", "Captain is waiting for you..."]

[node name="Engine" parent="NPCs" instance=ExtResource("3_4c2bg")]
position = Vector2(-359, 245)
NPCName = "Engine"
Frames = ExtResource("8_8y5k0")
DefaultDialogLine = "Captain is waiting for you..."
DialogLines = ["Works at normal pace", "You pull the lever, but the engine refuses to stop.", "Whatever is happening now, you must see the captain."]

[node name="Deco" type="Node2D" parent="."]

[node name="Barn" type="Sprite2D" parent="Deco"]
position = Vector2(1030, 26)
texture = ExtResource("9_uvt3y")

[node name="Barn26" type="Sprite2D" parent="Deco"]
position = Vector2(1007, 25)
texture = ExtResource("9_uvt3y")

[node name="Barn49" type="Sprite2D" parent="Deco"]
position = Vector2(1132, -278)
texture = ExtResource("9_uvt3y")

[node name="Barn52" type="Sprite2D" parent="Deco"]
position = Vector2(1132, -278)
texture = ExtResource("9_uvt3y")

[node name="Barn50" type="Sprite2D" parent="Deco"]
position = Vector2(1076, -296)
texture = ExtResource("9_uvt3y")

[node name="Barn39" type="Sprite2D" parent="Deco"]
position = Vector2(993, -53)
texture = ExtResource("9_uvt3y")

[node name="Barn2" type="Sprite2D" parent="Deco"]
position = Vector2(885, 130)
texture = ExtResource("9_uvt3y")

[node name="Barn32" type="Sprite2D" parent="Deco"]
position = Vector2(257, 269)
texture = ExtResource("9_uvt3y")

[node name="Barn13" type="Sprite2D" parent="Deco"]
position = Vector2(871, -30)
texture = ExtResource("10_52vj7")

[node name="Barn40" type="Sprite2D" parent="Deco"]
position = Vector2(922, 21)
texture = ExtResource("10_52vj7")

[node name="Barn41" type="Sprite2D" parent="Deco"]
position = Vector2(925, -24)
texture = ExtResource("10_52vj7")

[node name="Barn42" type="Sprite2D" parent="Deco"]
position = Vector2(917, -137)
texture = ExtResource("10_52vj7")

[node name="Barn43" type="Sprite2D" parent="Deco"]
position = Vector2(1027, -35)
texture = ExtResource("10_52vj7")

[node name="Barn44" type="Sprite2D" parent="Deco"]
position = Vector2(988, -104)
texture = ExtResource("10_52vj7")

[node name="Barn48" type="Sprite2D" parent="Deco"]
position = Vector2(924, -107)
texture = ExtResource("10_52vj7")

[node name="Barn45" type="Sprite2D" parent="Deco"]
position = Vector2(961, -160)
texture = ExtResource("10_52vj7")

[node name="Barn51" type="Sprite2D" parent="Deco"]
position = Vector2(836, -305)
texture = ExtResource("10_52vj7")

[node name="Barn53" type="Sprite2D" parent="Deco"]
position = Vector2(834, -242)
texture = ExtResource("10_52vj7")

[node name="Barn54" type="Sprite2D" parent="Deco"]
position = Vector2(1058, -242)
texture = ExtResource("10_52vj7")

[node name="Barn46" type="Sprite2D" parent="Deco"]
position = Vector2(1033, -180)
texture = ExtResource("10_52vj7")

[node name="Barn47" type="Sprite2D" parent="Deco"]
position = Vector2(966, -135)
texture = ExtResource("10_52vj7")

[node name="Barn16" type="Sprite2D" parent="Deco"]
position = Vector2(254, -25)
texture = ExtResource("9_uvt3y")

[node name="Barn31" type="Sprite2D" parent="Deco"]
position = Vector2(285, 28)
texture = ExtResource("9_uvt3y")

[node name="Barn55" type="Sprite2D" parent="Deco"]
position = Vector2(569, 16)
texture = ExtResource("9_uvt3y")

[node name="Barn27" type="Sprite2D" parent="Deco"]
position = Vector2(-127, 202)
texture = ExtResource("9_uvt3y")

[node name="Barn36" type="Sprite2D" parent="Deco"]
position = Vector2(-311, 254)
texture = ExtResource("9_uvt3y")

[node name="Barn28" type="Sprite2D" parent="Deco"]
position = Vector2(-143, 254)
texture = ExtResource("9_uvt3y")

[node name="Barn17" type="Sprite2D" parent="Deco"]
position = Vector2(310, -30)
texture = ExtResource("10_52vj7")

[node name="Barn33" type="Sprite2D" parent="Deco"]
position = Vector2(314, 24)
texture = ExtResource("10_52vj7")

[node name="Barn34" type="Sprite2D" parent="Deco"]
position = Vector2(328, 27)
texture = ExtResource("10_52vj7")

[node name="Barn37" type="Sprite2D" parent="Deco"]
position = Vector2(-371, 224)
texture = ExtResource("10_52vj7")

[node name="Barn38" type="Sprite2D" parent="Deco"]
position = Vector2(-329, 224)
texture = ExtResource("10_52vj7")

[node name="Barn18" type="Sprite2D" parent="Deco"]
position = Vector2(384, -1)
texture = ExtResource("10_52vj7")

[node name="Barn6" type="Sprite2D" parent="Deco"]
position = Vector2(1708, 91)
texture = ExtResource("10_52vj7")

[node name="Barn7" type="Sprite2D" parent="Deco"]
position = Vector2(1708, -30)
texture = ExtResource("10_52vj7")

[node name="Barn29" type="Sprite2D" parent="Deco"]
position = Vector2(1577, -31)
texture = ExtResource("10_52vj7")

[node name="Barn30" type="Sprite2D" parent="Deco"]
position = Vector2(1460, 32)
texture = ExtResource("10_52vj7")

[node name="Barn3" type="Sprite2D" parent="Deco"]
position = Vector2(1075, 98)
texture = ExtResource("9_uvt3y")

[node name="Barn5" type="Sprite2D" parent="Deco"]
position = Vector2(1520, 211)
texture = ExtResource("10_52vj7")

[node name="Barn14" type="Sprite2D" parent="Deco"]
position = Vector2(1519, 269)
texture = ExtResource("10_52vj7")

[node name="Barn4" type="Sprite2D" parent="Deco"]
position = Vector2(576, 209)
texture = ExtResource("10_52vj7")

[node name="Barn15" type="Sprite2D" parent="Deco"]
position = Vector2(1241, 206)
texture = ExtResource("10_52vj7")

[node name="Barn8" type="Sprite2D" parent="Deco"]
position = Vector2(-17, 26)
texture = ExtResource("9_uvt3y")

[node name="Barn9" type="Sprite2D" parent="Deco"]
position = Vector2(-467, 12)
texture = ExtResource("9_uvt3y")

[node name="Barn10" type="Sprite2D" parent="Deco"]
position = Vector2(-197, 6)
texture = ExtResource("9_uvt3y")

[node name="Barn11" type="Sprite2D" parent="Deco"]
position = Vector2(-417, 72)
texture = ExtResource("9_uvt3y")

[node name="Barn19" type="Sprite2D" parent="Deco"]
position = Vector2(-229, 69)
texture = ExtResource("9_uvt3y")

[node name="Barn20" type="Sprite2D" parent="Deco"]
position = Vector2(-209, 86)
texture = ExtResource("9_uvt3y")

[node name="Barn21" type="Sprite2D" parent="Deco"]
position = Vector2(-201, 61)
texture = ExtResource("9_uvt3y")

[node name="Barn22" type="Sprite2D" parent="Deco"]
position = Vector2(-233, 92)
texture = ExtResource("9_uvt3y")

[node name="Barn12" type="Sprite2D" parent="Deco"]
position = Vector2(-100, 45)
texture = ExtResource("9_uvt3y")

[node name="Barn23" type="Sprite2D" parent="Deco"]
position = Vector2(-36, 134)
texture = ExtResource("9_uvt3y")

[node name="Barn24" type="Sprite2D" parent="Deco"]
position = Vector2(-359, 131)
texture = ExtResource("9_uvt3y")

[node name="Barn35" type="Sprite2D" parent="Deco"]
position = Vector2(-359, 131)
texture = ExtResource("9_uvt3y")

[node name="Barn25" type="Sprite2D" parent="Deco"]
position = Vector2(-301, 40)
texture = ExtResource("9_uvt3y")

[node name="Player" parent="." instance=ExtResource("9_mxxxl")]
position = Vector2(1054, 255)
Speed = 100.0

[node name="Music" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamPlaylist_7838k")
autoplay = true
bus = &"Music"

[node name="Nightmare" type="AudioStreamPlayer" parent="."]
stream = ExtResource("12_thjn8")
bus = &"Nightmare"

[node name="ColorRect" type="ColorRect" parent="."]
z_index = 11
offset_left = 894.0
offset_top = 115.0
offset_right = 1214.0
offset_bottom = 355.0
color = Color(0, 0, 0, 0)

[node name="EndDay" parent="." instance=ExtResource("12_bvb3u")]
position = Vector2(985, 245)
SpriteOffset = Vector2(0, -30)
AreaRadius = 20.0

[node name="Npc" parent="." instance=ExtResource("3_4c2bg")]
position = Vector2(705, 533)

[connection signal="DialogEnded" from="NPCs/Captain" to="." method="ChangeDay"]
[connection signal="finished" from="Nightmare" to="." method="ChangeScene"]
