[gd_scene load_steps=22 format=4 uid="uid://d1bdp52vqxi6l"]

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_k15xu"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Castle.json" id="2_u1wbm"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="4_vxi4p"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="5_3uucm"]
[ext_resource type="PackedScene" uid="uid://iq86u4w60yee" path="res://Scenes/Prefabs/Entities/Objects/Firebar.tscn" id="7_ice7i"]
[ext_resource type="JSON" path="res://Assets/Sprites/Enemies/Spiny.json" id="8_0fnbe"]
[ext_resource type="PackedScene" uid="uid://cxdj1ea1rt1r4" path="res://Scenes/Prefabs/Entities/Enemies/Podoboo.tscn" id="8_3uucm"]
[ext_resource type="PackedScene" uid="uid://duptcik2j0b04" path="res://Scenes/Prefabs/Entities/Enemies/Bowser.tscn" id="9_lpixx"]
[ext_resource type="PackedScene" uid="uid://c2ntyej6ddm72" path="res://Scenes/Prefabs/LevelObjects/CastleToad.tscn" id="10_ice7i"]
[ext_resource type="PackedScene" uid="uid://dtpyjucfl16sw" path="res://Scenes/Prefabs/LevelObjects/CastleBridge.tscn" id="11_ayiq6"]
[ext_resource type="PackedScene" uid="uid://1rxw4k4wq3ni" path="res://Scenes/Prefabs/Entities/Enemies/PiranhaPlant.tscn" id="12_lpixx"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="13_ice7i"]
[ext_resource type="PackedScene" uid="uid://b5fyj3qbppnyg" path="res://Scenes/Prefabs/LevelObjects/PickAPathTeleport.tscn" id="14_f6lln"]
[ext_resource type="PackedScene" uid="uid://cmcpug8hc74jf" path="res://Scenes/Prefabs/LevelObjects/PickAPathPoint.tscn" id="15_r3v25"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="17_0fnbe"]
[ext_resource type="PackedScene" uid="uid://cmbpqnq10arts" path="res://Scenes/Prefabs/Entities/Items/RedCoin.tscn" id="18_hc76q"]
[ext_resource type="PackedScene" uid="uid://58uk17ixtt4r" path="res://Scenes/Prefabs/Blocks/InvisibleBlocks/InvisibleQuestionBlock.tscn" id="19_u1wbm"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="20_0fnbe"]
[ext_resource type="PackedScene" uid="uid://ctx0nbkjf2osn" path="res://Scenes/Prefabs/Entities/Items/YoshiEgg.tscn" id="20_thflk"]
[ext_resource type="PackedScene" uid="uid://c75cko8tyt467" path="res://Scenes/Prefabs/LevelObjects/CastleChallengeEnd.tscn" id="21_u1wbm"]

[sub_resource type="SpriteFrames" id="SpriteFrames_0fnbe"]
animations = [{
"frames": [],
"loop": true,
"name": &"Walk",
"speed": 5.0
}]

[node name="4-4" type="Node"]
script = ExtResource("1_k15xu")
music = ExtResource("2_u1wbm")
theme = "Castle"
world_id = 4
level_id = 4
metadata/_custom_type_script = "uid://bcqr1v25ygedb"

[node name="Tiles" parent="." instance=ExtResource("4_vxi4p")]
tile_map_data = PackedByteArray("[encoded data, 19844 characters]")

[node name="Player" parent="." instance=ExtResource("5_3uucm")]
position = Vector2(-248, -96)

[node name="Firebar" parent="." instance=ExtResource("7_ice7i")]
position = Vector2(600, -56)
direction = 1

[node name="Firebar2" parent="." instance=ExtResource("7_ice7i")]
position = Vector2(712, -56)
scale = Vector2(-1, 1)
direction = 1

[node name="Firebar3" parent="." instance=ExtResource("7_ice7i")]
position = Vector2(1592, -104)
scale = Vector2(-1, 1)
direction = 1

[node name="Firebar4" parent="." instance=ExtResource("7_ice7i")]
position = Vector2(1704, -40)
scale = Vector2(-1, 1)
direction = 1

[node name="Podoboo" parent="." instance=ExtResource("8_3uucm")]
position = Vector2(2392, -88)

[node name="Bowser" parent="." instance=ExtResource("9_lpixx")]
position = Vector2(2424, -48)

[node name="DeathSprite" parent="Bowser/SpriteScaleJoint" index="2"]
sprite_frames = SubResource("SpriteFrames_0fnbe")
animation = &"Walk"

[node name="ResourceSetterNew" parent="Bowser/SpriteScaleJoint/DeathSprite" index="0"]
resource_json = ExtResource("8_0fnbe")

[node name="CastleToad" parent="." instance=ExtResource("10_ice7i")]
position = Vector2(2688, 0)

[node name="CastleBridge" parent="." instance=ExtResource("11_ayiq6")]
position = Vector2(2312, -40)

