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

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_xy4p0"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Castle.json" id="2_f1yvk"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="4_l7ags"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="5_lrwhn"]
[ext_resource type="PackedScene" uid="uid://iq86u4w60yee" path="res://Scenes/Prefabs/Entities/Objects/Firebar.tscn" id="7_o2hcq"]
[ext_resource type="PackedScene" uid="uid://cxdj1ea1rt1r4" path="res://Scenes/Prefabs/Entities/Enemies/Podoboo.tscn" id="8_0i7xm"]
[ext_resource type="PackedScene" uid="uid://bc1mrna4kybhv" path="res://Scenes/Prefabs/Blocks/QuestionBlocks/QuestionBlock.tscn" id="9_4cb0o"]
[ext_resource type="PackedScene" uid="uid://dbjqtjhb2t4cn" path="res://Scenes/Prefabs/Entities/Items/FireFlower.tscn" id="10_p1pqf"]
[ext_resource type="JSON" path="res://Assets/Sprites/Enemies/BuzzyBeetleShell.json" id="11_06txv"]
[ext_resource type="PackedScene" uid="uid://duptcik2j0b04" path="res://Scenes/Prefabs/Entities/Enemies/Bowser.tscn" id="12_brkk5"]
[ext_resource type="PackedScene" uid="uid://c2ntyej6ddm72" path="res://Scenes/Prefabs/LevelObjects/CastleToad.tscn" id="13_07w58"]
[ext_resource type="PackedScene" uid="uid://dtpyjucfl16sw" path="res://Scenes/Prefabs/LevelObjects/CastleBridge.tscn" id="14_n7val"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="16_rveoc"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="17_06txv"]
[ext_resource type="PackedScene" uid="uid://c75cko8tyt467" path="res://Scenes/Prefabs/LevelObjects/CastleChallengeEnd.tscn" id="17_f1yvk"]
[ext_resource type="PackedScene" uid="uid://cmbpqnq10arts" path="res://Scenes/Prefabs/Entities/Items/RedCoin.tscn" id="18_f1yvk"]
[ext_resource type="PackedScene" uid="uid://58uk17ixtt4r" path="res://Scenes/Prefabs/Blocks/InvisibleBlocks/InvisibleQuestionBlock.tscn" id="19_6wq5i"]
[ext_resource type="PackedScene" uid="uid://ctx0nbkjf2osn" path="res://Scenes/Prefabs/Entities/Items/YoshiEgg.tscn" id="20_wa5b1"]
[ext_resource type="PackedScene" uid="uid://dmv5rl1ckkwsk" path="res://Scenes/Prefabs/LevelObjects/BowserFlameGenerator.tscn" id="21_f1yvk"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="22_6wq5i"]

[node name="3-4" type="Node"]
script = ExtResource("1_xy4p0")
music = ExtResource("2_f1yvk")
theme = "Castle"
time_limit = 300
world_id = 3
level_id = 4
metadata/_custom_type_script = "uid://bcqr1v25ygedb"

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

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

[node name="Tiles" parent="." instance=ExtResource("5_lrwhn")]
tile_map_data = PackedByteArray("[encoded data, 15876 characters]")

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

[node name="Firebar" parent="FireBars" instance=ExtResource("7_o2hcq")]
position = Vector2(56, -24)

[node name="Firebar2" parent="FireBars" instance=ExtResource("7_o2hcq")]
position = Vector2(136, -24)

[node name="Firebar3" parent="FireBars" instance=ExtResource("7_o2hcq")]
position = Vector2(216, -24)

[node name="Firebar4" parent="FireBars" instance=ExtResource("7_o2hcq")]
position = Vector2(616, -120)

[node name="Firebar5" parent="FireBars" instance=ExtResource("7_o2hcq")]
position = Vector2(776, -120)

[node name="Firebar6" parent="FireBars" instance=ExtResource("7_o2hcq")]
position = Vector2(776, -24)
scale = Vector2(-1, 1)
direction = 1

