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

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_jul4x"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Castle.json" id="2_5b2sc"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="4_tn33f"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="5_3a71w"]
[ext_resource type="PackedScene" uid="uid://dsa8lpl7n8ge0" path="res://Scenes/Prefabs/Blocks/BrickBlocks/BrickBlock.tscn" id="5_vuqf2"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="6_8ecf1"]
[ext_resource type="PackedScene" uid="uid://iq86u4w60yee" path="res://Scenes/Prefabs/Entities/Objects/Firebar.tscn" id="9_32x6h"]
[ext_resource type="PackedScene" uid="uid://cxdj1ea1rt1r4" path="res://Scenes/Prefabs/Entities/Enemies/Podoboo.tscn" id="10_3q1v1"]
[ext_resource type="PackedScene" uid="uid://c2ntyej6ddm72" path="res://Scenes/Prefabs/LevelObjects/CastleToad.tscn" id="11_7d4er"]
[ext_resource type="JSON" path="res://Assets/Sprites/Enemies/SideStepper.json" id="11_8uvqo"]
[ext_resource type="PackedScene" uid="uid://dtpyjucfl16sw" path="res://Scenes/Prefabs/LevelObjects/CastleBridge.tscn" id="13_5b2sc"]
[ext_resource type="PackedScene" uid="uid://duptcik2j0b04" path="res://Scenes/Prefabs/Entities/Enemies/Bowser.tscn" id="14_m2i5e"]
[ext_resource type="PackedScene" uid="uid://ctancgnvl58oc" path="res://Scenes/Prefabs/Entities/Objects/ElevatorPlatform.tscn" id="15_crmjp"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="15_diy2s"]
[ext_resource type="Script" uid="uid://cybpwmw4ywoow" path="res://Scripts/Parts/TileMapConverter.gd" id="16_diy2s"]
[ext_resource type="PackedScene" uid="uid://58uk17ixtt4r" path="res://Scenes/Prefabs/Blocks/InvisibleBlocks/InvisibleQuestionBlock.tscn" id="24_cepr8"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="40_b10rm"]
[ext_resource type="PackedScene" uid="uid://cmbpqnq10arts" path="res://Scenes/Prefabs/Entities/Items/RedCoin.tscn" id="41_8bmuu"]
[ext_resource type="PackedScene" uid="uid://d3gnwmvds4ors" path="res://Scenes/Prefabs/Entities/Items/SpinningRedCoin.tscn" id="42_t7f00"]
[ext_resource type="PackedScene" uid="uid://ctx0nbkjf2osn" path="res://Scenes/Prefabs/Entities/Items/YoshiEgg.tscn" id="43_cpxas"]
[ext_resource type="PackedScene" uid="uid://c75cko8tyt467" path="res://Scenes/Prefabs/LevelObjects/CastleChallengeEnd.tscn" id="44_b10rm"]

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

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

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

[node name="DropShadow" parent="." instance=ExtResource("6_8ecf1")]

[node name="Firebar2" parent="." instance=ExtResource("9_32x6h")]
position = Vector2(520, 8)
rotation = -3.14159

[node name="Firebar3" parent="." instance=ExtResource("9_32x6h")]
position = Vector2(600, -56)

[node name="Firebar4" parent="." instance=ExtResource("9_32x6h")]
position = Vector2(696, -120)

[node name="Firebar5" parent="." instance=ExtResource("9_32x6h")]
position = Vector2(776, -56)
rotation = -1.5708

[node name="Firebar6" parent="." instance=ExtResource("9_32x6h")]
position = Vector2(952, -56)
rotation = -1.5708

[node name="Firebar8" parent="." instance=ExtResource("9_32x6h")]
position = Vector2(1304, -40)

[node name="Firebar9" parent="." instance=ExtResource("9_32x6h")]
position = Vector2(1656, -56)

[node name="Firebar10" parent="." instance=ExtResource("9_32x6h")]
position = Vector2(1496, -56)
rotation = -3.14159

[node name="Firebar7" parent="." instance=ExtResource("9_32x6h")]
position = Vector2(872, 8)
rotation = 1.5708

[node name="Podoboo" parent="." instance=ExtResource("10_3q1v1")]
position = Vector2(1832, -88)

