[gd_scene load_steps=15 format=4 uid="uid://dcxrdhq1yw5c7"]

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_cak6m"]
[ext_resource type="Resource" uid="uid://ly8l7asedjpx" path="res://Resources/RogueliteMaps/TestRGMap2.tres" id="2_cak6m"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="3_f7qjl"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="4_wtdf1"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="5_f7qjl"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="7_hgeju"]
[ext_resource type="Resource" uid="uid://cocl3qontm3be" path="res://Resources/Enemies/Base_Fairy.tres" id="7_wtdf1"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="8_qe4tn"]
[ext_resource type="Script" uid="uid://g6oraxgd87ij" path="res://Scripts/Actors/TeleporterMarker.cs" id="9_sbfh4"]
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="10_86nbh"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_f7qjl"]
vertices = PackedVector2Array(166, 54, 154, 54, 154, 10, 166, 10, 294, 68, 294, 118, 280, 118, 264, 116, 264, 70, 264, 68, 216, 70, 186, 58, 264, 58, 186, 122, 216, 116, 280, 134, 166, 134, 134, 122, 154, 134, 166, 150, 154, 150, 120, 134, 120, 118, 134, 58, 120, 68, 88, 118, 88, 134, 40, 134, 40, 102, 26, 102, 26, 68, 120, 58)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(4, 5, 6, 7, 8), PackedInt32Array(9, 4, 8, 10), PackedInt32Array(11, 12, 9, 10), PackedInt32Array(13, 11, 10, 14), PackedInt32Array(14, 7, 6, 15, 16, 13), PackedInt32Array(17, 13, 16, 18), PackedInt32Array(16, 19, 20, 18), PackedInt32Array(17, 18, 21, 22), PackedInt32Array(23, 17, 22, 24), PackedInt32Array(25, 26, 27, 28), PackedInt32Array(28, 29, 30, 24), PackedInt32Array(25, 28, 24, 22), PackedInt32Array(23, 24, 31)])
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_wtdf1"]
size = Vector2(272, 85)

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

[sub_resource type="AtlasTexture" id="AtlasTexture_qldan"]
atlas = ExtResource("10_86nbh")
region = Rect2(0, 0, 16, 16)

