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

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_3vlrx"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Castle.json" id="2_r7i1l"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="4_doyrh"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="5_70f5o"]
[ext_resource type="PackedScene" uid="uid://58uk17ixtt4r" path="res://Scenes/Prefabs/Blocks/InvisibleBlocks/InvisibleQuestionBlock.tscn" id="7_0jar8"]
[ext_resource type="PackedScene" uid="uid://dbjqtjhb2t4cn" path="res://Scenes/Prefabs/Entities/Items/FireFlower.tscn" id="8_qekij"]
[ext_resource type="PackedScene" uid="uid://c2ntyej6ddm72" path="res://Scenes/Prefabs/LevelObjects/CastleToad.tscn" id="9_2lgfk"]
[ext_resource type="PackedScene" uid="uid://duptcik2j0b04" path="res://Scenes/Prefabs/Entities/Enemies/Bowser.tscn" id="11_doyrh"]
[ext_resource type="PackedScene" uid="uid://iq86u4w60yee" path="res://Scenes/Prefabs/Entities/Objects/Firebar.tscn" id="12_doyrh"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="14_0jar8"]
[ext_resource type="PackedScene" uid="uid://dn3cblgvf2ba1" path="res://Scenes/Prefabs/Entities/Objects/LargeFallingPlatform.tscn" id="14_2xtdn"]
[ext_resource type="PackedScene" uid="uid://dtpyjucfl16sw" path="res://Scenes/Prefabs/LevelObjects/CastleBridge.tscn" id="14_qekij"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="14_r7i1l"]
[ext_resource type="Script" uid="uid://cybpwmw4ywoow" path="res://Scripts/Parts/TileMapConverter.gd" id="15_qekij"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="17_o71dm"]
[ext_resource type="PackedScene" uid="uid://cmbpqnq10arts" path="res://Scenes/Prefabs/Entities/Items/RedCoin.tscn" id="18_gpbm3"]
[ext_resource type="PackedScene" uid="uid://ctx0nbkjf2osn" path="res://Scenes/Prefabs/Entities/Items/YoshiEgg.tscn" id="19_hkdad"]
[ext_resource type="PackedScene" uid="uid://c75cko8tyt467" path="res://Scenes/Prefabs/LevelObjects/CastleChallengeEnd.tscn" id="20_o71dm"]
[ext_resource type="PackedScene" uid="uid://dkgu57is78lro" path="res://Scenes/Parts/PipeArea.tscn" id="20_pwxd1"]

[node name="1-4" type="Node"]
script = ExtResource("1_3vlrx")
music = ExtResource("2_r7i1l")
theme = "Castle"
campaign = "SMBS"
level_id = 4
metadata/_custom_type_script = "uid://bcqr1v25ygedb"

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

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

[node name="InvisibleQuestionBlock" parent="." instance=ExtResource("7_0jar8")]
position = Vector2(1144, -88)
item = ExtResource("8_qekij")
mushroom_if_small = true

[node name="CastleBridge" parent="." instance=ExtResource("14_qekij")]
position = Vector2(2232, -24)
length = 16

[node name="CastleToad" parent="." instance=ExtResource("9_2lgfk")]
position = Vector2(2608, 0)

[node name="Bowser" parent="." instance=ExtResource("11_doyrh")]
position = Vector2(2344, -32)

[node name="Firebars" type="Node" parent="."]

[node name="Firebar" parent="Firebars" instance=ExtResource("12_doyrh")]
position = Vector2(24, -56)
scale = Vector2(1, -1)

[node name="Firebar2" parent="Firebars" instance=ExtResource("12_doyrh")]
position = Vector2(136, -56)
scale = Vector2(1, -1)

[node name="Firebar3" parent="Firebars" instance=ExtResource("12_doyrh")]
position = Vector2(456, -88)
scale = Vector2(1, -1)

[node name="Firebar4" parent="Firebars" instance=ExtResource("12_doyrh")]
position = Vector2(568, -88)
scale = Vector2(1, -1)

[node name="Firebar5" parent="Firebars" instance=ExtResource("12_doyrh")]
position = Vector2(680, -88)
scale = Vector2(1, -1)

[node name="Firebar6" parent="Firebars" instance=ExtResource("12_doyrh")]
position = Vector2(1000, -88)
scale = Vector2(1, -1)

[node name="Firebar7" parent="Firebars" instance=ExtResource("12_doyrh")]
position = Vector2(1128, -88)
scale = Vector2(1, -1)

