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

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_wplms"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Castle.json" id="2_lr01v"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="3_2mcuc"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="4_v4mcy"]
[ext_resource type="PackedScene" uid="uid://dsa8lpl7n8ge0" path="res://Scenes/Prefabs/Blocks/BrickBlocks/BrickBlock.tscn" id="6_4mb0e"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="6_thxjv"]
[ext_resource type="PackedScene" uid="uid://b0gkypf5ow67f" path="res://Scenes/Prefabs/Entities/Enemies/Icicle.tscn" id="9_0qpmw"]
[ext_resource type="PackedScene" uid="uid://iq86u4w60yee" path="res://Scenes/Prefabs/Entities/Objects/Firebar.tscn" id="9_thxjv"]
[ext_resource type="PackedScene" uid="uid://byu7xm153ktle" path="res://Scenes/Prefabs/Entities/Enemies/Barrel.tscn" id="10_wie8k"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="10_y515x"]
[ext_resource type="PackedScene" uid="uid://1rxw4k4wq3ni" path="res://Scenes/Prefabs/Entities/Enemies/PiranhaPlant.tscn" id="11_d7mec"]
[ext_resource type="PackedScene" uid="uid://dtpyjucfl16sw" path="res://Scenes/Prefabs/LevelObjects/CastleBridge.tscn" id="13_2q7k7"]
[ext_resource type="PackedScene" uid="uid://c2ntyej6ddm72" path="res://Scenes/Prefabs/LevelObjects/CastleToad.tscn" id="14_016ks"]
[ext_resource type="JSON" path="res://Assets/Sprites/Enemies/FighterFly.json" id="14_b4pgy"]
[ext_resource type="PackedScene" uid="uid://duptcik2j0b04" path="res://Scenes/Prefabs/Entities/Enemies/Bowser.tscn" id="15_5mbgc"]
[ext_resource type="PackedScene" uid="uid://58uk17ixtt4r" path="res://Scenes/Prefabs/Blocks/InvisibleBlocks/InvisibleQuestionBlock.tscn" id="25_q1dpq"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="40_j4t72"]
[ext_resource type="PackedScene" uid="uid://cmbpqnq10arts" path="res://Scenes/Prefabs/Entities/Items/RedCoin.tscn" id="41_y63co"]
[ext_resource type="PackedScene" uid="uid://d3gnwmvds4ors" path="res://Scenes/Prefabs/Entities/Items/SpinningRedCoin.tscn" id="42_ymph2"]
[ext_resource type="PackedScene" uid="uid://ctx0nbkjf2osn" path="res://Scenes/Prefabs/Entities/Items/YoshiEgg.tscn" id="43_bgb2f"]
[ext_resource type="PackedScene" uid="uid://c75cko8tyt467" path="res://Scenes/Prefabs/LevelObjects/CastleChallengeEnd.tscn" id="44_f8lal"]

[node name="Level" type="Node"]
script = ExtResource("1_wplms")
music = ExtResource("2_lr01v")
theme = "Castle"
campaign = "SMBS"
world_id = 6
level_id = 4
metadata/_custom_type_script = "uid://bcqr1v25ygedb"

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

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

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

[node name="Firebar2" parent="." instance=ExtResource("9_thxjv")]
position = Vector2(1464, -56)
starting_angle = 90

[node name="Firebar3" parent="." instance=ExtResource("9_thxjv")]
position = Vector2(1016, -56)
starting_angle = 45
direction = 1

[node name="Firebar4" parent="." instance=ExtResource("9_thxjv")]
position = Vector2(936, -56)
starting_angle = 45

[node name="Firebar5" parent="." instance=ExtResource("9_thxjv")]
position = Vector2(728, -56)
starting_angle = 180

[node name="Firebar6" parent="." instance=ExtResource("9_thxjv")]
position = Vector2(472, -56)
starting_angle = 180
direction = 1

[node name="Firebar7" parent="." instance=ExtResource("9_thxjv")]
position = Vector2(152, -40)
starting_angle = 180
direction = 1

