[gd_scene load_steps=21 format=4 uid="uid://dbrqb7n3tupkp"]

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_b42pn"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Castle.json" id="2_7abqx"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="4_411hd"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="5_ul44o"]
[ext_resource type="PackedScene" uid="uid://c2ntyej6ddm72" path="res://Scenes/Prefabs/LevelObjects/CastleToad.tscn" id="7_ovbpt"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="9_5oiqe"]
[ext_resource type="PackedScene" uid="uid://byu7xm153ktle" path="res://Scenes/Prefabs/Entities/Enemies/Barrel.tscn" id="10_f8a6r"]
[ext_resource type="PackedScene" uid="uid://58uk17ixtt4r" path="res://Scenes/Prefabs/Blocks/InvisibleBlocks/InvisibleQuestionBlock.tscn" id="11_ul44o"]
[ext_resource type="PackedScene" uid="uid://bwdwavf4rp1m1" path="res://Scenes/Prefabs/Entities/Items/HammerItem.tscn" id="12_m7oqh"]
[ext_resource type="JSON" path="res://Assets/Sprites/Enemies/BuzzyBeetleShell.json" id="13_rsplc"]
[ext_resource type="PackedScene" uid="uid://dtpyjucfl16sw" path="res://Scenes/Prefabs/LevelObjects/CastleBridge.tscn" id="14_7abqx"]
[ext_resource type="PackedScene" uid="uid://iq86u4w60yee" path="res://Scenes/Prefabs/Entities/Objects/Firebar.tscn" id="14_xh3ce"]
[ext_resource type="PackedScene" uid="uid://duptcik2j0b04" path="res://Scenes/Prefabs/Entities/Enemies/Bowser.tscn" id="15_6bgvu"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="15_xh3ce"]
[ext_resource type="Script" uid="uid://cybpwmw4ywoow" path="res://Scripts/Parts/TileMapConverter.gd" id="16_6bgvu"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="17_24f5i"]
[ext_resource type="PackedScene" uid="uid://cmbpqnq10arts" path="res://Scenes/Prefabs/Entities/Items/RedCoin.tscn" id="18_rsplc"]
[ext_resource type="PackedScene" uid="uid://d3gnwmvds4ors" path="res://Scenes/Prefabs/Entities/Items/SpinningRedCoin.tscn" id="19_gcyt4"]
[ext_resource type="PackedScene" uid="uid://ctx0nbkjf2osn" path="res://Scenes/Prefabs/Entities/Items/YoshiEgg.tscn" id="20_iag7c"]
[ext_resource type="PackedScene" uid="uid://c75cko8tyt467" path="res://Scenes/Prefabs/LevelObjects/CastleChallengeEnd.tscn" id="21_24f5i"]

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

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

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

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

[node name="DropShadow" parent="." instance=ExtResource("9_5oiqe")]

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

[node name="Barrel" parent="Enemies" instance=ExtResource("10_f8a6r")]
position = Vector2(1160, -96)

[node name="Barrel2" parent="Enemies" instance=ExtResource("10_f8a6r")]
position = Vector2(1200, -112)

[node name="Barrel3" parent="Enemies" instance=ExtResource("10_f8a6r")]
position = Vector2(1288, -176)

[node name="Barrel4" parent="Enemies" instance=ExtResource("10_f8a6r")]
position = Vector2(1312, -176)

[node name="Barrel5" parent="Enemies" instance=ExtResource("10_f8a6r")]
position = Vector2(1352, -176)

[node name="Barrel6" parent="Enemies" instance=ExtResource("10_f8a6r")]
position = Vector2(1376, -176)

[node name="Barrel7" parent="Enemies" instance=ExtResource("10_f8a6r")]
position = Vector2(1400, -176)

[node name="InvisibleQuestionBlock" parent="." instance=ExtResource("11_ul44o")]
position = Vector2(1064, -88)
item = ExtResource("12_m7oqh")

[node name="Firebar" parent="." instance=ExtResource("14_xh3ce")]
position = Vector2(136, -56)

[node name="Firebar2" parent="." instance=ExtResource("14_xh3ce")]
position = Vector2(232, -56)

[node name="Firebar3" parent="." instance=ExtResource("14_xh3ce")]
position = Vector2(328, -56)

[node name="Firebar4" parent="." instance=ExtResource("14_xh3ce")]
position = Vector2(872, -24)

[node name="Firebar5" parent="." instance=ExtResource("14_xh3ce")]
position = Vector2(888, -120)

[node name="Firebar6" parent="." instance=ExtResource("14_xh3ce")]
position = Vector2(1000, -40)

[node name="Firebar7" parent="." instance=ExtResource("14_xh3ce")]
position = Vector2(1240, -72)

[node name="Firebar8" parent="." instance=ExtResource("14_xh3ce")]
position = Vector2(1336, -72)

[node name="CastleBridge" parent="." instance=ExtResource("14_7abqx")]
position = Vector2(2248, -40)
length = 17

