[gd_scene load_steps=32 format=4 uid="uid://bx31ou6tw3kd1"]

[ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_6sq7s"]
[ext_resource type="PackedScene" uid="uid://c4pr2707hbeph" path="res://Scenes/Actors/fsm_player.tscn" id="2_cicvv"]
[ext_resource type="Resource" uid="uid://37h0tjja4sns" path="res://Resources/Maps/RebelBase.tres" id="2_oa48u"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_vmlpc"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_sv42c"]
[ext_resource type="PackedScene" uid="uid://l84on3kv2s52" path="res://Scenes/Door_Horizontal.tscn" id="7_rs3ph"]
[ext_resource type="PackedScene" uid="uid://cychwkelxf0h3" path="res://Scenes/Actors/RebelBase/rumia_rebel_1.tscn" id="8_64py7"]
[ext_resource type="PackedScene" uid="uid://bjb1xv0ny1qim" path="res://Scenes/Props/Chair.tscn" id="9_muw33"]
[ext_resource type="Script" uid="uid://cjy38nsh83ug1" path="res://Scripts/Activables/NPC.cs" id="10_blpsg"]
[ext_resource type="Script" uid="uid://ddv26x2qilprb" path="res://Scripts/Resources/Events/DialogueStartEvent.cs" id="11_esmuk"]
[ext_resource type="Script" uid="uid://bwox5lmgiijcs" path="res://Scripts/Resources/Events/ActivateEvent.cs" id="12_etnwf"]
[ext_resource type="Texture2D" uid="uid://bbdrws471xslc" path="res://Sprites/Actors/Rumia-world.png" id="13_3l50b"]
[ext_resource type="PackedScene" uid="uid://cke02i4e3bxld" path="res://Scenes/Props/MainFrame2.tscn" id="14_inplt"]
[ext_resource type="PackedScene" uid="uid://cqrkisw6jg24w" path="res://Scenes/Props/MainFrame1.tscn" id="15_8rpjd"]
[ext_resource type="PackedScene" uid="uid://doqmmuuuprl3s" path="res://Scenes/Interactable/Computer.tscn" id="16_r67ss"]
[ext_resource type="PackedScene" uid="uid://bc64lr3vlwchq" path="res://Scenes/Door_Vertical.tscn" id="17_8n6yg"]
[ext_resource type="Resource" uid="uid://mx860r8t37g1" path="res://Resources/Maps/Level2.tres" id="18_8anae"]
[ext_resource type="PackedScene" uid="uid://dx1urm7nttkqk" path="res://Scenes/Actors/level_teleporter.tscn" id="18_tbppe"]
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="19_nxss7"]
[ext_resource type="PackedScene" uid="uid://cyy5i38sf7fid" path="res://Scenes/Props/Locker.tscn" id="20_jrxvj"]
[ext_resource type="Script" uid="uid://c5nxsq3tyxcx6" path="res://Scripts/InventoryManager.cs" id="22_jn5np"]
[ext_resource type="PackedScene" uid="uid://dkwi1hu1bixoe" path="res://Scenes/HUD/HUD.tscn" id="23_4quap"]
[ext_resource type="Script" uid="uid://upq0b4sx7nhw" path="res://Scripts/Misc/CameraTarget.cs" id="24_8anae"]
[ext_resource type="Script" uid="uid://cnkipcolyj61w" path="res://Scripts/AlarmManager.cs" id="25_nrq5u"]
[ext_resource type="PackedScene" uid="uid://cl7s06sk106uo" path="res://Scenes/Props/VendingMachine.tscn" id="26_6sq7s"]
[ext_resource type="PackedScene" uid="uid://b3tyacxxw88lx" path="res://Scenes/Utils/StreamPlayerWithName.tscn" id="26_yowd0"]
[ext_resource type="PackedScene" uid="uid://bmif3jo03yuol" path="res://Scenes/camera_controller.tscn" id="27_rf2ue"]

[sub_resource type="Resource" id="Resource_2ugqu"]
script = ExtResource("11_esmuk")
TimelineName = &"colonel1"
WaitForCompletion = true
metadata/_custom_type_script = "uid://ddv26x2qilprb"

[sub_resource type="Resource" id="Resource_8anae"]
resource_local_to_scene = true
script = ExtResource("12_etnwf")
ActivationType = 1
Targets = Array[NodePath]([NodePath("../LevelTeleporter")])
WaitForCompletion = true
metadata/_custom_type_script = "uid://bwox5lmgiijcs"

[sub_resource type="AtlasTexture" id="AtlasTexture_cr26l"]
atlas = ExtResource("13_3l50b")
region = Rect2(0, 0, 8, 16)

[sub_resource type="CircleShape2D" id="CircleShape2D_cr26l"]

