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

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_ukpdq"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Mountain.json" id="2_0dpy4"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="4_qdrdb"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="5_6u570"]
[ext_resource type="PackedScene" uid="uid://c6loucilra6da" path="res://Scenes/Prefabs/LevelObjects/EndFlagpole.tscn" id="7_0le7c"]
[ext_resource type="PackedScene" uid="uid://byqmn8yi7iuac" path="res://Scenes/Prefabs/LevelObjects/EndSmallCastle.tscn" id="8_6h2ch"]
[ext_resource type="Script" uid="uid://bdq0373j5n5o0" path="res://Scripts/Parts/CameraRightLimit.gd" id="9_qdrdb"]
[ext_resource type="PackedScene" uid="uid://dkgu57is78lro" path="res://Scenes/Parts/PipeArea.tscn" id="10_or54s"]
[ext_resource type="PackedScene" uid="uid://c6t324yc5gx7p" path="res://Scenes/Parts/TeleportPipeArea.tscn" id="11_0le7c"]
[ext_resource type="PackedScene" uid="uid://c145qqkvy8pr5" path="res://Scenes/Parts/DecoTiles.tscn" id="12_6h2ch"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="13_0dpy4"]
[ext_resource type="Script" uid="uid://cybpwmw4ywoow" path="res://Scripts/Parts/TileMapConverter.gd" id="14_0dpy4"]
[ext_resource type="Script" uid="uid://cnheej0sxmoxg" path="res://Scripts/Parts/PlayerDetection.gd" id="14_ewhtf"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="14_g04wf"]
[ext_resource type="PackedScene" uid="uid://b0peppjq7jrcp" path="res://Scenes/Parts/WarpZoneCameraLimit.tscn" id="15_g04wf"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="18_73mxt"]
[ext_resource type="PackedScene" uid="uid://cmbpqnq10arts" path="res://Scenes/Prefabs/Entities/Items/RedCoin.tscn" id="19_rrs62"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_dwavm"]
size = Vector2(18, 82)

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

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

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

[node name="CameraRightLimit" type="Node2D" parent="."]
position = Vector2(288, 0)
script = ExtResource("9_qdrdb")
metadata/_custom_type_script = "uid://bdq0373j5n5o0"

[node name="EndFlagpole" parent="." instance=ExtResource("7_0le7c")]
position = Vector2(120, 0)

[node name="EndSmallCastle" parent="." instance=ExtResource("8_6h2ch")]
position = Vector2(216, 0)

[node name="CameraRightLimit" parent="EndSmallCastle" index="1"]
position = Vector2(808, 0)

[node name="PipeArea" parent="." instance=ExtResource("10_or54s")]
position = Vector2(-208, -64)
exit_only = true

[node name="TeleportPipeArea" parent="." node_paths=PackedStringArray("connecting_pipe") instance=ExtResource("11_0le7c")]
position = Vector2(944, -16)
connecting_pipe = NodePath("../PipeArea")
enter_direction = 3

[node name="DecoTiles" parent="." instance=ExtResource("12_6h2ch")]
tile_map_data = PackedByteArray("AAAbAP//AAAAAAAAAAAcAP//AAACAAAAAAAsAP//AAAAAAAAAAAtAP//AAACAAAAAAAyAP//AAAAAAAAAAAzAP//AAABAAAAAAA0AP//AAACAAAAAAA4AP3/AAAEAAAAAAA4AP7/AAAEAAEAAAA4AP//AAAAAAEAAAA2AP7/AAADAAEAAAA2AP//AAADAAEAAAAlAP//AAADAAEAAAAdAP//AAADAAEAAAAdAP7/AAADAAAAAAAlAP7/AAADAAAAAAA2AP3/AAADAAAAAAA=")

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

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

[node name="WarpZoneCameraLimit" parent="." instance=ExtResource("15_g04wf")]
position = Vector2(288, -208)
y_limit = -999

[node name="PlayerDetection" type="Area2D" parent="WarpZoneCameraLimit"]
position = Vector2(-111.037476, 40.521454)
script = ExtResource("14_ewhtf")
metadata/_custom_type_script = "uid://cnheej0sxmoxg"

[node name="CollisionShape2D" type="CollisionShape2D" parent="WarpZoneCameraLimit/PlayerDetection"]
position = Vector2(-32.962524, -40.521454)
shape = SubResource("RectangleShape2D_dwavm")

[node name="LevelBG" parent="." instance=ExtResource("14_g04wf")]

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

[node name="RedCoin" parent="ChallengeNodes" instance=ExtResource("19_rrs62")]
position = Vector2(616, -56)
id = 4

[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@106389" to="Tiles/@AnimatableBody2D@106389/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@106389" to="Tiles/@AnimatableBody2D@106389/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106389" to="Tiles/@AnimatableBody2D@106389" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106389" to="Tiles/@AnimatableBody2D@106389" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106389" to="Tiles/@AnimatableBody2D@106389/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@106389" to="Tiles/@AnimatableBody2D@106389" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@106389" to="Tiles/@AnimatableBody2D@106389/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@106390" to="Tiles/@AnimatableBody2D@106390/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@106390" to="Tiles/@AnimatableBody2D@106390/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106390" to="Tiles/@AnimatableBody2D@106390" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106390" to="Tiles/@AnimatableBody2D@106390" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106390" to="Tiles/@AnimatableBody2D@106390/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@106390" to="Tiles/@AnimatableBody2D@106390" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@106390" to="Tiles/@AnimatableBody2D@106390/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@106391" to="Tiles/@AnimatableBody2D@106391/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@106391" to="Tiles/@AnimatableBody2D@106391/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106391" to="Tiles/@AnimatableBody2D@106391" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106391" to="Tiles/@AnimatableBody2D@106391" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106391" to="Tiles/@AnimatableBody2D@106391/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@106391" to="Tiles/@AnimatableBody2D@106391" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@106391" to="Tiles/@AnimatableBody2D@106391/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@106392" to="Tiles/@AnimatableBody2D@106392/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@106392" to="Tiles/@AnimatableBody2D@106392/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106392" to="Tiles/@AnimatableBody2D@106392" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106392" to="Tiles/@AnimatableBody2D@106392" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@106392" to="Tiles/@AnimatableBody2D@106392/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@106392" to="Tiles/@AnimatableBody2D@106392" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@106392" to="Tiles/@AnimatableBody2D@106392/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_reached" from="EndFlagpole" to="CameraRightLimit" method="_enter_tree"]
[connection signal="player_entered" from="WarpZoneCameraLimit/PlayerDetection" to="WarpZoneCameraLimit" method="return_to_normal" unbinds=1]

[editable path="EndSmallCastle"]
