[gd_scene load_steps=24 format=4 uid="uid://2ianqfjihktc"]

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_vxrxt"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Castle.json" id="2_bibmg"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="3_gtwq2"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="5_mbdaw"]
[ext_resource type="PackedScene" uid="uid://iq86u4w60yee" path="res://Scenes/Prefabs/Entities/Objects/Firebar.tscn" id="7_vp53t"]
[ext_resource type="PackedScene" uid="uid://f48a0jmx334d" path="res://Scenes/Prefabs/Entities/Objects/SmallElevatorPlatform.tscn" id="8_gtwq2"]
[ext_resource type="PackedScene" uid="uid://dtpyjucfl16sw" path="res://Scenes/Prefabs/LevelObjects/CastleBridge.tscn" id="10_ik07c"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="10_kd7lf"]
[ext_resource type="PackedScene" uid="uid://cmbpqnq10arts" path="res://Scenes/Prefabs/Entities/Items/RedCoin.tscn" id="11_40syx"]
[ext_resource type="PackedScene" uid="uid://duptcik2j0b04" path="res://Scenes/Prefabs/Entities/Enemies/Bowser.tscn" id="11_q4etu"]
[ext_resource type="PackedScene" uid="uid://b3or4h5ke6lni" path="res://Scenes/Prefabs/Entities/Objects/SmallSidewaysPlatform.tscn" id="12_3nhmb"]
[ext_resource type="PackedScene" uid="uid://58uk17ixtt4r" path="res://Scenes/Prefabs/Blocks/InvisibleBlocks/InvisibleQuestionBlock.tscn" id="12_5sds7"]
[ext_resource type="PackedScene" uid="uid://c2ntyej6ddm72" path="res://Scenes/Prefabs/LevelObjects/CastleToad.tscn" id="13_2jw65"]
[ext_resource type="PackedScene" uid="uid://ctx0nbkjf2osn" path="res://Scenes/Prefabs/Entities/Items/YoshiEgg.tscn" id="13_p26l4"]
[ext_resource type="PackedScene" uid="uid://c75cko8tyt467" path="res://Scenes/Prefabs/LevelObjects/CastleChallengeEnd.tscn" id="14_40syx"]
[ext_resource type="PackedScene" uid="uid://cxdj1ea1rt1r4" path="res://Scenes/Prefabs/Entities/Enemies/Podoboo.tscn" id="14_ik07c"]
[ext_resource type="PackedScene" uid="uid://bc1mrna4kybhv" path="res://Scenes/Prefabs/Blocks/QuestionBlocks/QuestionBlock.tscn" id="15_3nhmb"]
[ext_resource type="PackedScene" uid="uid://dbjqtjhb2t4cn" path="res://Scenes/Prefabs/Entities/Items/FireFlower.tscn" id="16_2jw65"]
[ext_resource type="JSON" path="res://Assets/Sprites/Enemies/GreenKoopaShell.json" id="16_5sds7"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="17_n7idk"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="23_5sds7"]
[ext_resource type="PackedScene" uid="uid://dmv5rl1ckkwsk" path="res://Scenes/Prefabs/LevelObjects/BowserFlameGenerator.tscn" id="24_bibmg"]
[ext_resource type="Script" uid="uid://co8w6sjp0t2dm" path="res://Scripts/Parts/GlobalObjectNode.gd" id="24_p26l4"]

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

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

[node name="Tiles" parent="." instance=ExtResource("3_gtwq2")]
tile_map_data = PackedByteArray("[encoded data, 17188 characters]")

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

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

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

[node name="Firebar2" parent="FireBars" instance=ExtResource("7_vp53t")]
position = Vector2(633, -120)

[node name="Firebar3" parent="FireBars" instance=ExtResource("7_vp53t")]
position = Vector2(728, -56)

[node name="Firebar4" parent="FireBars" instance=ExtResource("7_vp53t")]
position = Vector2(920, -56)

[node name="Firebar5" parent="FireBars" instance=ExtResource("7_vp53t")]
position = Vector2(1064, -104)

[node name="Firebar6" parent="FireBars" instance=ExtResource("7_vp53t")]
position = Vector2(1224, -40)
scale = Vector2(-1, 1)
direction = 1

[node name="ElevatorPlatform" parent="." instance=ExtResource("8_gtwq2")]
position = Vector2(1128, -112)
vertical_direction = -1