[node name="GameScene" type="Node2D"]
process_mode = 3
script = ExtResource("1_6sq7s")
MapResource = ExtResource("2_oa48u")
PlayerTemplate = ExtResource("2_cicvv")
SpawnMarkers = Dictionary[int, NodePath]({
0: NodePath("PlayerStartPosition")
})

[node name="Tilemaps" type="Node2D" parent="."]
process_mode = 1

[node name="Floor" type="TileMapLayer" parent="Tilemaps" node_paths=PackedStringArray("_solidLayers")]
tile_map_data = PackedByteArray("[encoded data, 22452 characters]")
tile_set = ExtResource("5_vmlpc")
script = ExtResource("6_sv42c")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

[node name="Solid" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("[encoded data, 49556 characters]")
tile_set = ExtResource("5_vmlpc")
metadata/_edit_lock_ = true

[node name="Props" type="TileMapLayer" parent="Tilemaps"]
tile_map_data = PackedByteArray("AAAEACAAAAAGAAAAAAAFACAAAAAHAAAAAAAGACAAAAAGAAAAAAAHACAAAAAHAAAAAAAAACAAAAAGAAAAAAABACAAAAAHAAAAAAD+/yAAAAAGAAAAAAD//yAAAAAHAAAAAAD+/yMAAAAIAAAAAAD+/yQAAAAIAAEAAAAHACMAAAAIAAAAAAAHACQAAAAIAAEAAAAbABcAAAAIAAYAAAAbABgAAAAIAAYAAAAbABkAAAAIAAYAAAAbABoAAAAIAAYAAAAcABsAAAAHAAUAAAAdABsAAAAHAAUAAAAeABsAAAAHAAUAAAAfABsAAAAHAAUAAAAgABcAAAAGAAYAAAAgABgAAAAGAAYAAAAgABkAAAAGAAYAAAAgABoAAAAGAAYAAAAcABYAAAAHAAcAAAAdABYAAAAHAAcAAAAeABYAAAAHAAcAAAAfABYAAAAHAAcAAAAcABoAAAALAAQAAAAfABoAAAALAAQAAAAhAB0AAQAAAAAACwAhAB4AAQAAAAAACwAhAB8AAQAAAAAACwAaAB0AAQAAAAAACwAaA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0AAAATABgAAAALAAQAAAAVABgAAAALAAQAAAAUABgAAAAKAAQAAAD8/w8AAQAAAAAAEAD8/xAAAQAAAAAAEAD5/w8AAQAAAAAAEAD4/w8AAQAAAAAAEAD9/w8AAQAAAAAAEAD4/xMAAQAAAAAAEAD4/xIAAQAAAAAAEAAJABgAAAAMAAoAAAAKABgAAAANAAoAAAD6/xgAAAAMAAoAAAD7/xgAAAANAAoAAAD6/xoAAQAAAAAAEAD6/xsAAQAAAAAAEAD7/xsAAQAAAAAAEAD8/xsAAQAAAAAAEAD7/xoAAQAAAAAAEAD4/xAAAQAAAAAADAAQABwAAQAAAAAAEAARABwAAQAAAAAAEAAHABwAAQAAAAAAEAAIABwAAQAAAAAAEAAJABwAAQAAAAAAEAAKABwAAQAAAAAAEAA=")
tile_set = ExtResource("5_vmlpc")
metadata/_edit_lock_ = true

[node name="Actors" type="Node2D" parent="Tilemaps"]
metadata/_edit_lock_ = true

[node name="HorizontalDoor" parent="Tilemaps/Actors" instance=ExtResource("7_rs3ph")]
position = Vector2(112, 367)
State = 1

[node name="HorizontalDoor4" parent="Tilemaps/Actors" instance=ExtResource("7_rs3ph")]
position = Vector2(240, 368)

[node name="HorizontalDoor5" parent="Tilemaps/Actors" instance=ExtResource("7_rs3ph")]
position = Vector2(47, 368)

[node name="HorizontalDoor2" parent="Tilemaps/Actors" instance=ExtResource("7_rs3ph")]
position = Vector2(-32, 368)
State = 1

[node name="HorizontalDoor3" parent="Tilemaps/Actors" instance=ExtResource("7_rs3ph")]
position = Vector2(47, 496)

[node name="Rumia" parent="Tilemaps/Actors" instance=ExtResource("8_64py7")]
position = Vector2(216, 386)

[node name="Chair2" parent="Tilemaps/Actors" instance=ExtResource("9_muw33")]
position = Vector2(-80, 250)

[node name="Colonel" type="Area2D" parent="Tilemaps/Actors" groups=["Interactable"]]
position = Vector2(-80, 262)
collision_layer = 68
collision_mask = 0
script = ExtResource("10_blpsg")
Events = Array[Object]([SubResource("Resource_2ugqu"), SubResource("Resource_8anae")])
metadata/_edit_group_ = true

[node name="Sprite2D" type="Sprite2D" parent="Tilemaps/Actors/Colonel"]
position = Vector2(0, -12.115)
texture = SubResource("AtlasTexture_cr26l")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Tilemaps/Actors/Colonel"]
shape = SubResource("CircleShape2D_cr26l")

[node name="Mainframe2" parent="Tilemaps/Actors" instance=ExtResource("14_inplt")]
position = Vector2(275, 511)

[node name="Mainframe" parent="Tilemaps/Actors" instance=ExtResource("15_8rpjd")]
position = Vector2(248, 519)

[node name="Mainframe3" parent="Tilemaps/Actors" instance=ExtResource("15_8rpjd")]
position = Vector2(264, 519)

[node name="Mainframe5" parent="Tilemaps/Actors" instance=ExtResource("15_8rpjd")]
position = Vector2(-24, 247)

[node name="Mainframe4" parent="Tilemaps/Actors" instance=ExtResource("15_8rpjd")]
position = Vector2(287, 519)

[node name="Chair" parent="Tilemaps/Actors" instance=ExtResource("9_muw33")]
position = Vector2(43, 286)
Direction = 3

[node name="Computer" parent="Tilemaps/Actors" instance=ExtResource("16_r67ss")]
position = Vector2(17, 517)

[node name="Computer2" parent="Tilemaps/Actors" instance=ExtResource("16_r67ss")]
position = Vector2(79, 517)

[node name="Computer3" parent="Tilemaps/Actors" instance=ExtResource("16_r67ss")]
position = Vector2(-17, 517)

[node name="Computer6" parent="Tilemaps/Actors" instance=ExtResource("16_r67ss")]
position = Vector2(55, 287)
Direction = 2

[node name="Computer4" parent="Tilemaps/Actors" instance=ExtResource("16_r67ss")]
position = Vector2(104, 517)

[node name="Chair3" parent="Tilemaps/Actors" instance=ExtResource("9_muw33")]
position = Vector2(-17, 531)
Direction = 0

[node name="Chair4" parent="Tilemaps/Actors" instance=ExtResource("9_muw33")]
position = Vector2(17, 531)
Direction = 0

[node name="Chair5" parent="Tilemaps/Actors" instance=ExtResource("9_muw33")]
position = Vector2(79, 531)
Direction = 0

[node name="Chair6" parent="Tilemaps/Actors" instance=ExtResource("9_muw33")]
position = Vector2(104, 532)
Direction = 0

[node name="VerticalDoor" parent="Tilemaps/Actors" instance=ExtResource("17_8n6yg")]
position = Vector2(292, 408)

[node name="LevelTeleporter" parent="Tilemaps/Actors" instance=ExtResource("18_tbppe")]
position = Vector2(112, 304)
LevelPath = "res://Scenes/Maps/Level2.tscn"
Map = ExtResource("18_8anae")
SaveInventory = true

[node name="ControlPad" parent="Tilemaps" node_paths=PackedStringArray("Targets") instance=ExtResource("19_nxss7")]
position = Vector2(134, 371)
Targets = [NodePath("../Actors/HorizontalDoor")]

[node name="Props2" type="Node2D" parent="Tilemaps"]

[node name="VendingMachine" parent="Tilemaps/Props2" instance=ExtResource("26_6sq7s")]
position = Vector2(80, 388)

[node name="Locker" parent="Tilemaps/Props2" instance=ExtResource("20_jrxvj")]
position = Vector2(191, 376)

[node name="Locker2" parent="Tilemaps/Props2" instance=ExtResource("20_jrxvj")]
position = Vector2(202, 376)

[node name="Locker3" parent="Tilemaps/Props2" instance=ExtResource("20_jrxvj")]
position = Vector2(180, 376)

[node name="ReferenceRect" type="ReferenceRect" parent="."]
visible = false
offset_left = -38.0
offset_top = -39.0
offset_right = 124.0
offset_bottom = 44.0

[node name="InventoryManager" type="Node2D" parent="."]
script = ExtResource("22_jn5np")

[node name="HUD" parent="." instance=ExtResource("23_4quap")]

[node name="CameraController" parent="." instance=ExtResource("27_rf2ue")]
MaxAimOffsetDistance = 64.0

[node name="CameraTarget" type="Node2D" parent="."]
position = Vector2(115, 328)
script = ExtResource("24_8anae")

[node name="PlayerStartPosition" type="Marker2D" parent="."]
position = Vector2(111, 305)

[node name="AlarmManager" type="Node2D" parent="."]
process_mode = 1
script = ExtResource("25_nrq5u")

[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("26_yowd0")]
process_mode = 3
autoplay = true