[node name="Firebar7" parent="FireBars" instance=ExtResource("7_o2hcq")]
position = Vector2(616, -24)
scale = Vector2(-1, 1)
direction = 1

[node name="Firebar8" parent="FireBars" instance=ExtResource("7_o2hcq")]
position = Vector2(1032, -120)
scale = Vector2(-1, 1)

[node name="Firebar9" parent="FireBars" instance=ExtResource("7_o2hcq")]
position = Vector2(1032, -24)
direction = 1

[node name="Podoboo" parent="." instance=ExtResource("8_0i7xm")]
position = Vector2(8, -80)

[node name="Podoboo2" parent="." instance=ExtResource("8_0i7xm")]
position = Vector2(168, -80)

[node name="QuestionBlock" parent="." instance=ExtResource("9_4cb0o")]
position = Vector2(440, -56)
item = ExtResource("10_p1pqf")
mushroom_if_small = true

[node name="Podoboo3" parent="." instance=ExtResource("8_0i7xm")]
position = Vector2(1160, -88)

[node name="Podoboo4" parent="." instance=ExtResource("8_0i7xm")]
position = Vector2(1304, -88)

[node name="Podoboo5" parent="." instance=ExtResource("8_0i7xm")]
position = Vector2(1400, -88)

[node name="Podoboo6" parent="." instance=ExtResource("8_0i7xm")]
position = Vector2(1496, -88)

[node name="Bowser" parent="." instance=ExtResource("12_brkk5")]
position = Vector2(1920, -48)

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

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

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

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

[node name="RedCoin3" parent="ChallengeNodes" instance=ExtResource("18_f1yvk")]
position = Vector2(696, -96)
id = 2

[node name="RedCoin4" parent="ChallengeNodes" instance=ExtResource("18_f1yvk")]
position = Vector2(1304, -72)
id = 3

[node name="RedCoin5" parent="ChallengeNodes" instance=ExtResource("18_f1yvk")]
position = Vector2(1848, -136)
id = 4

[node name="InvisibleQuestionBlock" parent="ChallengeNodes" instance=ExtResource("19_6wq5i")]
position = Vector2(856, -72)

[node name="InvisibleQuestionBlock2" parent="ChallengeNodes" instance=ExtResource("19_6wq5i")]
position = Vector2(872, -88)

[node name="InvisibleQuestionBlock3" parent="ChallengeNodes" instance=ExtResource("19_6wq5i")]
position = Vector2(888, -104)
item = ExtResource("20_wa5b1")

[node name="CastleChallengeEnd" parent="ChallengeNodes" instance=ExtResource("17_f1yvk")]
position = Vector2(2176, 0)

[node name="CastleToad" parent="." instance=ExtResource("13_07w58")]
position = Vector2(2176, 0)

[node name="CastleBridge" parent="." instance=ExtResource("14_n7val")]
position = Vector2(1800, -40)

[node name="DropShadow" parent="." instance=ExtResource("16_rveoc")]

[node name="EntityGenerator" parent="." instance=ExtResource("21_f1yvk")]
position = Vector2(1272, -136)