[node name="ElevatorPlatform2" parent="." instance=ExtResource("8_gtwq2")]
position = Vector2(1128, 16)
vertical_direction = -1

[node name="ElevatorPlatform3" parent="." instance=ExtResource("8_gtwq2")]
position = Vector2(1176, -16)

[node name="ElevatorPlatform4" parent="." instance=ExtResource("8_gtwq2")]
position = Vector2(1176, -144)

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

[node name="RedCoin" parent="ChallengeNodes" instance=ExtResource("11_40syx")]
position = Vector2(280, -152)

[node name="RedCoin5" parent="ChallengeNodes" instance=ExtResource("11_40syx")]
position = Vector2(920, -72)
id = 1

[node name="RedCoin2" parent="ChallengeNodes" instance=ExtResource("11_40syx")]
position = Vector2(1080, -152)
id = 2

[node name="RedCoin3" parent="ChallengeNodes" instance=ExtResource("11_40syx")]
position = Vector2(1560, -120)
id = 3

[node name="RedCoin4" parent="ChallengeNodes" instance=ExtResource("11_40syx")]
position = Vector2(1896, -120)
id = 4

[node name="InvisibleQuestionBlock" parent="ChallengeNodes" instance=ExtResource("12_5sds7")]
position = Vector2(1400, -88)

[node name="InvisibleQuestionBlock2" parent="ChallengeNodes" instance=ExtResource("12_5sds7")]
position = Vector2(1400, -152)
item = ExtResource("13_p26l4")

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

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

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

[node name="Bowser" parent="." instance=ExtResource("11_q4etu")]
position = Vector2(1944, -48)

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

[node name="SmallSidewaysPlatform" parent="." instance=ExtResource("12_3nhmb")]
position = Vector2(1928, -112)

[node name="Podoboo" parent="." instance=ExtResource("14_ik07c")]
position = Vector2(8, -104)

[node name="Podoboo2" parent="." instance=ExtResource("14_ik07c")]
position = Vector2(232, -104)

[node name="QuestionBlock" parent="." instance=ExtResource("15_3nhmb")]
position = Vector2(120, -152)
item = ExtResource("16_2jw65")
mushroom_if_small = true

[node name="DropShadow" parent="." instance=ExtResource("17_n7idk")]

[node name="SecondQuestNode" type="Node" parent="."]
script = ExtResource("24_p26l4")
enabled = false
metadata/_custom_type_script = "uid://co8w6sjp0t2dm"

[node name="Firebar7" parent="SecondQuestNode" instance=ExtResource("7_vp53t")]
position = Vector2(824, 8)

[node name="Firebar8" parent="SecondQuestNode" instance=ExtResource("7_vp53t")]
position = Vector2(632, 8)
direction = 1

[node name="Firebar9" parent="SecondQuestNode" instance=ExtResource("7_vp53t")]
position = Vector2(440, 8)
direction = 1

[node name="Firebar10" parent="SecondQuestNode" instance=ExtResource("7_vp53t")]
position = Vector2(1400, -24)
direction = 1

[node name="Podoboo3" parent="SecondQuestNode" instance=ExtResource("14_ik07c")]
position = Vector2(72, -104)

[node name="Podoboo4" parent="SecondQuestNode" instance=ExtResource("14_ik07c")]
position = Vector2(1496, -80)

[node name="Podoboo5" parent="SecondQuestNode" instance=ExtResource("14_ik07c")]
position = Vector2(1560, -80)

[node name="Firebar11" parent="SecondQuestNode" instance=ExtResource("7_vp53t")]
position = Vector2(120, -88)
direction = 1

[node name="EntityGenerator" parent="." instance=ExtResource("24_bibmg")]
position = Vector2(1240, -136)