[node name="Bowser" parent="." instance=ExtResource("15_6bgvu")]
position = Vector2(2376, -48)

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

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

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

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

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

[node name="RedCoin2" parent="ChallengeNodes" instance=ExtResource("18_rsplc")]
position = Vector2(600, -152)
id = 1

[node name="InvisibleQuestionBlock" parent="ChallengeNodes" instance=ExtResource("11_ul44o")]
position = Vector2(1064, -136)
item = ExtResource("19_gcyt4")
metadata/r_coin_id = 2

[node name="RedCoin3" parent="ChallengeNodes" instance=ExtResource("18_rsplc")]
position = Vector2(1944, -24)
id = 3

[node name="RedCoin4" parent="ChallengeNodes" instance=ExtResource("18_rsplc")]
position = Vector2(2280, -120)
id = 4

[node name="InvisibleQuestionBlock2" parent="ChallengeNodes" instance=ExtResource("11_ul44o")]
position = Vector2(1352, -104)
item = ExtResource("20_iag7c")

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

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

[node name="InvisibleQuestionBlock" parent="Blocks" instance=ExtResource("11_ul44o")]
position = Vector2(1352, -72)

[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/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@104710" to="Tiles/@AnimatableBody2D@104710/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@104710" to="Tiles/@AnimatableBody2D@104710/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104710" to="Tiles/@AnimatableBody2D@104710" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104710" to="Tiles/@AnimatableBody2D@104710" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104710" to="Tiles/@AnimatableBody2D@104710/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104710" to="Tiles/@AnimatableBody2D@104710" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104710" to="Tiles/@AnimatableBody2D@104710/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@104711" to="Tiles/@AnimatableBody2D@104711/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@104711" to="Tiles/@AnimatableBody2D@104711/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104711" to="Tiles/@AnimatableBody2D@104711" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104711" to="Tiles/@AnimatableBody2D@104711" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104711" to="Tiles/@AnimatableBody2D@104711/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104711" to="Tiles/@AnimatableBody2D@104711" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104711" to="Tiles/@AnimatableBody2D@104711/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@104712" to="Tiles/@AnimatableBody2D@104712/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@104712" to="Tiles/@AnimatableBody2D@104712/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104712" to="Tiles/@AnimatableBody2D@104712" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104712" to="Tiles/@AnimatableBody2D@104712" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104712" to="Tiles/@AnimatableBody2D@104712/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104712" to="Tiles/@AnimatableBody2D@104712" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104712" to="Tiles/@AnimatableBody2D@104712/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@104713" to="Tiles/@AnimatableBody2D@104713/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@104713" to="Tiles/@AnimatableBody2D@104713/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104713" to="Tiles/@AnimatableBody2D@104713" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104713" to="Tiles/@AnimatableBody2D@104713" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104713" to="Tiles/@AnimatableBody2D@104713/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104713" to="Tiles/@AnimatableBody2D@104713" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104713" to="Tiles/@AnimatableBody2D@104713/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@104714" to="Tiles/@AnimatableBody2D@104714/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@104714" to="Tiles/@AnimatableBody2D@104714/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104714" to="Tiles/@AnimatableBody2D@104714" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104714" to="Tiles/@AnimatableBody2D@104714" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104714" to="Tiles/@AnimatableBody2D@104714/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104714" to="Tiles/@AnimatableBody2D@104714" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104714" to="Tiles/@AnimatableBody2D@104714/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@104715" to="Tiles/@AnimatableBody2D@104715/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@104715" to="Tiles/@AnimatableBody2D@104715/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104715" to="Tiles/@AnimatableBody2D@104715" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104715" to="Tiles/@AnimatableBody2D@104715" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104715" to="Tiles/@AnimatableBody2D@104715/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104715" to="Tiles/@AnimatableBody2D@104715" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104715" to="Tiles/@AnimatableBody2D@104715/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@104716" to="Tiles/@AnimatableBody2D@104716/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@104716" to="Tiles/@AnimatableBody2D@104716/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104716" to="Tiles/@AnimatableBody2D@104716" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104716" to="Tiles/@AnimatableBody2D@104716" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104716" to="Tiles/@AnimatableBody2D@104716/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104716" to="Tiles/@AnimatableBody2D@104716" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104716" to="Tiles/@AnimatableBody2D@104716/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@104717" to="Tiles/@AnimatableBody2D@104717/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@104717" to="Tiles/@AnimatableBody2D@104717/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104717" to="Tiles/@AnimatableBody2D@104717" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104717" to="Tiles/@AnimatableBody2D@104717" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@104717" to="Tiles/@AnimatableBody2D@104717/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104717" to="Tiles/@AnimatableBody2D@104717" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@104717" to="Tiles/@AnimatableBody2D@104717/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="victory_begin" from="CastleBridge" to="ChallengeNodes/CastleChallengeEnd" method="begin"]

[editable path="Bowser"]