[node name="Firebar8" parent="." instance=ExtResource("9_thxjv")]
position = Vector2(56, -136)
starting_angle = 135
direction = 1

[node name="Firebar9" parent="." instance=ExtResource("9_thxjv")]
position = Vector2(-40, -40)
starting_angle = 135
direction = 1

[node name="DropShadow" parent="." instance=ExtResource("10_y515x")]

[node name="Icicle" parent="." instance=ExtResource("9_0qpmw")]
position = Vector2(1112, -128)

[node name="Icicle2" parent="." instance=ExtResource("9_0qpmw")]
position = Vector2(1152, -128)

[node name="Icicle3" parent="." instance=ExtResource("9_0qpmw")]
position = Vector2(1192, -128)

[node name="Icicle4" parent="." instance=ExtResource("9_0qpmw")]
position = Vector2(1232, -128)

[node name="Barrel" parent="." instance=ExtResource("10_wie8k")]
position = Vector2(1448, -64)

[node name="PirannhaPlant" parent="." instance=ExtResource("11_d7mec")]
position = Vector2(1680, -48)
rotation = 3.14159

[node name="CastleToad" parent="." instance=ExtResource("14_016ks")]
position = Vector2(2600, 16)

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

[node name="Bowser" parent="." instance=ExtResource("15_5mbgc")]
position = Vector2(2320, -32)

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

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

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

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

[node name="RedCoin3" parent="ChallengeNodes" instance=ExtResource("41_y63co")]
position = Vector2(1176, -88)
id = 2

[node name="RedCoin4" parent="ChallengeNodes" instance=ExtResource("41_y63co")]
position = Vector2(1688, -40)
id = 3

[node name="BrickBlock" parent="ChallengeNodes" instance=ExtResource("6_4mb0e")]
position = Vector2(2232, -104)
item = ExtResource("42_ymph2")
metadata/r_coin_id = 4

[node name="InvisibleQuestionBlock" parent="ChallengeNodes" instance=ExtResource("25_q1dpq")]
position = Vector2(1608, -56)
item = ExtResource("43_bgb2f")

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

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

[node name="InvisibleQuestionBlock" parent="Blocks" instance=ExtResource("25_q1dpq")]
position = Vector2(1608, -56)

[node name="BrickBlock" parent="Blocks" instance=ExtResource("6_4mb0e")]
position = Vector2(2232, -104)