[connection signal="collected" from="Tiles/Coin" to="Tiles/Coin/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@29584" to="Tiles/@Node2D@29584/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@29585" to="Tiles/@Node2D@29585/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@29586" to="Tiles/@Node2D@29586/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@29587" to="Tiles/@Node2D@29587/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@29588" to="Tiles/@Node2D@29588/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@29589" to="Tiles/@AnimatableBody2D@29589/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@29589" to="Tiles/@AnimatableBody2D@29589/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@29589" to="Tiles/@AnimatableBody2D@29589" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@29589" to="Tiles/@AnimatableBody2D@29589" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@29589" to="Tiles/@AnimatableBody2D@29589/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@29589" to="Tiles/@AnimatableBody2D@29589" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@29589" to="Tiles/@AnimatableBody2D@29589/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@29590" to="Tiles/@AnimatableBody2D@29590/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@29590" to="Tiles/@AnimatableBody2D@29590/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@29590" to="Tiles/@AnimatableBody2D@29590" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@29590" to="Tiles/@AnimatableBody2D@29590" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@29590" to="Tiles/@AnimatableBody2D@29590/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@29590" to="Tiles/@AnimatableBody2D@29590" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@29590" to="Tiles/@AnimatableBody2D@29590/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@29591" to="Tiles/@AnimatableBody2D@29591/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@29591" to="Tiles/@AnimatableBody2D@29591/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@29591" to="Tiles/@AnimatableBody2D@29591" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@29591" to="Tiles/@AnimatableBody2D@29591" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@29591" to="Tiles/@AnimatableBody2D@29591/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@29591" to="Tiles/@AnimatableBody2D@29591" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@29591" to="Tiles/@AnimatableBody2D@29591/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@29592" to="Tiles/@AnimatableBody2D@29592/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@29592" to="Tiles/@AnimatableBody2D@29592/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@29592" to="Tiles/@AnimatableBody2D@29592" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@29592" to="Tiles/@AnimatableBody2D@29592" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@29592" to="Tiles/@AnimatableBody2D@29592/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@29592" to="Tiles/@AnimatableBody2D@29592" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@29592" to="Tiles/@AnimatableBody2D@29592/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@29593" to="Tiles/@AnimatableBody2D@29593/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@29593" to="Tiles/@AnimatableBody2D@29593/LevelPersistance" method="set_as_active"]
[connection signal="item_changed" from="Tiles/@AnimatableBody2D@29593" to="Tiles/@AnimatableBody2D@29593" method="check_brick_empty"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@29593" to="Tiles/@AnimatableBody2D@29593" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@29593" to="Tiles/@AnimatableBody2D@29593/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@29593" to="Tiles/@AnimatableBody2D@29593" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@29593" to="Tiles/@AnimatableBody2D@29593/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@29594" to="Tiles/@Area2D@29594" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29595" to="Tiles/@Area2D@29595" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29596" to="Tiles/@Area2D@29596" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29597" to="Tiles/@Area2D@29597" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29598" to="Tiles/@Area2D@29598" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29599" to="Tiles/@Area2D@29599" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29600" to="Tiles/@Area2D@29600" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29601" to="Tiles/@Area2D@29601" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29602" to="Tiles/@Area2D@29602" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29603" to="Tiles/@Area2D@29603" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29604" to="Tiles/@Area2D@29604" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29605" to="Tiles/@Area2D@29605" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29606" to="Tiles/@Area2D@29606" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29607" to="Tiles/@Area2D@29607" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29608" to="Tiles/@Area2D@29608" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29609" to="Tiles/@Area2D@29609" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29610" to="Tiles/@Area2D@29610" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29611" to="Tiles/@Area2D@29611" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29612" to="Tiles/@Area2D@29612" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29613" to="Tiles/@Area2D@29613" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29614" to="Tiles/@Area2D@29614" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29615" to="Tiles/@Area2D@29615" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29616" to="Tiles/@Area2D@29616" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29617" to="Tiles/@Area2D@29617" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29618" to="Tiles/@Area2D@29618" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29619" to="Tiles/@Area2D@29619" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29620" to="Tiles/@Area2D@29620" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29621" to="Tiles/@Area2D@29621" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29622" to="Tiles/@Area2D@29622" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29623" to="Tiles/@Area2D@29623" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29624" to="Tiles/@Area2D@29624" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29625" to="Tiles/@Area2D@29625" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29626" to="Tiles/@Area2D@29626" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29627" to="Tiles/@Area2D@29627" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29628" to="Tiles/@Area2D@29628" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29629" to="Tiles/@Area2D@29629" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29630" to="Tiles/@Area2D@29630" method="area_entered"]
[connection signal="area_entered" from="Tiles/@Area2D@29631" to="Tiles/@Area2D@29631" 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"]
