[gd_scene load_steps=20 format=4 uid="uid://b427j864nhby4"]

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_c42te"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Castle.json" id="2_o6woj"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="4_fiwts"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="5_7ghdv"]
[ext_resource type="PackedScene" uid="uid://kj5pw3xhq8f7" path="res://Scenes/Prefabs/Entities/Enemies/RedPiranhaPlant.tscn" id="7_hy4dy"]
[ext_resource type="PackedScene" uid="uid://doo8617qiyp77" path="res://Scenes/Prefabs/Entities/Enemies/BuzzyBeetle.tscn" id="8_oixb1"]
[ext_resource type="PackedScene" uid="uid://dkgu57is78lro" path="res://Scenes/Parts/PipeArea.tscn" id="8_tdsxt"]
[ext_resource type="PackedScene" uid="uid://bjysym6bhxljv" path="res://Scenes/Prefabs/Entities/Enemies/BowsersBro.tscn" id="10_o6woj"]
[ext_resource type="PackedScene" uid="uid://bm8obwlkm56wb" path="res://Scenes/Prefabs/Entities/Objects/FallingPlatform.tscn" id="11_xvit5"]
[ext_resource type="PackedScene" uid="uid://iq86u4w60yee" path="res://Scenes/Prefabs/Entities/Objects/Firebar.tscn" id="12_8y1pn"]
[ext_resource type="PackedScene" uid="uid://dtpyjucfl16sw" path="res://Scenes/Prefabs/LevelObjects/CastleBridge.tscn" id="14_jul2v"]
[ext_resource type="PackedScene" uid="uid://pfhvflypjq6y" path="res://Scenes/Prefabs/Entities/Enemies/TrueBowser.tscn" id="15_juebf"]
[ext_resource type="Script" uid="uid://cybpwmw4ywoow" path="res://Scripts/Parts/TileMapConverter.gd" id="16_8y1pn"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="16_o6woj"]
[ext_resource type="PackedScene" uid="uid://k1krjice0kia" path="res://Scenes/Prefabs/LevelObjects/LostLevelsEndingDoor.tscn" id="16_xvit5"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="17_8y1pn"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="17_jtpt3"]
[ext_resource type="PackedScene" uid="uid://cmbpqnq10arts" path="res://Scenes/Prefabs/Entities/Items/RedCoin.tscn" id="18_jtpt3"]
[ext_resource type="PackedScene" uid="uid://c75cko8tyt467" path="res://Scenes/Prefabs/LevelObjects/CastleChallengeEnd.tscn" id="19_jtpt3"]

[node name="8-4d" type="Node"]
script = ExtResource("1_c42te")
music = ExtResource("2_o6woj")
theme = "Castle"
campaign = "SMBLL"
world_id = 8
level_id = 4
metadata/_custom_type_script = "uid://bcqr1v25ygedb"

[node name="Player" parent="." instance=ExtResource("4_fiwts")]
position = Vector2(-232, 0)

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

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

[node name="RedPirannhaPlant" parent="Enemies" instance=ExtResource("7_hy4dy")]
position = Vector2(-192, -32)

[node name="RedPirannhaPlant2" parent="Enemies" instance=ExtResource("7_hy4dy")]
position = Vector2(-16, 0)

[node name="RedPirannhaPlant3" parent="Enemies" instance=ExtResource("7_hy4dy")]
position = Vector2(448, -48)
rotation = 3.14159

[node name="BuzzyBeetle" parent="Enemies" instance=ExtResource("8_oixb1")]
position = Vector2(664, -64)

[node name="PipeArea" parent="." instance=ExtResource("8_tdsxt")]
position = Vector2(-192, -32)
exit_only = true

[node name="PipeArea2" parent="." instance=ExtResource("8_tdsxt")]
position = Vector2(-16, 0)
target_level = "uid://ojlyl3tabp2p"

[node name="BowsersBro" parent="." instance=ExtResource("10_o6woj")]
position = Vector2(136, -48)

[node name="FallingPlatform" parent="." instance=ExtResource("11_xvit5")]
position = Vector2(384, -32)

[node name="Firebar" parent="." instance=ExtResource("12_8y1pn")]
position = Vector2(1176, -120)

[node name="LostLevelsEndingDoor" parent="." instance=ExtResource("16_xvit5")]
position = Vector2(1472, 0)

[node name="CastleBridge" parent="." instance=ExtResource("14_jul2v")]
position = Vector2(1096, -40)
end_timer = true
do_tally = false

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

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

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

[node name="LevelBG" parent="." instance=ExtResource("17_jtpt3")]

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

[node name="RedCoin" parent="ChallengeNodes" instance=ExtResource("18_jtpt3")]
position = Vector2(472, -72)
id = 4

[node name="CastleChallengeEnd" parent="ChallengeNodes" instance=ExtResource("19_jtpt3")]
position = Vector2(1472, 0)

[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@72501" to="Tiles/@AnimatableBody2D@72501/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@72501" to="Tiles/@AnimatableBody2D@72501/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@72501" to="Tiles/@AnimatableBody2D@72501" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@72501" to="Tiles/@AnimatableBody2D@72501" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@72501" to="Tiles/@AnimatableBody2D@72501/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@72501" to="Tiles/@AnimatableBody2D@72501" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@72501" to="Tiles/@AnimatableBody2D@72501/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="axe_touched" from="CastleBridge" to="Bowser" method="bridge_fall"]
[connection signal="victory_begin" from="CastleBridge" to="LostLevelsEndingDoor" method="begin"]
[connection signal="victory_begin" from="CastleBridge" to="ChallengeNodes/CastleChallengeEnd" method="begin"]