[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="block_destroyed" from="Tiles/@AnimatableBody2D@68886" to="Tiles/@AnimatableBody2D@68886/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@68886" to="Tiles/@AnimatableBody2D@68886/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68886" to="Tiles/@AnimatableBody2D@68886" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68886" to="Tiles/@AnimatableBody2D@68886" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68886" to="Tiles/@AnimatableBody2D@68886/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68886" to="Tiles/@AnimatableBody2D@68886" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68886" to="Tiles/@AnimatableBody2D@68886/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@68887" to="Tiles/@AnimatableBody2D@68887/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@68887" to="Tiles/@AnimatableBody2D@68887/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68887" to="Tiles/@AnimatableBody2D@68887" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68887" to="Tiles/@AnimatableBody2D@68887" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68887" to="Tiles/@AnimatableBody2D@68887/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68887" to="Tiles/@AnimatableBody2D@68887" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68887" to="Tiles/@AnimatableBody2D@68887/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@68888" to="Tiles/@AnimatableBody2D@68888/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@68888" to="Tiles/@AnimatableBody2D@68888/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68888" to="Tiles/@AnimatableBody2D@68888" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68888" to="Tiles/@AnimatableBody2D@68888" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68888" to="Tiles/@AnimatableBody2D@68888/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68888" to="Tiles/@AnimatableBody2D@68888" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68888" to="Tiles/@AnimatableBody2D@68888/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@68889" to="Tiles/@AnimatableBody2D@68889/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@68889" to="Tiles/@AnimatableBody2D@68889/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68889" to="Tiles/@AnimatableBody2D@68889" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68889" to="Tiles/@AnimatableBody2D@68889" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68889" to="Tiles/@AnimatableBody2D@68889/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68889" to="Tiles/@AnimatableBody2D@68889" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68889" to="Tiles/@AnimatableBody2D@68889/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@68890" to="Tiles/@AnimatableBody2D@68890/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@68890" to="Tiles/@AnimatableBody2D@68890/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68890" to="Tiles/@AnimatableBody2D@68890" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68890" to="Tiles/@AnimatableBody2D@68890" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68890" to="Tiles/@AnimatableBody2D@68890/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68890" to="Tiles/@AnimatableBody2D@68890" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68890" to="Tiles/@AnimatableBody2D@68890/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/InvisibleQuestionBlock" to="Tiles/InvisibleQuestionBlock/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/InvisibleQuestionBlock" to="Tiles/InvisibleQuestionBlock/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/InvisibleQuestionBlock" to="Tiles/InvisibleQuestionBlock" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/InvisibleQuestionBlock" to="Tiles/InvisibleQuestionBlock" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/InvisibleQuestionBlock" to="Tiles/InvisibleQuestionBlock/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/InvisibleQuestionBlock" to="Tiles/InvisibleQuestionBlock" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/InvisibleQuestionBlock" to="Tiles/InvisibleQuestionBlock/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@68891" to="Tiles/@AnimatableBody2D@68891/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@68891" to="Tiles/@AnimatableBody2D@68891/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68891" to="Tiles/@AnimatableBody2D@68891" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68891" to="Tiles/@AnimatableBody2D@68891" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68891" to="Tiles/@AnimatableBody2D@68891/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68891" to="Tiles/@AnimatableBody2D@68891" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68891" to="Tiles/@AnimatableBody2D@68891/BlockAnimations" method="bounce_block" unbinds=1]
[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="item_changed" from="Tiles/BrickBlock" to="Tiles/BrickBlock" method="check_brick_empty"]
[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@68892" to="Tiles/@AnimatableBody2D@68892/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@68892" to="Tiles/@AnimatableBody2D@68892/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@68892" to="Tiles/@AnimatableBody2D@68892" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68892" to="Tiles/@AnimatableBody2D@68892" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68892" to="Tiles/@AnimatableBody2D@68892/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68892" to="Tiles/@AnimatableBody2D@68892" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68892" to="Tiles/@AnimatableBody2D@68892/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@68893" to="Tiles/@AnimatableBody2D@68893/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@68893" to="Tiles/@AnimatableBody2D@68893/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@68893" to="Tiles/@AnimatableBody2D@68893" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68893" to="Tiles/@AnimatableBody2D@68893" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68893" to="Tiles/@AnimatableBody2D@68893/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68893" to="Tiles/@AnimatableBody2D@68893" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68893" to="Tiles/@AnimatableBody2D@68893/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@68894" to="Tiles/@AnimatableBody2D@68894/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@68894" to="Tiles/@AnimatableBody2D@68894/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@68894" to="Tiles/@AnimatableBody2D@68894" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68894" to="Tiles/@AnimatableBody2D@68894" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68894" to="Tiles/@AnimatableBody2D@68894/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68894" to="Tiles/@AnimatableBody2D@68894" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68894" to="Tiles/@AnimatableBody2D@68894/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@68895" to="Tiles/@AnimatableBody2D@68895/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@68895" to="Tiles/@AnimatableBody2D@68895/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@68895" to="Tiles/@AnimatableBody2D@68895" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68895" to="Tiles/@AnimatableBody2D@68895" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@68895" to="Tiles/@AnimatableBody2D@68895/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68895" to="Tiles/@AnimatableBody2D@68895" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@68895" to="Tiles/@AnimatableBody2D@68895/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="victory_begin" from="CastleBridge" to="ChallengeNodes/CastleChallengeEnd" method="begin"]

[editable path="Bowser"]
