[gd_scene load_steps=19 format=4 uid="uid://bg8e3ud37sywq"]

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_o1qhp"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Castle.json" id="2_o1ta1"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="5_im5bd"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="6_e60bp"]
[ext_resource type="PackedScene" uid="uid://iq86u4w60yee" path="res://Scenes/Prefabs/Entities/Objects/Firebar.tscn" id="7_hphgw"]
[ext_resource type="PackedScene" uid="uid://c2ntyej6ddm72" path="res://Scenes/Prefabs/LevelObjects/CastleToad.tscn" id="8_gabvr"]
[ext_resource type="PackedScene" uid="uid://dtpyjucfl16sw" path="res://Scenes/Prefabs/LevelObjects/CastleBridge.tscn" id="9_sbqa4"]
[ext_resource type="PackedScene" uid="uid://duptcik2j0b04" path="res://Scenes/Prefabs/Entities/Enemies/Bowser.tscn" id="10_csc3t"]
[ext_resource type="PackedScene" uid="uid://b3or4h5ke6lni" path="res://Scenes/Prefabs/Entities/Objects/SmallSidewaysPlatform.tscn" id="11_o1ta1"]
[ext_resource type="PackedScene" uid="uid://r6dlmokkdyar" path="res://Scenes/Prefabs/Entities/Enemies/GreenKoopaTroopa.tscn" id="12_8j1yq"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="13_ofael"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="13_xjefb"]
[ext_resource type="Script" uid="uid://cybpwmw4ywoow" path="res://Scripts/Parts/TileMapConverter.gd" id="14_ofael"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="15_csc3t"]
[ext_resource type="PackedScene" uid="uid://cmbpqnq10arts" path="res://Scenes/Prefabs/Entities/Items/RedCoin.tscn" id="16_o1ta1"]
[ext_resource type="PackedScene" uid="uid://58uk17ixtt4r" path="res://Scenes/Prefabs/Blocks/InvisibleBlocks/InvisibleQuestionBlock.tscn" id="17_5x63f"]
[ext_resource type="PackedScene" uid="uid://ctx0nbkjf2osn" path="res://Scenes/Prefabs/Entities/Items/YoshiEgg.tscn" id="18_ai06k"]
[ext_resource type="PackedScene" uid="uid://c75cko8tyt467" path="res://Scenes/Prefabs/LevelObjects/CastleChallengeEnd.tscn" id="19_o1ta1"]

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

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

[node name="Tiles" parent="." instance=ExtResource("6_e60bp")]
tile_map_data = PackedByteArray("[encoded data, 19732 characters]")

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

[node name="Firebar" parent="FireBar" instance=ExtResource("7_hphgw")]
position = Vector2(56, -120)

[node name="Firebar2" parent="FireBar" instance=ExtResource("7_hphgw")]
position = Vector2(344, -120)

[node name="Firebar3" parent="FireBar" instance=ExtResource("7_hphgw")]
position = Vector2(456, -56)

[node name="Firebar4" parent="FireBar" instance=ExtResource("7_hphgw")]
position = Vector2(600, -56)

[node name="Firebar5" parent="FireBar" instance=ExtResource("7_hphgw")]
position = Vector2(840, -120)

[node name="Firebar6" parent="FireBar" instance=ExtResource("7_hphgw")]
position = Vector2(968, -120)

[node name="Firebar7" parent="FireBar" instance=ExtResource("7_hphgw")]
position = Vector2(1096, -120)

[node name="Firebar8" parent="FireBar" instance=ExtResource("7_hphgw")]
position = Vector2(1208, -56)

[node name="Firebar9" parent="FireBar" instance=ExtResource("7_hphgw")]
position = Vector2(1368, -56)

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

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

[node name="Bowser" parent="." instance=ExtResource("10_csc3t")]
position = Vector2(1912, -48)

[node name="SmallSidewaysPlatform" parent="." instance=ExtResource("11_o1ta1")]
position = Vector2(1952, -112)

[node name="GreenKoopaTroopa" parent="." instance=ExtResource("12_8j1yq")]
position = Vector2(1064, -64)

[node name="DropShadow" parent="." instance=ExtResource("13_xjefb")]

[node name="LevelBG" parent="." instance=ExtResource("13_ofael")]
particles = 3

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

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

[node name="RedCoin" parent="ChallengeNodes" instance=ExtResource("16_o1ta1")]
position = Vector2(152, -120)

[node name="RedCoin2" parent="ChallengeNodes" instance=ExtResource("16_o1ta1")]
position = Vector2(536, -8)
id = 1

[node name="RedCoin3" parent="ChallengeNodes" instance=ExtResource("16_o1ta1")]
position = Vector2(968, -72)
id = 2

[node name="RedCoin4" parent="ChallengeNodes" instance=ExtResource("16_o1ta1")]
position = Vector2(1432, -56)
id = 3

[node name="RedCoin5" parent="ChallengeNodes" instance=ExtResource("16_o1ta1")]
position = Vector2(1960, -136)
id = 4

[node name="InvisibleQuestionBlock" parent="ChallengeNodes" instance=ExtResource("17_5x63f")]
position = Vector2(504, -120)
item = ExtResource("18_ai06k")

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

[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="axe_touched" from="CastleBridge" to="Bowser" method="bridge_fall"]
[connection signal="victory_begin" from="CastleBridge" to="CastleToad" method="begin"]
[connection signal="victory_begin" from="CastleBridge" to="ChallengeNodes/CastleChallengeEnd" method="begin"]
