[gd_scene load_steps=12 format=4 uid="uid://da7hmajaaiohm"]

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_dm6kf"]
[ext_resource type="Resource" uid="uid://b5x83li01qrav" path="res://Resources/RogueliteMaps/TestRGMap.tres" id="2_5s4nm"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="5_b5lqw"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_q5p8k"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_81nvh"]
[ext_resource type="Resource" uid="uid://cocl3qontm3be" path="res://Resources/Enemies/Base_Fairy.tres" id="6_rlq0q"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="7_kfj8c"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="8_t4u8v"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
vertices = PackedVector2Array(217, 102, 217, 134, 166, 134, 120, 120, 120, 70, 154, 58, 166, 58, 265, 58, 265, 72, 264, 102, 294, 72, 294, 134, 264, 134, 166, 150, 154, 150, 154, 134, 40, 134, 73, 120, 73, 70, 40, 118, 56, 72, 26, 118, 26, 72, 56, 58, 154, 10, 166, 10)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4, 5, 6), PackedInt32Array(0, 6, 7, 8, 9), PackedInt32Array(8, 10, 11, 12, 9), PackedInt32Array(2, 13, 14, 15), PackedInt32Array(3, 2, 15), PackedInt32Array(3, 15, 16, 17), PackedInt32Array(18, 17, 16, 19, 20), PackedInt32Array(19, 21, 22, 20), PackedInt32Array(18, 20, 23, 5), PackedInt32Array(4, 18, 5), PackedInt32Array(5, 24, 25, 6)])
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_rlq0q"]
size = Vector2(272, 85)

[sub_resource type="AtlasTexture" id="AtlasTexture_3qg2l"]
atlas = ExtResource("8_t4u8v")
region = Rect2(0, 0, 16, 16)

