[gd_scene load_steps=16 format=4 uid="uid://o2bbndsuqj28"]

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_mfwx1"]
[ext_resource type="Resource" uid="uid://fa7jvapga27y" path="res://Scenes/Maps/RogueliteMaps/LongSidePassage.tres" id="2_d1uiv"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="3_d1uiv"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="4_oxby7"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="5_oxby7"]
[ext_resource type="PackedScene" uid="uid://bc64lr3vlwchq" path="res://Scenes/Door_Vertical.tscn" id="5_w63wm"]
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="6_570qx"]
[ext_resource type="PackedScene" uid="uid://dcbcyp1qogcl0" path="res://Scenes/Props/BigTankHorizontal.tscn" id="7_570qx"]
[ext_resource type="Resource" uid="uid://qbo6avc7x64b" path="res://Resources/Enemies/Fairy_Guard.tres" id="10_kagm8"]
[ext_resource type="Resource" uid="uid://cocl3qontm3be" path="res://Resources/Enemies/Base_Fairy.tres" id="11_04mp4"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="11_ivoyj"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="12_04mp4"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
vertices = PackedVector2Array(166, 58, 294, 58, 294, 294, 166, 294, 166, 310, 154, 310, 154, 294, 154, 58, 26, 294, 26, 58, 166, 10, 154, 10)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(3, 4, 5, 6), PackedInt32Array(0, 3, 6, 7), PackedInt32Array(6, 8, 9, 7), PackedInt32Array(10, 0, 7, 11)])
outlines = Array[PackedVector2Array]([PackedVector2Array(17, 36, 14, 12, 47, 15, 49, 34)])
parsed_collision_mask = 353
source_geometry_mode = 1

[sub_resource type="RectangleShape2D" id="RectangleShape2D_4lag8"]
size = Vector2(272, 247)

[sub_resource type="AtlasTexture" id="AtlasTexture_404pl"]
atlas = ExtResource("12_04mp4")
region = Rect2(0, 0, 16, 16)

