[gd_scene load_steps=25 format=4 uid="uid://bn7jvgl1pivrw"]

[ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_euyi4"]
[ext_resource type="PackedScene" uid="uid://c4pr2707hbeph" path="res://Scenes/Actors/fsm_player.tscn" id="2_0tfiy"]
[ext_resource type="Resource" uid="uid://d1rd3eep3b0jj" path="res://Resources/Maps/ReimuTest.tres" id="2_byylp"]
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="6_gq70c"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="7_nuv7a"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="8_bu7tm"]
[ext_resource type="Script" uid="uid://o7euvh7co21t" path="res://Scripts/Actors/BossSpawner.cs" id="9_g001y"]
[ext_resource type="PackedScene" uid="uid://bwlstkdibs7oc" path="res://Scenes/HUD/BossHud.tscn" id="10_3mpv1"]
[ext_resource type="Script" uid="uid://cdd6q2h0t1hhq" path="res://Scripts/Resources/BossPhase.cs" id="11_tq35g"]
[ext_resource type="Resource" uid="uid://ccj0cqbveey8c" path="res://Resources/BossPhases/Rumia_SP1.tres" id="12_4gbfa"]
[ext_resource type="Texture2D" uid="uid://begjak1f47840" path="res://Sprites/Expression/Rumia/Rumia05_resized.png" id="13_6lxac"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="14_byylp"]
[ext_resource type="Script" uid="uid://inasa76li3ym" path="res://Scripts/Resources/ScriptableBullets/BossScript.cs" id="14_r5gdi"]
[ext_resource type="PackedScene" uid="uid://d1rlw6ddpmrn8" path="res://Scenes/Actors/Rumia.tscn" id="15_dwv4a"]
[ext_resource type="Resource" uid="uid://bqdvyxs8sj3qa" path="res://Resources/Enemies/Reimu_Boss.tres" id="15_gq70c"]
[ext_resource type="Resource" uid="uid://da1vjfavqs7u2" path="res://Resources/BossPhases/Marisa/marisa_ns1.tres" id="16_668yx"]
[ext_resource type="Script" uid="uid://upq0b4sx7nhw" path="res://Scripts/Misc/CameraTarget.cs" id="19_byylp"]
[ext_resource type="PackedScene" uid="uid://bmif3jo03yuol" path="res://Scenes/camera_controller.tscn" id="19_gq70c"]
[ext_resource type="Script" uid="uid://c5nxsq3tyxcx6" path="res://Scripts/InventoryManager.cs" id="20_n7hrk"]
[ext_resource type="PackedScene" uid="uid://dkwi1hu1bixoe" path="res://Scenes/HUD/HUD.tscn" id="21_q2qf2"]
[ext_resource type="Script" uid="uid://cnkipcolyj61w" path="res://Scripts/AlarmManager.cs" id="23_2m6j7"]
[ext_resource type="PackedScene" uid="uid://b3tyacxxw88lx" path="res://Scenes/Utils/StreamPlayerWithName.tscn" id="24_0c4nh"]

[sub_resource type="Resource" id="Resource_cfs7m"]
script = ExtResource("14_r5gdi")
BossName = &"Rumia"
Phases = Array[ExtResource("11_tq35g")]([ExtResource("12_4gbfa")])
PortraitTexture = ExtResource("13_6lxac")
HudPrefab = ExtResource("10_3mpv1")
metadata/_custom_type_script = "uid://inasa76li3ym"

[sub_resource type="Resource" id="Resource_4ge3h"]
script = ExtResource("14_r5gdi")
BossName = &"Rumia"
Phases = Array[ExtResource("11_tq35g")]([ExtResource("16_668yx")])
PortraitTexture = ExtResource("13_6lxac")
HudPrefab = ExtResource("10_3mpv1")
metadata/_custom_type_script = "uid://inasa76li3ym"

[node name="GameScene" type="Node2D"]
process_mode = 3
script = ExtResource("1_euyi4")
MapResource = ExtResource("2_byylp")
PlayerTemplate = ExtResource("2_0tfiy")
SpawnMarkers = Dictionary[int, NodePath]({
0: NodePath("PlayerStartPosition")
})

[node name="Tilemaps" type="Node2D" parent="."]
process_mode = 1

[node name="Floor" type="TileMapLayer" parent="Tilemaps" node_paths=PackedStringArray("_solidLayers") groups=["Solid"]]
tile_map_data = PackedByteArray("[encoded data, 5284 characters]")
tile_set = ExtResource("7_nuv7a")
script = ExtResource("8_bu7tm")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

[node name="Solid" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("[encoded data, 7124 characters]")
tile_set = ExtResource("7_nuv7a")
metadata/_edit_lock_ = true

[node name="Props" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_set = ExtResource("7_nuv7a")
metadata/_edit_lock_ = true

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

[node name="ControlPad" parent="Tilemaps/Actors" node_paths=PackedStringArray("Target") instance=ExtResource("6_gq70c")]
position = Vector2(74, 443)
Target = NodePath("../ReimuSpawner")

[node name="RumiaSpawnerSP1" type="Node2D" parent="Tilemaps/Actors"]
position = Vector2(127, 304)
script = ExtResource("9_g001y")
BossScript = SubResource("Resource_cfs7m")
ActorPrefab = ExtResource("15_dwv4a")

[node name="RumiaSpawnerNS1" type="Node2D" parent="Tilemaps/Actors"]
position = Vector2(127, 304)
script = ExtResource("9_g001y")
BossScript = SubResource("Resource_4ge3h")
ActorPrefab = ExtResource("15_dwv4a")

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

[node name="ReimuSpawner" type="Marker2D" parent="Tilemaps/Actors"]
position = Vector2(128, 335)
script = ExtResource("14_byylp")
Enemy = ExtResource("15_gq70c")

[node name="ReferenceRect" type="ReferenceRect" parent="."]
visible = false
offset_left = -38.0
offset_top = -39.0
offset_right = 124.0
offset_bottom = 44.0

[node name="InventoryManager" type="Node2D" parent="."]
script = ExtResource("20_n7hrk")

[node name="HUD" parent="." instance=ExtResource("21_q2qf2")]

[node name="CameraController" parent="." instance=ExtResource("19_gq70c")]
position = Vector2(115, 328)

[node name="CameraTarget" type="Node2D" parent="."]
position = Vector2(125, 441)
script = ExtResource("19_byylp")

[node name="PlayerStartPosition" type="Marker2D" parent="."]
position = Vector2(124, 452)

[node name="AlarmManager" type="Node2D" parent="."]
process_mode = 1
script = ExtResource("23_2m6j7")

[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("24_0c4nh")]
process_mode = 3
autoplay = true