[node name="DropShadow" parent="." instance=ExtResource("14_r7i1l")]

[node name="LevelBG" parent="." instance=ExtResource("14_0jar8")]
particles = 3

[node name="TileMapConverter" type="Node" parent="." node_paths=PackedStringArray("tilemap")]
script = ExtResource("15_qekij")
tilemap = NodePath("../Tiles")
metadata/_custom_type_script = "uid://cybpwmw4ywoow"

[node name="FallingPlatform" parent="." instance=ExtResource("14_2xtdn")]
position = Vector2(832, -88)

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

[node name="RedCoin" parent="ChallengeNodes" instance=ExtResource("18_gpbm3")]
position = Vector2(312, -120)

[node name="RedCoin2" parent="ChallengeNodes" instance=ExtResource("18_gpbm3")]
position = Vector2(712, -184)
id = 1

[node name="RedCoin3" parent="ChallengeNodes" instance=ExtResource("18_gpbm3")]
position = Vector2(1416, -72)
id = 2

[node name="RedCoin4" parent="ChallengeNodes" instance=ExtResource("18_gpbm3")]
position = Vector2(2136, -104)
id = 4

[node name="InvisibleQuestionBlock" parent="ChallengeNodes" instance=ExtResource("7_0jar8")]
position = Vector2(744, -104)

[node name="InvisibleQuestionBlock2" parent="ChallengeNodes" instance=ExtResource("7_0jar8")]
position = Vector2(1944, -56)
item = ExtResource("19_hkdad")

[node name="CastleChallengeEnd" parent="ChallengeNodes" instance=ExtResource("20_o71dm")]
position = Vector2(2608, 0)

[node name="PipeArea" parent="." instance=ExtResource("20_pwxd1")]
position = Vector2(1520, -64)
target_level = "uid://dyswbc7kccrju"

[node name="PipeArea2" parent="." instance=ExtResource("20_pwxd1")]
position = Vector2(1712, -48)
pipe_id = 1
target_level = "uid://dyswbc7kccrju"
exit_only = true

[connection signal="block_destroyed" from="Tiles/QuestionBlock" to="Tiles/QuestionBlock/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/QuestionBlock" to="Tiles/QuestionBlock/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/QuestionBlock" to="Tiles/QuestionBlock" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/QuestionBlock" to="Tiles/QuestionBlock" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/QuestionBlock" to="Tiles/QuestionBlock/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/QuestionBlock" to="Tiles/QuestionBlock" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/QuestionBlock" to="Tiles/QuestionBlock/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="area_entered" from="Tiles/DeathPit" to="Tiles/DeathPit" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84183" to="Tiles/@Area2D@84183" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84184" to="Tiles/@Area2D@84184" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84185" to="Tiles/@Area2D@84185" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84186" to="Tiles/@Area2D@84186" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84187" to="Tiles/@Area2D@84187" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84188" to="Tiles/@Area2D@84188" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84189" to="Tiles/@Area2D@84189" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84190" to="Tiles/@Area2D@84190" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84191" to="Tiles/@Area2D@84191" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84192" to="Tiles/@Area2D@84192" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84193" to="Tiles/@Area2D@84193" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84194" to="Tiles/@Area2D@84194" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84195" to="Tiles/@Area2D@84195" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84196" to="Tiles/@Area2D@84196" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84197" to="Tiles/@Area2D@84197" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84198" to="Tiles/@Area2D@84198" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84199" to="Tiles/@Area2D@84199" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84200" to="Tiles/@Area2D@84200" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84201" to="Tiles/@Area2D@84201" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84202" to="Tiles/@Area2D@84202" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84203" to="Tiles/@Area2D@84203" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84204" to="Tiles/@Area2D@84204" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84205" to="Tiles/@Area2D@84205" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84206" to="Tiles/@Area2D@84206" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84207" to="Tiles/@Area2D@84207" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84208" to="Tiles/@Area2D@84208" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84209" to="Tiles/@Area2D@84209" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84210" to="Tiles/@Area2D@84210" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84211" to="Tiles/@Area2D@84211" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84212" to="Tiles/@Area2D@84212" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84213" to="Tiles/@Area2D@84213" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84214" to="Tiles/@Area2D@84214" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84215" to="Tiles/@Area2D@84215" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@84216" to="Tiles/@Area2D@84216" method="area_entered"]
[connection signal="victory_begin" from="CastleBridge" to="ChallengeNodes/CastleChallengeEnd" method="begin"]