[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
process_mode = 1
script = ExtResource("1_mfwx1")
RoomResource = ExtResource("2_d1uiv")
RoomClearActivation = []

[node name="Tilemaps" type="Node2D" parent="." groups=["navigation_polygon_source_geometry_group"]]

[node name="Floor" type="TileMapLayer" parent="Tilemaps" node_paths=PackedStringArray("_solidLayers") groups=["Solid"]]
tile_map_data = PackedByteArray("[encoded data, 6404 characters]")
tile_set = ExtResource("3_d1uiv")
navigation_enabled = false
script = ExtResource("4_oxby7")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

[node name="Solid" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("AAATAAAAAAABAAsAAAASAAAAAAABAAQAAAARAAAAAAABAAQAAAAQAAAAAAABAAQAAAAPAAAAAAABAAQAAAAOAAAAAAABAAQAAAANAAAAAAABAAQAAAAMAAAAAAABAAQAAAALAAAAAAABAAQAAAAIAAAAAAABAAQAAAAHAAAAAAABAAQAAAAGAAAAAAABAAQAAAAFAAAAAAABAAQAAAAEAAAAAAABAAQAAAADAAAAAAABAAQAAAACAAAAAAABAAQAAAABAAAAAAABAAQAAAAAAAAAAAAAAAsAAAATAAIAAAAEAAQAAAATAAEAAAAAAAQAAAAAAAIAAAAEAAQAAAAAAAEAAAAAAAQAAAAAAAkAAAAAAAQAAAAAAAgAAAAAAAQAAAAAAAcAAAAAAAQAAAAAAAYAAAAAAAsAAAATAAkAAAACAAYAAAATAAgAAAADAAwAAAATAAcAAAAAAAQA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AAAAAYAAAALAAwAAAAJAAIAAAALAA0AAAAJAAMAAAAMAAwAAAAKAAIAAAAMAA0AAAAKAAMAAAANAAwAAAAJAAIAAAANAA0AAAAJAAMAAAASAAsAAAABAAcAAAASAAoAAAACAAgAAAASAAkAAAACAAgAAAARAAsAAAAFAAwAAAARAAoAAAAAAAYAAAARAAkAAAAAAAYAAAAQAAsAAAABAAQAAAAPAAsAAAABAAQAAAAOAAsAAAABAAQAAAAOAAwAAAAKAAIAAAAOAA0AAAAKAAMAAAAPAAwAAAAJAAIAAAAPAA0AAAAJAAMAAAAQAAwAAAAKAAIAAAAQAA0AAAAKAAMAAAARAAwAAAAJAAIAAAARAA0AAAAJAAMAAAASAAwAAAAKAAIAAAASAA0AAAAKAAMAAAASAAgAAAABAAUAAAARAAgAAAAAAAUAAAANAAgAAAACAAUAAAAMAAgAAAABAAUAAAALAAgAAAAAAAUAAAALAA8AAAAIAAoAAAALAA4AAAAGAAgAAAAKAA0AAAAJAAQAAAAHAA0AAAAJAAQAAAA=")
tile_set = ExtResource("3_d1uiv")
navigation_enabled = false
metadata/_edit_lock_ = true

[node name="Props" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("AAAKAA0AAAAGAAoAAAAHAA0AAAAIAAgAAAAHAAgAAAAIAAgAAAAKAAgAAAAGAAoAAAABAAkAAQAAAAAAEAACAAkAAQAAAAAAEAAFAAkAAQAAAAAAEAAGAAgAAAAKAA4AAAAGAAkAAAAKAA8AAAATAAMAAAAKAA4AAAATAAQAAAAKAA8AAAATAA0AAAAKAA4AAAATAA4AAAAKAA8AAAAAAAMAAAAKAA4AAAAAAAQAAAAKAA8AAAALAAwAAAAJAAwAAAALAA0AAAAJAA0AAAAGAA0AAAAKAAwAAAAGAA4AAAAKAA0AAAAAAA0AAAAKAA4AAAAAAA4AAAAKAA8AAAAOAAoAAQAAAAAADgABAAMAAQAAAAAADgACAAMAAQAAAAAADgAOAA4AAQAAAAAADQANAA4AAQAAAAAADQAHABIAAQAAAAAADQARABIAAQAAAAAADAASABIAAQAAAAAADAAPAAMAAQAAAAAADAAQAAMAAQAAAAAADAAMAA4AAQAAAAAAAQADAAMAAQAAAAAAAQAOAAMAAQAAAAAAAQAMABIAAQAAAAAAAQAKAAkAAQAAAAAAAQA=")
tile_set = ExtResource("3_d1uiv")
navigation_enabled = false
metadata/_edit_lock_ = true

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

[node name="VerticalDoor" parent="Tilemaps/Actors" instance=ExtResource("5_w63wm")]
position = Vector2(108, 152)

[node name="ControlPad" parent="Tilemaps/Actors" node_paths=PackedStringArray("Target") instance=ExtResource("6_570qx")]
position = Vector2(195, 34)
Target = NodePath("../VerticalDoor")
ActivationType = 5

[node name="BigTankHorizontal" parent="Tilemaps/Actors" instance=ExtResource("7_570qx")]
position = Vector2(287, 50)

[node name="BigTankHorizontal2" parent="Tilemaps/Actors" instance=ExtResource("7_570qx")]
position = Vector2(255, 224)

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

[node name="RogueliteEnemySpawner7" type="Marker2D" parent="EnemySpawners"]
position = Vector2(169, 288)
script = ExtResource("5_oxby7")
Enemy = ExtResource("10_kagm8")

[node name="RogueliteEnemySpawner8" type="Marker2D" parent="EnemySpawners"]
position = Vector2(251, 263)
script = ExtResource("5_oxby7")
Enemy = ExtResource("10_kagm8")

[node name="RogueliteEnemySpawner10" type="Marker2D" parent="EnemySpawners"]
position = Vector2(142.635, 82.3421)
script = ExtResource("5_oxby7")
Enemy = ExtResource("11_04mp4")

[node name="RogueliteEnemySpawner9" type="Marker2D" parent="EnemySpawners"]
position = Vector2(249, 137)
script = ExtResource("5_oxby7")
Enemy = ExtResource("10_kagm8")

[node name="NavigationRegion2D" type="NavigationRegion2D" parent="."]
visible = false
navigation_polygon = SubResource("NavigationPolygon_rlq0q")
use_edge_connections = false

[node name="PlayerEnterDetector" type="Area2D" parent="."]
visible = false
collision_layer = 0
collision_mask = 2

[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerEnterDetector"]
position = Vector2(162, 175.5)
shape = SubResource("RectangleShape2D_4lag8")

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

[node name="Chest2" type="Marker2D" parent="Features"]
position = Vector2(56, 151)
script = ExtResource("11_ivoyj")
MarkerTexture = SubResource("AtlasTexture_404pl")
SpawnChance = 10.0

[node name="Chest3" type="Marker2D" parent="Features"]
position = Vector2(72, 151)
script = ExtResource("11_ivoyj")
MarkerTexture = SubResource("AtlasTexture_404pl")
SpawnChance = 10.0

[node name="Chest4" type="Marker2D" parent="Features"]
position = Vector2(216, 294)
script = ExtResource("11_ivoyj")
MarkerTexture = SubResource("AtlasTexture_404pl")
SpawnChance = 10.0

[node name="Chest5" type="Marker2D" parent="Features"]
position = Vector2(248, 167)
script = ExtResource("11_ivoyj")
MarkerTexture = SubResource("AtlasTexture_404pl")
SpawnChance = 10.0

[node name="Chest6" type="Marker2D" parent="Features"]
position = Vector2(216, 55)
script = ExtResource("11_ivoyj")
MarkerTexture = SubResource("AtlasTexture_404pl")
SpawnChance = 10.0

[connection signal="area_entered" from="PlayerEnterDetector" to="." method="OnRoomEntered"]
