[gd_scene load_steps=18 format=4 uid="uid://db4okqxk3o10p"]

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_dtm57"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Castle.json" id="2_5nbcb"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="3_4k3yh"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="4_fdui6"]
[ext_resource type="PackedScene" uid="uid://dsa8lpl7n8ge0" path="res://Scenes/Prefabs/Blocks/BrickBlocks/BrickBlock.tscn" id="5_2igv4"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="5_jq5rr"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="6_5nbcb"]
[ext_resource type="PackedScene" uid="uid://iq86u4w60yee" path="res://Scenes/Prefabs/Entities/Objects/Firebar.tscn" id="8_fasgp"]
[ext_resource type="JSON" path="res://Assets/Sprites/Enemies/Barrel.json" id="10_0c7dd"]
[ext_resource type="PackedScene" uid="uid://duptcik2j0b04" path="res://Scenes/Prefabs/Entities/Enemies/Bowser.tscn" id="11_5nbcb"]
[ext_resource type="PackedScene" uid="uid://dtpyjucfl16sw" path="res://Scenes/Prefabs/LevelObjects/CastleBridge.tscn" id="12_pu02p"]
[ext_resource type="PackedScene" uid="uid://c2ntyej6ddm72" path="res://Scenes/Prefabs/LevelObjects/CastleToad.tscn" id="12_r1ifj"]
[ext_resource type="PackedScene" uid="uid://dkgu57is78lro" path="res://Scenes/Parts/PipeArea.tscn" id="13_r1ifj"]
[ext_resource type="PackedScene" uid="uid://cxdj1ea1rt1r4" path="res://Scenes/Prefabs/Entities/Enemies/Podoboo.tscn" id="14_pu02p"]
[ext_resource type="PackedScene" uid="uid://c75cko8tyt467" path="res://Scenes/Prefabs/LevelObjects/CastleChallengeEnd.tscn" id="16_d68ub"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="37_2igv4"]
[ext_resource type="PackedScene" uid="uid://d3gnwmvds4ors" path="res://Scenes/Prefabs/Entities/Items/SpinningRedCoin.tscn" id="38_81dpb"]

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

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

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

[node name="Player" parent="." instance=ExtResource("5_jq5rr")]
position = Vector2(-160, -64)

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

[node name="Firebar" parent="." instance=ExtResource("8_fasgp")]
position = Vector2(104, -40)
length = 10

[node name="CastleBridge" parent="." instance=ExtResource("12_pu02p")]
position = Vector2(328, -24)
length = 17

[node name="Bowser" parent="." instance=ExtResource("11_5nbcb")]
position = Vector2(456, -32)

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

[node name="CastleToad" parent="." instance=ExtResource("12_r1ifj")]
position = Vector2(688, 0)

[node name="PipeArea" parent="." instance=ExtResource("13_r1ifj")]
position = Vector2(-208, -96)
exit_only = true

[node name="Podoboo" parent="." instance=ExtResource("14_pu02p")]
position = Vector2(-64, -80)

[node name="Podoboo2" parent="." instance=ExtResource("14_pu02p")]
position = Vector2(56, -80)

[node name="BrickBlock" parent="." instance=ExtResource("5_2igv4")]
position = Vector2(328, -104)

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

[node name="BrickBlock" parent="ChallengeNodes" instance=ExtResource("5_2igv4")]
position = Vector2(328, -104)
item = ExtResource("38_81dpb")
metadata/r_coin_id = 4

[node name="CastleChallengeEnd" parent="ChallengeNodes" instance=ExtResource("16_d68ub")]
position = Vector2(688, 0)

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

[editable path="Bowser"]
