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

[ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_0k2rf"]
[ext_resource type="PackedScene" uid="uid://c4pr2707hbeph" path="res://Scenes/Actors/fsm_player.tscn" id="2_46boo"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_0k2rf"]
[ext_resource type="Resource" uid="uid://cs3ihltcn2166" path="res://Resources/Items/IcicleGun.tres" id="3_bjfex"]
[ext_resource type="Script" uid="uid://mja0rk7n2kln" path="res://Scripts/Resources/MapStartDataResource.cs" id="3_qa6ev"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="4_uj7dw"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="5_qhy0g"]
[ext_resource type="Script" uid="uid://cfya7sndh7vy2" path="res://Scenes/CameraController.gd" id="8_est8t"]
[ext_resource type="Script" uid="uid://c5nxsq3tyxcx6" path="res://Scripts/InventoryManager.cs" id="9_i4f3y"]
[ext_resource type="PackedScene" uid="uid://dkwi1hu1bixoe" path="res://Scenes/HUD/HUD.tscn" id="10_4kvo6"]
[ext_resource type="Script" uid="uid://bdshph801ac2i" path="res://Scenes/CameraTarget.gd" id="11_x37jo"]
[ext_resource type="Script" uid="uid://cnkipcolyj61w" path="res://Scripts/AlarmManager.cs" id="12_5u4sh"]
[ext_resource type="PackedScene" uid="uid://b3tyacxxw88lx" path="res://Scenes/Utils/StreamPlayerWithName.tscn" id="13_li8df"]

[sub_resource type="Resource" id="Resource_6wo78"]
script = ExtResource("3_qa6ev")
EggIndex = 0
StartingEquipment = []

[node name="GameScene" type="Node2D" node_paths=PackedStringArray("PlayerParentNode")]
process_mode = 3
script = ExtResource("1_0k2rf")
PlayerTemplate = ExtResource("2_46boo")
SpawnMarkers = Dictionary[int, NodePath]({
0: NodePath("PlayerStartPosition")
})
StartingEquipment = Array[ExtResource("3_0k2rf")]([ExtResource("3_bjfex")])
MapStartData = SubResource("Resource_6wo78")
PlayerParentNode = NodePath("Parallax2D/Tilemaps/PlayerParent")

[node name="Parallax2D" type="Parallax2D" parent="."]

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

[node name="Floor" type="TileMapLayer" parent="Parallax2D/Tilemaps" node_paths=PackedStringArray("_solidLayers")]
tile_map_data = PackedByteArray("[encoded data, 11444 characters]")
tile_set = ExtResource("4_uj7dw")
script = ExtResource("5_qhy0g")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

[node name="Solid" type="TileMapLayer" parent="Parallax2D/Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("[encoded data, 61092 characters]")
tile_set = ExtResource("4_uj7dw")
metadata/_edit_lock_ = true

[node name="Props" type="TileMapLayer" parent="Parallax2D/Tilemaps"]
tile_map_data = PackedByteArray("AAALABcAAQAAAAAAAQALABYAAQAAAAAAAQALABUAAQAAAAAAAQALABQAAQAAAAAAAQAEABYAAQAAAAAAAgAEABcAAQAAAAAADQAFABcAAQAAAAAAAgADABQAAQAAAAAAAgAJABcAAQAAAAAADwAJABYAAQAAAAAADwAKABYAAQAAAAAADwAKABUAAQAAAAAAEAAKABQAAQAAAAAAEAADABcAAQAAAAAAEAADABYAAQAAAAAADAAKABcAAQAAAAAACwAKABgAAQAAAAAACwALABgAAQAAAAAACwA=")
tile_set = ExtResource("4_uj7dw")
metadata/_edit_lock_ = true

[node name="PlayerParent" type="Node2D" parent="Parallax2D/Tilemaps"]

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

[node name="Beam Shadows" type="TileMapLayer" parent="Parallax2D/Tilemaps"]
modulate = Color(0, 0, 0, 0.396078)
tile_map_data = PackedByteArray("AAALABYAAwABAAIAAAAKABYAAwABAAIAAAAJABYAAwABAAIAAAAIABYAAwABAAMAAAAHABYAAwABAAIAAAAGABYAAwABAAIAAAAFABYAAwABAAIAAAAEABYAAwABAAIAAAADABYAAwABAAIAAAAIABcAAwACAAEAAAAIABgAAwACAAEAAAD0/xYAAwABAAIAAAD0/xcAAwACAAEAAAD0/xgAAwACAAEAAAD0/xkAAwACAAEAAAD0/xoAAwACAAEAAAD0/xsAAwACAAEAAAD0/xwAAwACAAEAAAD0/x0AAwACAAEAAAD0/x4AAwACAAEAAAD0/x8AAwACAAEAAAD0/yAAAwACAAEAAAD0/yEAAwACAAEAAADt/xYAAwABAAIAAADu/xYAAwABAAIAAADv/xYAAwABAAIAAADw/xYAAwABAAIAAADx/xYAAwABAAIAAADy/xYAAwABAAIAAADz/xYAAwABAAIAAAD1/xYAAwABAAIAAAD2/xYAAwABAAIAAAD3/xYAAwABAAIAAAD4/xYAAwABAAIAAAD5/xYAAwABAAIAAAD6/xYAAwABAAIAAAD7/xYAAwABAAIAAAD8/xYAAwABAAIAAAD9/xYAAwABAAIAAAD+/xYAAwABAAIAAAD//xYAAwABAAIAAAAAABYAAwABAAIAAAABABYAAwABAAIAAAACABYAAwABAAIAAADy/yMAAwABAAIAAADz/yMAAwABAAIAAAD0/yMAAwABAAIAAAD1/yMAAwABAAIAAAD2/yMAAwABAAIAAAD3/yMAAwABAAIAAAD4/yMAAwABAAIAAAD5/yMAAwABAAIAAAD6/yMAAwABAAIAAAD7/yMAAwABAAIAAAD8/yMAAwABAAIAAAD9/yMAAwABAAIAAAD+/yMAAwABAAIAAAD//yMAAwABAAIAAAAAACMAAwABAAIAAAABACMAAwABAAIAAAACACMAAwABAAIAAAADACMAAwABAAIAAAAEACMAAwABAAIAAAAFACMAAwABAAIAAAAGACMAAwABAAIAAAAHACMAAwABAAIAAAAIACMAAwACAAEAAAAJACMAAwABAAIAAAAKACMAAwABAAIAAAALACMAAwABAAIAAAAMACMAAwABAAIAAAANACMAAwABAAIAAAAOACMAAwABAAIAAAAPACMAAwABAAIAAAAQACMAAwABAAIAAAARACMAAwABAAIAAAASACMAAwABAAIAAAATACMAAwABAAIAAAAIABkAAwACAAEAAAAIABoAAwACAAEAAAAIABsAAwACAAEAAAAIABwAAwACAAEAAAAIAB0AAwACAAEAAAAIAB4AAwACAAEAAAAIAB8AAwACAAEAAAAIACAAAwACAAEAAAAIACEAAwACAAEAAAAIACIAAwACAAEAAAAIACQAAwACAAEAAAAIACUAAwACAAEAAAAIACYAAwACAAEAAAAXABYAAwABAAMAAAAXABcAAwACAAEAAAAXABgAAwACAAEAAAAXABkAAwACAAEAAAAXABoAAwACAAEAAAAXABsAAwACAAEAAAAYABYAAwABAAIAAAAZABYAAwABAAIAAAAaABYAAwABAAIAAAAbABYAAwABAAIAAAAcABYAAwABAAIAAAAdABYAAwABAAIAAAAMABYAAwABAAIAAAANABYAAwABAAIAAAAOABYAAwABAAIAAAAPABYAAwABAAIAAAAQABYAAwABAAIAAAARABYAAwABAAIAAAASABYAAwABAAIAAAATABYAAwABAAIAAAAUABYAAwABAAIAAAAVABYAAwABAAIAAAAWABYAAwABAAIAAAA=")
tile_set = ExtResource("4_uj7dw")

[node name="OverheadParallax" type="Parallax2D" parent="."]
scroll_scale = Vector2(1.1, 1.1)

[node name="Beams" type="TileMapLayer" parent="OverheadParallax"]
tile_map_data = PackedByteArray("AAD//xUAAwABAAIAAAAAABUAAwABAAIAAAABABUAAwABAAIAAAACABUAAwABAAIAAAADABUAAwABAAIAAAAEABUAAwABAAIAAAAFABUAAwABAAIAAAAGABUAAwABAAIAAAAHABUAAwABAAIAAAAIABUAAwABAAMAAAAJABUAAwABAAIAAAAKABUAAwABAAIAAAALABUAAwABAAIAAAAMABUAAwABAAIAAAANABUAAwABAAIAAAAOABUAAwABAAIAAAAPABUAAwABAAIAAAAIABYAAwACAAEAAAAIABcAAwACAAEAAAAIABgAAwACAAEAAAAIABkAAwACAAEAAAAIABoAAwACAAEAAAAIABsAAwACAAEAAAAIABwAAwACAAEAAADp/xUAAwABAAIAAADq/xUAAwABAAIAAADr/xUAAwABAAIAAADs/xUAAwABAAIAAADt/xUAAwABAAIAAADu/xUAAwABAAIAAADv/xUAAwABAAIAAADw/xUAAwABAAIAAADx/xUAAwABAAIAAADy/xUAAwABAAIAAADz/xUAAwABAAIAAAD0/xUAAwABAAIAAAD1/xUAAwABAAIAAAD2/xUAAwABAAIAAAD3/xUAAwABAAIAAAD4/xUAAwABAAIAAAD5/xUAAwABAAIAAAD6/xUAAwABAAIAAAD7/xUAAwABAAIAAAD8/xUAAwABAAIAAAD9/xUAAwABAAIAAAD+/xUAAwABAAIAAAAQABUAAwABAAIAAAARABUAAwABAAIAAAASABUAAwABAAIAAAATABUAAwABAAIAAAAUABUAAwABAAIAAAAVABUAAwABAAIAAAAWABUAAwABAAIAAAAXABUAAwABAAIAAAAYABUAAwABAAIAAAAZABUAAwABAAIAAAAaABUAAwABAAIAAAAbABUAAwABAAIAAAAcABUAAwABAAIAAAAdABUAAwABAAIAAAAeABUAAwABAAIAAAAIAB0AAwACAAEAAAAIAB4AAwACAAEAAAAIAB8AAwACAAEAAAAIACAAAwACAAEAAAAIACEAAwACAAEAAAAIACIAAwACAAEAAAAIACMAAwACAAEAAAAIACQAAwACAAEAAAAIACUAAwACAAEAAAAIACYAAwACAAEAAAAIACcAAwACAAEAAADy/yIAAwABAAIAAADz/yIAAwABAAIAAAD0/yIAAwABAAIAAAD1/yIAAwABAAIAAAD2/yIAAwABAAIAAAD3/yIAAwABAAIAAAD4/yIAAwABAAIAAAD5/yIAAwABAAIAAAD6/yIAAwABAAIAAAD7/yIAAwABAAIAAAD8/yIAAwABAAIAAAD9/yIAAwABAAIAAAD+/yIAAwABAAIAAAD//yIAAwABAAIAAAAAACIAAwABAAIAAAABACIAAwABAAIAAAACACIAAwABAAIAAAADACIAAwABAAIAAAAEACIAAwABAAIAAAAFACIAAwABAAIAAAAGACIAAwABAAIAAAAHACIAAwABAAIAAAAJACIAAwABAAIAAAAKACIAAwABAAIAAAALACIAAwABAAIAAAAMACIAAwABAAIAAAANACIAAwABAAIAAAAOACIAAwABAAIAAAAPACIAAwABAAIAAAAQACIAAwABAAIAAAARACIAAwABAAIAAAASACIAAwABAAIAAAATACIAAwABAAIAAAAUACIAAwABAAIAAAAVACIAAwABAAIAAAAWACIAAwABAAIAAAAXACIAAwABAAIAAAAYACIAAwABAAIAAAAZACIAAwABAAIAAAAaACIAAwABAAIAAAAbACIAAwABAAIAAAAcACIAAwABAAIAAAAXABYAAwACAAEAAAAXABcAAwACAAEAAAAXABgAAwACAAEAAAAXABkAAwACAAEAAAAXABoAAwACAAEAAAAXABsAAwACAAEAAAAXABwAAwACAAEAAAAXAB0AAwACAAEAAAAXAB4AAwACAAEAAAAXAB8AAwACAAEAAAAXACAAAwACAAEAAAAXACEAAwACAAEAAAD0/xYAAwACAAEAAAD0/xcAAwACAAEAAAD0/xgAAwACAAEAAAD0/xkAAwACAAEAAAD0/xoAAwACAAEAAAD0/xsAAwACAAEAAAD0/xwAAwACAAEAAAD0/x0AAwACAAEAAAD0/x4AAwACAAEAAAD0/x8AAwACAAEAAAD0/yAAAwACAAEAAAD0/yEAAwACAAEAAAA=")
tile_set = ExtResource("4_uj7dw")

[node name="CameraController" type="Camera2D" parent="."]
process_mode = 1
script = ExtResource("8_est8t")
pixel_snap = false
enable_smoothing = false

[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("9_i4f3y")

[node name="HUD" parent="." instance=ExtResource("10_4kvo6")]

[node name="CameraTarget" type="Node2D" parent="."]
position = Vector2(115, 328)
script = ExtResource("11_x37jo")

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

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

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