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

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_7v35i"]
[ext_resource type="Resource" uid="uid://char0yv78vtty" path="res://Resources/RogueliteMaps/BigTest2.tres" id="2_7v35i"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_0x325"]
[ext_resource type="PackedScene" uid="uid://b7gkxlll3b1eg" path="res://Scenes/Activable/FloorEmitter.tscn" id="5_ed0jw"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="5_fj3qi"]
[ext_resource type="PackedScene" uid="uid://cqi87wcxymbhx" path="res://Scenes/Props/Shelf.tscn" id="5_gx7sl"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="6_0x325"]
[ext_resource type="Resource" uid="uid://cmra7n6so1x4u" path="res://Resources/BulletScripts/Basic_Enemy_Emitter_Spiral_Bullets.tres" id="6_3eg8q"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_ed0jw"]
[ext_resource type="PackedScene" uid="uid://dqr6myj0yaqvd" path="res://Scenes/Interactable/ScriptableMovementSensorLonger.tscn" id="7_3eg8q"]
[ext_resource type="Script" uid="uid://b5fesrd4lv8t1" path="res://Scripts/Resources/Events/EventResource.cs" id="8_gx7sl"]
[ext_resource type="Script" uid="uid://bwox5lmgiijcs" path="res://Scripts/Resources/Events/ActivateEvent.cs" id="9_8eys0"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="9_gx7sl"]
[ext_resource type="Resource" uid="uid://qbo6avc7x64b" path="res://Resources/Enemies/Fairy_Guard.tres" id="10_8eys0"]
[ext_resource type="Resource" uid="uid://cqfyuurvqb8m6" path="res://Resources/Enemies/Base_Fairy_Special.tres" id="11_0igig"]

[sub_resource type="Resource" id="Resource_0igig"]
script = ExtResource("9_8eys0")
ActivationType = 1
Targets = Array[NodePath]([NodePath("../FloorEmitter")])
WaitForCompletion = true
metadata/_custom_type_script = "uid://bwox5lmgiijcs"

[sub_resource type="NavigationPolygon" id="NavigationPolygon_lrgk6"]
vertices = PackedVector2Array(486, 58, 614, 58, 614, 294, 486, 294, 378, 211, 378, 155, 166, 58, 179, 58, 179, 77, 254, 77, 254, 58, 474, 58, 376, 107, 324, 107, 474, 10, 486, 10, 376, 155, 324, 163, 326, 163, 326, 211, 314, 211, 314, 107, 262, 107, 486, 310, 474, 310, 474, 294, 246, 294, 246, 265, 262, 211, 200, 265, 200, 294, 166, 294, 154, 58, 166, 310, 154, 310, 154, 294, 26, 294, 26, 58, 154, 10, 166, 10)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4, 5), PackedInt32Array(6, 7, 8), PackedInt32Array(9, 10, 11, 12, 13), PackedInt32Array(11, 14, 15, 0), PackedInt32Array(12, 11, 0, 5, 16), PackedInt32Array(17, 18, 19, 20), PackedInt32Array(17, 20, 21, 13), PackedInt32Array(9, 13, 21), PackedInt32Array(9, 21, 22), PackedInt32Array(3, 23, 24, 25), PackedInt32Array(4, 3, 25), PackedInt32Array(19, 4, 25, 26, 27), PackedInt32Array(20, 19, 27), PackedInt32Array(28, 20, 27, 29), PackedInt32Array(29, 30, 31, 32, 6, 8), PackedInt32Array(31, 33, 34, 35), PackedInt32Array(35, 36, 37, 32), PackedInt32Array(31, 35, 32), PackedInt32Array(32, 38, 39, 6), PackedInt32Array(29, 8, 9, 22, 28)])
outlines = Array[PackedVector2Array]([PackedVector2Array(32, 42, 30, 31, 62, 27, 61, 38)])
parsed_collision_mask = 353
source_geometry_mode = 1

[sub_resource type="RectangleShape2D" id="RectangleShape2D_cgxuy"]
size = Vector2(588, 243)

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