[node name="Firebar5" parent="CastleBridge/Bridge/CastleBridgeSegment11" index="2" instance=ExtResource("7_ice7i")]
direction = 1

[node name="CastleBridgeSegment14" parent="CastleBridge/Bridge" index="13"]
position = Vector2(-3311, 0)

[node name="CastleBridgeSegment15" parent="CastleBridge/Bridge" index="14"]
position = Vector2(-3311, 0)

[node name="CastleBridgeSegment16" parent="CastleBridge/Bridge" index="15"]
position = Vector2(-3311, 0)

[node name="CastleBridgeSegment17" parent="CastleBridge/Bridge" index="16"]
position = Vector2(-3311, 0)

[node name="CastleBridgeSegment18" parent="CastleBridge/Bridge" index="17"]
position = Vector2(-3311, 0)

[node name="CastleBridgeSegment19" parent="CastleBridge/Bridge" index="18"]
position = Vector2(-3311, 0)

[node name="CastleBridgeSegment20" parent="CastleBridge/Bridge" index="19"]
position = Vector2(-3311, 0)

[node name="PirannhaPlant" parent="." instance=ExtResource("12_lpixx")]
position = Vector2(400, -48)

[node name="DropShadow" parent="." instance=ExtResource("13_ice7i")]

[node name="PickAPathTeleport" parent="." instance=ExtResource("14_f6lln")]
position = Vector2(696, -136)

[node name="PickAPathTeleport2" parent="PickAPathTeleport" instance=ExtResource("14_f6lln")]
position = Vector2(96, 112)
reset_pos = Vector2(-40, -48)

[node name="PickAPathPoint" parent="PickAPathTeleport" instance=ExtResource("15_r3v25")]
position = Vector2(-32, 0)

[node name="PickAPathTeleport2" parent="." instance=ExtResource("14_f6lln")]
position = Vector2(1992, -8)
reset_pos = Vector2(984, -48)

[node name="PickAPathTeleport3" parent="PickAPathTeleport2" instance=ExtResource("14_f6lln")]
position = Vector2(-264, -64)
reset_pos = Vector2(984, -48)

[node name="PickAPathTeleport4" parent="PickAPathTeleport2" instance=ExtResource("14_f6lln")]
position = Vector2(-264, -128)
reset_pos = Vector2(984, -48)

[node name="PickAPathPoint" parent="PickAPathTeleport2" instance=ExtResource("15_r3v25")]
position = Vector2(-376, 0)

[node name="ChallengeNodes" type="Node" parent="." node_paths=PackedStringArray("nodes_to_delete")]
script = ExtResource("17_0fnbe")
nodes_to_delete = [NodePath("../CastleToad")]
metadata/_custom_type_script = "uid://cgm3opb5qudc1"

[node name="RedCoin" parent="ChallengeNodes" instance=ExtResource("18_hc76q")]
position = Vector2(264, -104)

[node name="RedCoin2" parent="ChallengeNodes" instance=ExtResource("18_hc76q")]
position = Vector2(1160, -40)
id = 1

[node name="RedCoin3" parent="ChallengeNodes" instance=ExtResource("18_hc76q")]
position = Vector2(1448, -56)
id = 2

[node name="RedCoin4" parent="ChallengeNodes" instance=ExtResource("18_hc76q")]
position = Vector2(2072, -120)
id = 3

[node name="RedCoin5" parent="ChallengeNodes" instance=ExtResource("18_hc76q")]
position = Vector2(2376, -56)
id = 4

[node name="InvisibleQuestionBlock" parent="ChallengeNodes" instance=ExtResource("19_u1wbm")]
position = Vector2(1224, -88)
item = ExtResource("20_thflk")

[node name="InvisibleQuestionBlock2" parent="ChallengeNodes" instance=ExtResource("19_u1wbm")]
position = Vector2(2072, -56)

[node name="CastleChallengeEnd" parent="ChallengeNodes" instance=ExtResource("21_u1wbm")]
position = Vector2(2688, 0)

[node name="LevelBG" parent="." instance=ExtResource("20_0fnbe")]
particles = 3

[connection signal="area_entered" from="Tiles/DeathPit" to="Tiles/DeathPit" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@40052" to="Tiles/@Area2D@40052" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@40053" to="Tiles/@Area2D@40053" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@40054" to="Tiles/@Area2D@40054" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@40055" to="Tiles/@Area2D@40055" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@40056" to="Tiles/@Area2D@40056" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@40057" to="Tiles/@Area2D@40057" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@40058" to="Tiles/@Area2D@40058" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@40059" to="Tiles/@Area2D@40059" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@40060" to="Tiles/@Area2D@40060" method="area_entered"]
[connection signal="axe_touched" from="CastleBridge" to="Bowser" method="bridge_fall"]
[connection signal="victory_begin" from="CastleBridge" to="CastleToad" method="begin"]
[connection signal="victory_begin" from="CastleBridge" to="ChallengeNodes/CastleChallengeEnd" method="begin"]

[editable path="Bowser"]
[editable path="CastleBridge"]