[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
process_mode = 1
script = ExtResource("1_dm6kf")
RoomResource = ExtResource("2_5s4nm")
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("AAAAAAIABgAAAAEAAAAAAAMABgAAAAEAAAAAAAQABgAAAAEAAAAAAAUABwAOAAoAAAAAAAYABgAAAAEAAAAAAAcABgAAAAEAAAAAAAgABgAAAAEAAAAAAAkABgAAAAEAAAABAAIABgAAAAEAAAABAAMABwAOAAoAAAABAAQABwAOAAoAAAABAAUABwAOAAoAAAABAAYABwAOAAoAAAABAAcABwAOAAoAAAABAAgABwAOAAoAAAABAAkABgAAAAEAAAACAAIABgAAAAEAAAACAAMABwAOAAoAAAACAAQABwAOAAYAAAACAAUABwAOAAYAAAACAAYABwAOAAYAAAACAAcABwAOAAYAAAACAAgABwAOAAoAAAACAAkABgAAAAEAAAADAAIABgAAAAEAAAADAAMABwAOAAoAAAADAAQABwAOAAYAAAADAAUABwAOAAYAAAADAAYABwAOAAYAAAADAAcABwAOAAYAAAADAAgABwAOAAoAAAADAAkABgAAAAEAAAAEAAIABgAAAAEAAAAEAAMABwAOAAoAAAAEAAQABwAOAAYAAAAEAAUABwAOAAYAAAAEAAYABwAOAAYAAAAEAAcABwAOAAYAAAAEAAgABwAOAAoAAAAEAAkABgAAAAEAAAAFAAIABgAAAAEAAAAFAAMABwAOAAoAAAAFAAQABwAOAAYAAAAFAAUABwAOAAYAAAA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cABwAOAAYAAAAOAAgABwAOAAoAAAAOAAkABgAAAAEAAAAPAAIABgAAAAEAAAAPAAMABwAOAAoAAAAPAAQABwAOAAYAAAAPAAUABwAOAAYAAAAPAAYABwAOAAYAAAAPAAcABwAOAAYAAAAPAAgABwAOAAoAAAAPAAkABgAAAAEAAAAQAAIABgAAAAEAAAAQAAMABwAOAAoAAAAQAAQABwAOAAYAAAAQAAUABwAOAAYAAAAQAAYABwAOAAYAAAAQAAcABwAOAAYAAAAQAAgABwAOAAoAAAAQAAkABgAAAAEAAAARAAIABgAAAAEAAAARAAMABwAOAAoAAAARAAQABwAOAAYAAAARAAUABwAOAAYAAAARAAYABwAOAAYAAAARAAcABwAOAAYAAAARAAgABwAOAAoAAAARAAkABgAAAAEAAAASAAIABgAAAAEAAAASAAMABwAOAAoAAAASAAQABwAOAAoAAAASAAUABwAOAAoAAAASAAYABwAOAAoAAAASAAcABwAOAAoAAAASAAgABwAOAAoAAAASAAkABgAAAAEAAAATAAIABgAAAAEAAAATAAMABgAAAAEAAAATAAQABgAAAAEAAAATAAUABwAOAAoAAAATAAYABgAAAAEAAAATAAcABgAAAAEAAAATAAgABgAAAAEAAAATAAkABgAAAAEAAAAAAAAABgAAAAEAAAAAAAEABgAAAAEAAAABAAAABgAAAAEAAAABAAEABgAAAAEAAAACAAAABgAAAAEAAAACAAEABgAAAAEAAAADAAAABgAAAAEAAAADAAEABgAAAAEAAAAEAAAABgAAAAEAAAAEAAEABgAAAAEAAAAFAAAABgAAAAEAAAAFAAEABgAAAAEAAAAGAAAABgAAAAEAAAAGAAEABgAAAAEAAAAHAAAABgAAAAEAAAAHAAEABgAAAAEAAAAIAAAABgAAAAEAAAAIAAEABgAAAAEAAAAJAAAABwAOAAoAAAAJAAEABwAOAAoAAAAKAAAABwAOAAoAAAAKAAEABwAOAAoAAAALAAAABgAAAAEAAAALAAEABgAAAAEAAAALAAMABwAOAAoAAAALAAQABwAOAAYAAAAMAAAABgAAAAEAAAAMAAEABgAAAAEAAAAMAAMABwAOAAoAAAAMAAQABwAOAAYAAAANAAAABgAAAAEAAAANAAEABgAAAAEAAAAOAAAABgAAAAEAAAAOAAEABgAAAAEAAAAPAAAABgAAAAEAAAAPAAEABgAAAAEAAAAQAAAABgAAAAEAAAAQAAEABgAAAAEAAAARAAAABgAAAAEAAAARAAEABgAAAAEAAAASAAAABgAAAAEAAAASAAEABgAAAAEAAAATAAAABgAAAAEAAAATAAEABgAAAAEAAAA=")
tile_set = ExtResource("5_q5p8k")
navigation_enabled = false
script = ExtResource("6_81nvh")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

[node name="Solid" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("AAATAAAAAAABAAsAAAASAAAAAAABAAQAAAARAAAAAAABAAQAAAAQAAAAAAABAAQAAAAPAAAAAAABAAQAAAAOAAAAAAABAAQAAAANAAAAAAABAAQAAAAMAAAAAAABAAQAAAALAAAAAAACAAQAAAAIAAAAAAADAAQAAAAHAAAAAAABAAQAAAAGAAAAAAABAAQAAAAFAAAAAAABAAQAAAAEAAAAAAABAAQAAAADAAAAAAABAAQAAAACAAAAAAABAAQAAAABAAAAAAABAAQAAAAAAAAAAAAAAAsAAAATAAIAAAAEAAQAAAATAAEAAAAAAAQAAAAAAAIAAAAEAAQAAAAAAAEAAAAAAAQAAAAAAAkAAAAAAAwAAAAAAAgAAAAAAAQAAAAAAAcAAAAAAAQAAAAAAAYAAAAFAAQAAAATAAkAAAABAAwAAAASAAkAAAABAAQAAAARAAkAAAABAAQAAAAQAAkAAAABAAQAAAAPAAkAAAABAAQAAAAOAAkAAAABAAQAAAANAAkAAAABAAQAAAAMAAkAAAABAAQAAAALAAkAAAACAAQAAAAIAAkAAAADAAQAAAAHAAkAAAABAAQAAAAGAAkAAAABAAQAAAAFAAkAAAABAAQAAAAEAAkAAAABAAQAAAADAAkAAAABAAQAAAACAAkAAAABAAQAAAABAAkAAAABAAQAAAATAAgAAAAAAAQAAAATAAcAAAAAAAQAAAATAAYAAAAFAAQAAAATAAMAAAAPAAgAAAATAAQAAAAPAAkAAAALAAEAAAAPAAgAAAALAAIAAAAPAAkAAAAMAAEAAAAPAAgAAAAMAAIAAAAPAAkAAAANAAEAAAAPAAgAAAANAAIAAAAPAAkAAAAOAAEAAAAPAAgAAAAOAAIAAAAPAAkAAAAPAAEAAAAPAAgAAAAPAAIAAAAPAAkAAAAQAAEAAAAPAAgAAAAQAAIAAAAPAAkAAAARAAEAAAAPAAgAAAARAAIAAAAPAAkAAAASAAEAAAAPAAgAAAASAAIAAAAPAAkAAAABAAEAAAAPAAgAAAABAAIAAAAPAAkAAAACAAEAAAAPAAgAAAACAAIAAAAPAAkAAAADAAEAAAAPAAgAAAADAAIAAAAPAAkAAAAEAAEAAAAPAAgAAAAEAAIAAAAPAAkAAAAFAAEAAAAPAAgAAAAFAAIAAAAPAAkAAAAGAAEAAAAPAAgAAAAGAAIAAAAPAAkAAAAHAAEAAAAPAAgAAAAHAAIAAAAPAAkAAAAIAAEAAAAPAAgAAAAIAAIAAAAPAAkAAAAAAAMAAAAPAAgAAAAAAAQAAAAPAAkAAAA=")
tile_set = ExtResource("5_q5p8k")
navigation_enabled = false
metadata/_edit_lock_ = true

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

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

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

[node name="RogueliteEnemySpawner3" type="Marker2D" parent="EnemySpawners"]
position = Vector2(198, 79)
script = ExtResource("5_b5lqw")
Enemy = ExtResource("6_rlq0q")

[node name="RogueliteEnemySpawner4" type="Marker2D" parent="EnemySpawners"]
position = Vector2(88, 65)
script = ExtResource("5_b5lqw")
Enemy = ExtResource("6_rlq0q")

[node name="RogueliteEnemySpawner5" type="Marker2D" parent="EnemySpawners"]
position = Vector2(269, 134)
script = ExtResource("5_b5lqw")
Enemy = ExtResource("6_rlq0q")

[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(162, 94.5)
shape = SubResource("RectangleShape2D_rlq0q")

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

[node name="Chest" type="Marker2D" parent="Features"]
position = Vector2(296, 136)
script = ExtResource("7_kfj8c")
MarkerTexture = SubResource("AtlasTexture_3qg2l")
SpawnChance = 10.0

[node name="Chest2" type="Marker2D" parent="Features"]
position = Vector2(40, 135)
script = ExtResource("7_kfj8c")
MarkerTexture = SubResource("AtlasTexture_3qg2l")
SpawnChance = 10.0

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