[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
process_mode = 1
script = ExtResource("1_7v35i")
RoomResource = ExtResource("2_7v35i")
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("[encoded data, 12708 characters]")
tile_set = ExtResource("5_0x325")
navigation_enabled = false
script = ExtResource("6_ed0jw")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

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

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

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

[node name="Shelf" parent="Tilemaps/Actors" instance=ExtResource("5_gx7sl")]
position = Vector2(147, 144)

[node name="Shelf2" parent="Tilemaps/Actors" instance=ExtResource("5_gx7sl")]
position = Vector2(515, 144)

[node name="FloorEmitter" parent="Tilemaps/Actors" instance=ExtResource("5_ed0jw")]
position = Vector2(336, 172)
Script = ExtResource("6_3eg8q")
InvertSignal = true

[node name="MovementSensorLonger" parent="Tilemaps/Actors" instance=ExtResource("7_3eg8q")]
position = Vector2(440, 69)
Events = Array[ExtResource("8_gx7sl")]([SubResource("Resource_0igig")])

[node name="MovementSensorLonger2" parent="Tilemaps/Actors" instance=ExtResource("7_3eg8q")]
position = Vector2(232, 69)
Events = Array[ExtResource("8_gx7sl")]([SubResource("Resource_0igig")])

[node name="MovementSensorLonger3" parent="Tilemaps/Actors" instance=ExtResource("7_3eg8q")]
position = Vector2(232, 260)
Events = Array[ExtResource("8_gx7sl")]([SubResource("Resource_0igig")])

[node name="MovementSensorLonger4" parent="Tilemaps/Actors" instance=ExtResource("7_3eg8q")]
position = Vector2(439, 260)
Events = Array[ExtResource("8_gx7sl")]([SubResource("Resource_0igig")])

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

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

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

[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerEnterDetector"]
position = Vector2(320, 173.5)
shape = SubResource("RectangleShape2D_cgxuy")

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

[node name="Chest" type="Marker2D" parent="Features"]
position = Vector2(248, 55)
script = ExtResource("5_fj3qi")
MarkerTexture = SubResource("AtlasTexture_40w0p")
SpawnChance = 10.0

[node name="Chest2" type="Marker2D" parent="Features"]
position = Vector2(584, 183)
script = ExtResource("5_fj3qi")
MarkerTexture = SubResource("AtlasTexture_40w0p")
SpawnChance = 10.0

[node name="Chest3" type="Marker2D" parent="Features"]
position = Vector2(312, 55)
script = ExtResource("5_fj3qi")
MarkerTexture = SubResource("AtlasTexture_40w0p")
SpawnChance = 10.0

[node name="Chest4" type="Marker2D" parent="Features"]
position = Vector2(552, 151)
script = ExtResource("5_fj3qi")
MarkerTexture = SubResource("AtlasTexture_40w0p")
SpawnChance = 10.0

[node name="Chest5" type="Marker2D" parent="Features"]
position = Vector2(87, 150)
script = ExtResource("5_fj3qi")
MarkerTexture = SubResource("AtlasTexture_40w0p")
SpawnChance = 10.0

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

[node name="RogueliteEnemySpawner6" type="Marker2D" parent="EnemySpawners2"]
position = Vector2(58, 71)
script = ExtResource("9_gx7sl")
Enemy = ExtResource("10_8eys0")

[node name="RogueliteEnemySpawner7" type="Marker2D" parent="EnemySpawners2"]
position = Vector2(416, 149)
script = ExtResource("9_gx7sl")
Enemy = ExtResource("10_8eys0")

[node name="RogueliteEnemySpawner8" type="Marker2D" parent="EnemySpawners2"]
position = Vector2(82, 286)
script = ExtResource("9_gx7sl")
Enemy = ExtResource("10_8eys0")

[node name="RogueliteEnemySpawner9" type="Marker2D" parent="EnemySpawners2"]
position = Vector2(146, 179)
script = ExtResource("9_gx7sl")
Enemy = ExtResource("10_8eys0")

[node name="RogueliteEnemySpawner10" type="Marker2D" parent="EnemySpawners2"]
position = Vector2(319, 263)
script = ExtResource("9_gx7sl")
Enemy = ExtResource("11_0igig")

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