[gd_scene load_steps=20 format=4 uid="uid://d06oxglp06qyt"]

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_oj14n"]
[ext_resource type="Resource" uid="uid://c1lxymqnucaas" path="res://Resources/RogueliteMaps/Corridor_3x2.tres" id="2_oj14n"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="3_wmiud"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="4_8clrf"]
[ext_resource type="PackedScene" uid="uid://dcbcyp1qogcl0" path="res://Scenes/Props/BigTankHorizontal.tscn" id="5_0tpnm"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="5_j6t4s"]
[ext_resource type="PackedScene" uid="uid://b4gugris5j5kd" path="res://Scenes/Activable/WallEmitter.tscn" id="6_4efvr"]
[ext_resource type="Resource" uid="uid://cocl3qontm3be" path="res://Resources/Enemies/Base_Fairy.tres" id="6_ko1fq"]
[ext_resource type="Resource" uid="uid://qbo6avc7x64b" path="res://Resources/Enemies/Fairy_Guard.tres" id="7_4efvr"]
[ext_resource type="Resource" uid="uid://dqnvesdj0dk3v" path="res://Resources/Bullets/simple_enemy_bullet.tres" id="7_nhpte"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="8_nhpte"]
[ext_resource type="Script" uid="uid://b5fesrd4lv8t1" path="res://Scripts/Resources/Events/EventResource.cs" id="9_4efvr"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="9_7q6f1"]
[ext_resource type="Script" uid="uid://bwox5lmgiijcs" path="res://Scripts/Resources/Events/ActivateEvent.cs" id="10_wffoc"]
[ext_resource type="PackedScene" uid="uid://dqr6myj0yaqvd" path="res://Scenes/Interactable/ScriptableMovementSensorLonger.tscn" id="11_wmiud"]

[sub_resource type="Resource" id="Resource_00xb4"]
script = ExtResource("10_wffoc")
ActivationType = 1
Targets = Array[NodePath]([NodePath("../WallEmitter"), NodePath("../WallEmitter2"), NodePath("../WallEmitter3")])
WaitForCompletion = true
metadata/_custom_type_script = "uid://bwox5lmgiijcs"

[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
vertices = PackedVector2Array(474, 58, 474, 10, 486, 10, 486, 58, 794, 58, 794, 10, 806, 10, 806, 58, 934, 58, 934, 134, 806, 134, 794, 134, 806, 150, 794, 150, 486, 134, 474, 134, 486, 150, 474, 150, 166, 58, 166, 134, 166, 150, 154, 150, 154, 134, 154, 58, 26, 134, 26, 58, 166, 10, 154, 10)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(4, 5, 6, 7), PackedInt32Array(7, 8, 9, 10), PackedInt32Array(4, 7, 10, 11), PackedInt32Array(10, 12, 13, 11), PackedInt32Array(3, 4, 11, 14), PackedInt32Array(0, 3, 14, 15), PackedInt32Array(14, 16, 17, 15), PackedInt32Array(18, 0, 15, 19), PackedInt32Array(19, 20, 21, 22), PackedInt32Array(18, 19, 22, 23), PackedInt32Array(22, 24, 25, 23), PackedInt32Array(26, 18, 23, 27)])
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_5bd7y"]
size = Vector2(909, 245)

[sub_resource type="AtlasTexture" id="AtlasTexture_wvfe8"]
atlas = ExtResource("9_7q6f1")
region = Rect2(0, 0, 16, 16)

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

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

[node name="Liquids" type="TileMapLayer" parent="Tilemaps"]
tile_map_data = PackedByteArray("AAASAAoAAAAJAAcAAAASAAsAAAAEAAMAAAASAAwAAAAEAAMAAAATAAoAAAAJAAcAAAATAAsAAAAEAAMAAAATAAwAAAAEAAMAAAAUAAoAAAAJAAcAAAAUAAsAAAAEAAMAAAAUAAwAAAAEAAMAAAAVAAoAAAAJAAcAAAAVAAsAAAAEAAMAAAAVAAwAAAAEAAMAAAA=")
tile_set = ExtResource("3_wmiud")

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

