[gd_scene load_steps=10 format=4 uid="uid://j71ehkbbalh2"]

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_08gfs"]
[ext_resource type="Resource" uid="uid://crqgvauqarfaq" path="res://Resources/RogueliteMaps/TreasureRoom1.tres" id="2_08gfs"]
[ext_resource type="Script" uid="uid://g6oraxgd87ij" path="res://Scripts/Actors/TeleporterMarker.cs" id="5_3v6so"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_ojht1"]
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="6_08gfs"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_jf212"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
vertices = PackedVector2Array(166, 58, 294, 58, 294, 134, 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(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_rlq0q"]
size = Vector2(272, 85)

[sub_resource type="AtlasTexture" id="AtlasTexture_sadsx"]
atlas = ExtResource("6_08gfs")
region = Rect2(0, 0, 16, 16)

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

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

[node name="Props" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("AAAPAAIAAAAJAAwAAAAPAAMAAAAJAA0AAAALAAEAAAAJAAwAAAALAAIAAAAJAA0AAAAAAAMAAAAKAA4AAAAAAAQAAAAKAA8AAAATAAMAAAAKAA4AAAATAAQAAAAKAA8AAAAEAAIAAAAKAAwAAAAEAAMAAAAKAA0AAAAIAAEAAAAKAAwAAAAIAAIAAAAKAA0AAAAJAAUAAAAGAAAAAAAKAAUAAAAHAAAAAAA=")
tile_set = ExtResource("5_ojht1")
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="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="Treasures" type="Node2D" parent="."]

[node name="Marker2D" type="Marker2D" parent="Treasures"]
position = Vector2(161, 86)

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

[node name="Teleporter" type="Marker2D" parent="Features"]
position = Vector2(230, 56)
script = ExtResource("5_3v6so")
Type = 3
MarkerTexture = SubResource("AtlasTexture_sadsx")

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