[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@23915" to="Tiles/@AnimatableBody2D@23915/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@23915" to="Tiles/@AnimatableBody2D@23915/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23915" to="Tiles/@AnimatableBody2D@23915" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23915" to="Tiles/@AnimatableBody2D@23915" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23915" to="Tiles/@AnimatableBody2D@23915/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23915" to="Tiles/@AnimatableBody2D@23915" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23915" to="Tiles/@AnimatableBody2D@23915/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="collected" from="Tiles/Coin" to="Tiles/Coin/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@23916" to="Tiles/@Node2D@23916/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@23917" to="Tiles/@Node2D@23917/LevelPersistance" method="set_as_active"]
[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@23918" to="Tiles/@AnimatableBody2D@23918/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@23918" to="Tiles/@AnimatableBody2D@23918/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@23918" to="Tiles/@AnimatableBody2D@23918" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23918" to="Tiles/@AnimatableBody2D@23918" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23918" to="Tiles/@AnimatableBody2D@23918/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23918" to="Tiles/@AnimatableBody2D@23918" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23918" to="Tiles/@AnimatableBody2D@23918/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@23919" to="Tiles/@AnimatableBody2D@23919/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@23919" to="Tiles/@AnimatableBody2D@23919/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@23919" to="Tiles/@AnimatableBody2D@23919" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23919" to="Tiles/@AnimatableBody2D@23919" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23919" to="Tiles/@AnimatableBody2D@23919/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23919" to="Tiles/@AnimatableBody2D@23919" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23919" to="Tiles/@AnimatableBody2D@23919/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@23920" to="Tiles/@AnimatableBody2D@23920/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@23920" to="Tiles/@AnimatableBody2D@23920/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@23920" to="Tiles/@AnimatableBody2D@23920" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23920" to="Tiles/@AnimatableBody2D@23920" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23920" to="Tiles/@AnimatableBody2D@23920/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23920" to="Tiles/@AnimatableBody2D@23920" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23920" to="Tiles/@AnimatableBody2D@23920/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@23921" to="Tiles/@AnimatableBody2D@23921/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@23921" to="Tiles/@AnimatableBody2D@23921/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@23921" to="Tiles/@AnimatableBody2D@23921" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23921" to="Tiles/@AnimatableBody2D@23921" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23921" to="Tiles/@AnimatableBody2D@23921/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23921" to="Tiles/@AnimatableBody2D@23921" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23921" to="Tiles/@AnimatableBody2D@23921/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@23922" to="Tiles/@AnimatableBody2D@23922/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@23922" to="Tiles/@AnimatableBody2D@23922/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@23922" to="Tiles/@AnimatableBody2D@23922" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23922" to="Tiles/@AnimatableBody2D@23922" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@23922" to="Tiles/@AnimatableBody2D@23922/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23922" to="Tiles/@AnimatableBody2D@23922" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@23922" to="Tiles/@AnimatableBody2D@23922/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@23923" to="Tiles/@Area2D@23923" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23924" to="Tiles/@Area2D@23924" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23925" to="Tiles/@Area2D@23925" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23926" to="Tiles/@Area2D@23926" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23927" to="Tiles/@Area2D@23927" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23928" to="Tiles/@Area2D@23928" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23929" to="Tiles/@Area2D@23929" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23930" to="Tiles/@Area2D@23930" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23931" to="Tiles/@Area2D@23931" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23932" to="Tiles/@Area2D@23932" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23933" to="Tiles/@Area2D@23933" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23934" to="Tiles/@Area2D@23934" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23935" to="Tiles/@Area2D@23935" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23936" to="Tiles/@Area2D@23936" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23937" to="Tiles/@Area2D@23937" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23938" to="Tiles/@Area2D@23938" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23939" to="Tiles/@Area2D@23939" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23940" to="Tiles/@Area2D@23940" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23941" to="Tiles/@Area2D@23941" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23942" to="Tiles/@Area2D@23942" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23943" to="Tiles/@Area2D@23943" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23944" to="Tiles/@Area2D@23944" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23945" to="Tiles/@Area2D@23945" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23946" to="Tiles/@Area2D@23946" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23947" to="Tiles/@Area2D@23947" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23948" to="Tiles/@Area2D@23948" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23949" to="Tiles/@Area2D@23949" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23950" to="Tiles/@Area2D@23950" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23951" to="Tiles/@Area2D@23951" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23952" to="Tiles/@Area2D@23952" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23953" to="Tiles/@Area2D@23953" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23954" to="Tiles/@Area2D@23954" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@23955" to="Tiles/@Area2D@23955" method="area_entered"]
[connection signal="axe_touched" from="CastleBridge" to="Bowser" method="bridge_fall"]
[connection signal="victory_begin" from="CastleBridge" to="ChallengeNodes/CastleChallengeEnd" method="begin"]
[connection signal="victory_begin" from="CastleBridge" to="CastleToad" method="begin"]

[editable path="Bowser"]