[node name="Solid" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("[encoded data, 10820 characters]")
tile_set = ExtResource("3_wmiud")
navigation_enabled = false
metadata/_edit_lock_ = true

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

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

[node name="BigTankHorizontal" parent="Tilemaps/Actors" instance=ExtResource("5_0tpnm")]
position = Vector2(304, 81)

[node name="BigTankHorizontal2" parent="Tilemaps/Actors" instance=ExtResource("5_0tpnm")]
position = Vector2(338, 81)

[node name="WallEmitter" parent="Tilemaps/Actors" instance=ExtResource("6_4efvr")]
position = Vector2(248, 116)
BulletResource = ExtResource("7_nhpte")
EmitCoolDown = 0.5
BurstCoolDown = 0.0

[node name="WallEmitter2" parent="Tilemaps/Actors" instance=ExtResource("6_4efvr")]
position = Vector2(264, 116)
BulletResource = ExtResource("7_nhpte")
EmitCoolDown = 0.5
BurstCoolDown = 0.0

[node name="WallEmitter3" parent="Tilemaps/Actors" instance=ExtResource("6_4efvr")]
position = Vector2(278, 116)
BulletResource = ExtResource("7_nhpte")
EmitCoolDown = 0.5
BurstCoolDown = 0.0

[node name="MovementSensorLonger" parent="Tilemaps/Actors" instance=ExtResource("11_wmiud")]
position = Vector2(216, 119)
Events = Array[ExtResource("9_4efvr")]([SubResource("Resource_00xb4")])

[node name="MovementSensorLonger2" parent="Tilemaps/Actors" instance=ExtResource("11_wmiud")]
position = Vector2(395, 117)
Events = Array[ExtResource("9_4efvr")]([SubResource("Resource_00xb4")])

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

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

[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerEnterDetector"]
position = Vector2(480.5, 174.5)
shape = SubResource("RectangleShape2D_5bd7y")

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

[node name="RogueliteEnemySpawner6" type="Marker2D" parent="EnemySpawners"]
position = Vector2(161, 170)
script = ExtResource("5_j6t4s")
Enemy = ExtResource("6_ko1fq")

[node name="RogueliteEnemySpawner7" type="Marker2D" parent="EnemySpawners"]
position = Vector2(363, 192)
script = ExtResource("5_j6t4s")
Enemy = ExtResource("7_4efvr")

[node name="RogueliteEnemySpawner10" type="Marker2D" parent="EnemySpawners"]
position = Vector2(321, 151)
script = ExtResource("5_j6t4s")
Enemy = ExtResource("7_4efvr")

[node name="RogueliteEnemySpawner8" type="Marker2D" parent="EnemySpawners"]
position = Vector2(423, 142)
script = ExtResource("5_j6t4s")
Enemy = ExtResource("6_ko1fq")

[node name="RogueliteEnemySpawner9" type="Marker2D" parent="EnemySpawners"]
position = Vector2(584, 198)
script = ExtResource("5_j6t4s")
Enemy = ExtResource("7_4efvr")

[node name="RogueliteEnemySpawner11" type="Marker2D" parent="EnemySpawners"]
position = Vector2(715, 146)
script = ExtResource("5_j6t4s")
Enemy = ExtResource("7_4efvr")

[node name="RogueliteEnemySpawner12" type="Marker2D" parent="EnemySpawners"]
position = Vector2(823, 107)
script = ExtResource("5_j6t4s")
Enemy = ExtResource("7_4efvr")

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

[node name="Chest" type="Marker2D" parent="Features"]
position = Vector2(344, 103)
script = ExtResource("8_nhpte")
MarkerTexture = SubResource("AtlasTexture_wvfe8")
SpawnChance = 10.0

[node name="Chest5" type="Marker2D" parent="Features"]
position = Vector2(843, 120)
script = ExtResource("8_nhpte")
MarkerTexture = SubResource("AtlasTexture_wvfe8")
SpawnChance = 10.0

[node name="Chest6" type="Marker2D" parent="Features"]
position = Vector2(841, 231)
script = ExtResource("8_nhpte")
MarkerTexture = SubResource("AtlasTexture_wvfe8")
SpawnChance = 10.0

[node name="Chest7" type="Marker2D" parent="Features"]
position = Vector2(616, 216)
script = ExtResource("8_nhpte")
MarkerTexture = SubResource("AtlasTexture_wvfe8")
SpawnChance = 10.0

[node name="Chest8" type="Marker2D" parent="Features"]
position = Vector2(266, 215)
script = ExtResource("8_nhpte")
MarkerTexture = SubResource("AtlasTexture_wvfe8")
SpawnChance = 10.0

[node name="Chest9" type="Marker2D" parent="Features"]
position = Vector2(184, 227)
script = ExtResource("8_nhpte")
MarkerTexture = SubResource("AtlasTexture_wvfe8")
SpawnChance = 10.0

[node name="Chest2" type="Marker2D" parent="Features"]
position = Vector2(653, 136)
script = ExtResource("8_nhpte")
MarkerTexture = SubResource("AtlasTexture_wvfe8")
SpawnChance = 10.0

[node name="Chest4" type="Marker2D" parent="Features"]
position = Vector2(296, 104)
script = ExtResource("8_nhpte")
MarkerTexture = SubResource("AtlasTexture_wvfe8")
SpawnChance = 10.0

[node name="Chest3" type="Marker2D" parent="Features"]
position = Vector2(580, 136)
script = ExtResource("8_nhpte")
MarkerTexture = SubResource("AtlasTexture_wvfe8")
SpawnChance = 10.0

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