[gd_scene load_steps=13 format=4 uid="uid://cbtfhmc6h1vf7"]

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_nb3nt"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Mountain.json" id="2_t1ptu"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="4_cwj12"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="5_5r15g"]
[ext_resource type="PackedScene" uid="uid://githt8ci1xal" path="res://Scenes/Parts/StartCastle.tscn" id="7_n8at7"]
[ext_resource type="Script" uid="uid://bdq0373j5n5o0" path="res://Scripts/Parts/CameraRightLimit.gd" id="8_dnxbp"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="9_878l6"]
[ext_resource type="Script" uid="uid://cybpwmw4ywoow" path="res://Scripts/Parts/TileMapConverter.gd" id="10_cwj12"]
[ext_resource type="PackedScene" uid="uid://dkgu57is78lro" path="res://Scenes/Parts/PipeArea.tscn" id="10_t1ptu"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="11_5r15g"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="11_n8at7"]
[ext_resource type="PackedScene" uid="uid://cmbpqnq10arts" path="res://Scenes/Prefabs/Entities/Items/RedCoin.tscn" id="12_dnxbp"]

[node name="4-2" type="Node"]
script = ExtResource("1_nb3nt")
music = ExtResource("2_t1ptu")
theme = "Mountain"
campaign = "SMBS"
world_id = 4
level_id = 2
metadata/_custom_type_script = "uid://bcqr1v25ygedb"

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

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

[node name="StartCastle" parent="." instance=ExtResource("7_n8at7")]
position = Vector2(-216, -40)

[node name="CameraRightLimit" type="Node2D" parent="."]
position = Vector2(304, -80)
script = ExtResource("8_dnxbp")
metadata/_custom_type_script = "uid://bdq0373j5n5o0"

[node name="DropShadow" parent="." instance=ExtResource("9_878l6")]

[node name="PipeArea" parent="." instance=ExtResource("10_t1ptu")]
position = Vector2(-32, -16)
target_level = "uid://rw3nm4d1su58"

[node name="PipeArea2" parent="." instance=ExtResource("10_t1ptu")]
position = Vector2(96, -64)
target_level = "uid://rw3nm4d1su58"

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

[node name="LevelBG" parent="." instance=ExtResource("11_5r15g")]

[node name="ChallengeNodes" type="Node" parent="."]
script = ExtResource("11_n8at7")
metadata/_custom_type_script = "uid://cgm3opb5qudc1"

[node name="RedCoin" parent="ChallengeNodes" instance=ExtResource("12_dnxbp")]
position = Vector2(216, -8)

[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@59678" to="Tiles/@AnimatableBody2D@59678/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@59678" to="Tiles/@AnimatableBody2D@59678/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@59678" to="Tiles/@AnimatableBody2D@59678" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@59678" to="Tiles/@AnimatableBody2D@59678" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@59678" to="Tiles/@AnimatableBody2D@59678/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@59678" to="Tiles/@AnimatableBody2D@59678" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@59678" to="Tiles/@AnimatableBody2D@59678/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@59679" to="Tiles/@AnimatableBody2D@59679/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@59679" to="Tiles/@AnimatableBody2D@59679/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@59679" to="Tiles/@AnimatableBody2D@59679" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@59679" to="Tiles/@AnimatableBody2D@59679" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@59679" to="Tiles/@AnimatableBody2D@59679/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@59679" to="Tiles/@AnimatableBody2D@59679" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@59679" to="Tiles/@AnimatableBody2D@59679/BlockAnimations" method="bounce_block" unbinds=1]