[node name="Podoboo2" parent="." instance=ExtResource("10_3q1v1")]
position = Vector2(1912, -88)

[node name="CastleToad" parent="." instance=ExtResource("11_7d4er")]
position = Vector2(2600, 0)

[node name="CastleBridge" parent="." instance=ExtResource("13_5b2sc")]
position = Vector2(2232, -24)
length = 17

[node name="Bowser" parent="." instance=ExtResource("14_m2i5e")]
position = Vector2(2376, -32)

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

[node name="ElevatorPlatform" parent="." instance=ExtResource("15_crmjp")]
position = Vector2(1144, -48)
top = -176

[node name="ElevatorPlatform2" parent="." instance=ExtResource("15_crmjp")]
position = Vector2(1240, -48)
vertical_direction = -1
top = -176

[node name="LevelBG" parent="." instance=ExtResource("15_diy2s")]
particles = 3

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

[node name="Firebar" parent="." instance=ExtResource("9_32x6h")]
position = Vector2(183.128, -87.4038)
length = 10

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

[node name="RedCoin" parent="ChallengeNodes" instance=ExtResource("41_8bmuu")]
position = Vector2(-56, -120)

[node name="RedCoin2" parent="ChallengeNodes" instance=ExtResource("41_8bmuu")]
position = Vector2(376, -120)
id = 1

[node name="RedCoin3" parent="ChallengeNodes" instance=ExtResource("41_8bmuu")]
position = Vector2(1144, -8)
id = 2

[node name="RedCoin4" parent="ChallengeNodes" instance=ExtResource("41_8bmuu")]
position = Vector2(1656, -72)
id = 3

[node name="BrickBlock" parent="ChallengeNodes" instance=ExtResource("5_vuqf2")]
position = Vector2(2232, -120)
item = ExtResource("42_t7f00")
metadata/r_coin_id = 4

[node name="InvisibleQuestionBlock" parent="ChallengeNodes" instance=ExtResource("24_cepr8")]
position = Vector2(1496, -120)
item = ExtResource("43_cpxas")

[node name="CastleChallengeEnd" parent="ChallengeNodes" instance=ExtResource("44_b10rm")]
position = Vector2(2600, 0)

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

[node name="BrickBlock" parent="Blocks" instance=ExtResource("5_vuqf2")]
position = Vector2(2232, -120)

[connection signal="block_destroyed" from="Tiles/BrickBlock" to="Tiles/BrickBlock/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/BrickBlock" to="Tiles/BrickBlock/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/BrickBlock" to="Tiles/BrickBlock" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/BrickBlock" to="Tiles/BrickBlock/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/BrickBlock" to="Tiles/BrickBlock" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/BrickBlock" to="Tiles/BrickBlock/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@87468" to="Tiles/@AnimatableBody2D@87468/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@87468" to="Tiles/@AnimatableBody2D@87468/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@87468" to="Tiles/@AnimatableBody2D@87468" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@87468" to="Tiles/@AnimatableBody2D@87468/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@87468" to="Tiles/@AnimatableBody2D@87468" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@87468" to="Tiles/@AnimatableBody2D@87468/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@87469" to="Tiles/@AnimatableBody2D@87469/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@87469" to="Tiles/@AnimatableBody2D@87469/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@87469" to="Tiles/@AnimatableBody2D@87469" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@87469" to="Tiles/@AnimatableBody2D@87469/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@87469" to="Tiles/@AnimatableBody2D@87469" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@87469" to="Tiles/@AnimatableBody2D@87469/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@87470" to="Tiles/@AnimatableBody2D@87470/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@87470" to="Tiles/@AnimatableBody2D@87470/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@87470" to="Tiles/@AnimatableBody2D@87470" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@87470" to="Tiles/@AnimatableBody2D@87470/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@87470" to="Tiles/@AnimatableBody2D@87470" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@87470" to="Tiles/@AnimatableBody2D@87470/BlockAnimations" method="bounce_block" unbinds=1]
[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="victory_begin" from="CastleBridge" to="ChallengeNodes/CastleChallengeEnd" method="begin"]

[editable path="Bowser"]