[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
process_mode = 1
script = ExtResource("1_cak6m")
RoomResource = ExtResource("2_cak6m")
RoomClearActivation = []
metadata/test_scene = "res://Scenes/Maps/Roguelike.tscn"

[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("AAAAAAIABwALAA4AAAAAAAMABwALAA4AAAAAAAQABwALAA4AAAAAAAUABwAKAA4AAAAAAAYABwALAA4AAAAAAAcABwALAA4AAAAAAAgABwAKAA4AAAAAAAkABwAKAA4AAAABAAIABwALAA4AAAABAAMABwALAAQAAAABAAQABwALAAQAAAABAAUABwALAAQAAAABAAYABwALAAQAAAABAAcABwALAAQAAAABAAgABwALAAQAAAABAAkABwALAA4AAAACAAIABwAKAA4AAAACAAMABwAKAAQAAAACAAQABwALAA4AAAACAAUABwAKAA4AAAACAAYABwALAA4AAAACAAcABwALAA4AAAACAAgABwALAAQAAAACAAkABwAKAA4AAAADAAIABwAKAA4AAAADAAMABwALAAQAAAADAAQABwALAA4AAAADAAUABwALAA4AAAADAAYABwAKAA4AAAADAAcABwAKAA4AAAADAAgABwAKAA4AAAADAAkABwAKAA4AAAAEAAIABwAKAA4AAAAEAAMABwAKAAQAAAAEAAQABwALAA4AAAAEAAUABwAKAA4AAAAEAAYABwAKAA4AAAAEAAcACAABAAAAAAAEAAgACAABAAAAAAAEAAkABwAKAA4AAAAFAAIABwAKAA4AAAAFAAMABwAKAAQAAAAFAAQABwAKAA4AAAAFAAUABwAKAA4AAAAFAAYABwAKAA4AAAAFAAcACAABAAAAAAAFAAgACAABAAAAAAAFAAkABwAKAA4AAAAGAAIABwALAA4AAAAGAAMABwALAAQAAAAGAAQABwALAA4AAAAGAAUABwALAA4AAAAGAAYABwALAA4AAAAGAAcACAABAAAAAAAGAAgACAABAAAAAAAGAAkABwAKAA4AAAAHAAIABwALAA4AAAAHAAMABwALAAQAAAAHAAQABwALAA4AAAAHAAUABwAKAA4AAAAHAAYABwALAA4AAAAHAAcABwALAA4AAAAHAAgABwALAA4AAAAHAAkABwALAA4AAAAIAAIABwALAA4AAAAIAAMABwAKAAQAAAAIAAQABwALAA4AAAAIAAUABwALAA4AAAAIAAYABwALAA4AAAAIAAcABwAKAA4AAAAIAAgABwAKAAQAAAAIAAkABwAKAA4AAAAJAAIABwAKAA4AAAAJAAMABwAKAA4AAAAJAAQABwAKAA4AAAAJAAgABwAKAAQAAAAJAAkABwALAA4AAAAKAAIABwAKAA4AAAAKAAMABwALAA4AAAAKAAQABwAKAA4AAAAKAAgABwALAAQAAAAKAAkABwAKAA4AAAALAAIABwALAA4AAAALAAUABwALAA4AAAALAAYABwAKAA4AAAALAAcABwALAA4AAAALAAgABwAKAAQAAAALAAkABwALAA4AAAAMAAUABwAKAA4AAAAMAAYABwAKAA4AAAAMAAcABwALAA4AAAAMAAgABwALAAQAAAAMAAkABwAKAA4AAAANAAIABwAKAA4AAAANAAMABwALAAQAAAANAAQABwALAA4AAAANAAUABwALAA4AAAANAAYABwAKAA4AAAANAAcABwAKAA4AAAANAAgABwALAAQAAAANAAkABwALAA4AAAAOAAIABwALAA4AAAAOAAMACAABAAAAAAAOAAQACAABAAAAAAAOAAUABwALAA4AAAAOAAYABwAKAA4AAAAOAAcABwALAA4AAAAOAAgABwAKAAQAAAAOAAkABwAKAA4AAAAPAAIABwALAA4AAAAPAAMACAABAAAAAAAPAAQACAABAAAAAAAPAAUABwALAA4AAAAPAAYABwAKAA4AAAAPAAcABwALAA4AAAAPAAgABwALAAQAAAAPAAkABwAKAA4AAAAQAAIABwALAA4AAAAQAAMACAABAAAAAAAQAAQACAABAAAAAAAQAAUABwALAA4AAAAQAAYABwAKAA4AAAAQAAcABwALAA4AAAAQAAgABwALAAQAAAAQAAkABwALAA4AAAARAAIABwAKAA4AAAARAAMABwAKAAQAAAARAAQABwAKAA4AAAARAAUABwAKAA4AAAARAAYABwAKAA4AAAARAAcABwALAA4AAAARAAgABwAKAAQAAAARAAkABwALAA4AAAASAAIABwAKAA4AAAASAAMABwAKAAQAAAASAAQABwAKAAQAAAASAAUABwAKAAQAAAASAAYABwALAAQAAAASAAcABwALAAQAAAASAAgABwALAAQAAAASAAkABwALAA4AAAATAAIABwAKAA4AAAATAAMABwAKAA4AAAATAAQABwALAA4AAAATAAUABwALAA4AAAATAAYABwALAA4AAAATAAcABwALAA4AAAATAAgABwALAA4AAAATAAkABwALAA4AAAAAAAAABwALAA4AAAAAAAEABwAKAA4AAAABAAAABwALAA4AAAABAAEABwALAA4AAAACAAAABwAKAA4AAAACAAEABwALAA4AAAADAAAABwAKAA4AAAADAAEABwAKAA4AAAAEAAAABwALAA4AAAAEAAEABwALAA4AAAAFAAAABwAKAA4AAAAFAAEABwALAA4AAAAGAAAABwAKAA4AAAAGAAEABwAKAA4AAAAHAAAABwAKAA4AAAAHAAEABwAKAA4AAAAIAAAABwAKAA4AAAAIAAEABwALAA4AAAAJAAAABwALAA4AAAAJAAEABwAKAA4AAAAKAAAABwALAA4AAAAKAAEABwAKAA4AAAALAAAABwALAA4AAAALAAEABwALAA4AAAALAAMABwAKAA4AAAALAAQABwALAA4AAAAMAAAABwAKAA4AAAAMAAEABwAKAA4AAAAMAAQABwAKAA4AAAANAAAABwAKAA4AAAANAAEABwALAA4AAAAOAAAABwAKAA4AAAAOAAEABwALAA4AAAAPAAAABwAKAA4AAAAPAAEABwALAA4AAAAQAAAABwAKAA4AAAAQAAEABwALAA4AAAARAAAABwALAA4AAAARAAEABwAKAA4AAAASAAAABwAKAA4AAAASAAEABwAKAA4AAAATAAAABwALAA4AAAATAAEABwALAA4AAAAJAAUABwALAA4AAAAJAAYABwAKAA4AAAAJAAcABwAKAA4AAAAKAAUABwALAA4AAAAKAAYABwAKAA4AAAAKAAcABwAKAA4AAAAMAAIABwAKAA4AAAAMAAMABwAKAA4AAAA=")
tile_set = ExtResource("3_f7qjl")
navigation_enabled = false
script = ExtResource("4_wtdf1")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true
metadata/_edit_group_ = true

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

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

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

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

[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_wtdf1")

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

[node name="Chest" type="Marker2D" parent="Features"]
position = Vector2(280, 135)
script = ExtResource("7_hgeju")
MarkerTexture = SubResource("AtlasTexture_sbfh4")
SpawnChance = 10.0

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

[node name="Teleporter" type="Marker2D" parent="Features"]
position = Vector2(87, 136)
script = ExtResource("9_sbfh4")
MarkerTexture = SubResource("AtlasTexture_qldan")

[node name="Teleporter2" type="Marker2D" parent="Features"]
position = Vector2(248, 56)
script = ExtResource("9_sbfh4")
MarkerTexture = SubResource("AtlasTexture_qldan")

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

[node name="RogueliteEnemySpawner6" type="Marker2D" parent="EnemySpawners"]
position = Vector2(248, 55)
script = ExtResource("5_f7qjl")
Enemy = ExtResource("7_wtdf1")

[node name="RogueliteEnemySpawner7" type="Marker2D" parent="EnemySpawners"]
position = Vector2(87, 134)
script = ExtResource("5_f7qjl")
Enemy = ExtResource("7_wtdf1")

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