[gd_scene load_steps=17 format=4 uid="uid://c82harrm7m4xm"]

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_5cytn"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Beach.json" id="2_43157"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="4_2h44h"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="5_43157"]
[ext_resource type="PackedScene" uid="uid://r6dlmokkdyar" path="res://Scenes/Prefabs/Entities/Enemies/GreenKoopaTroopa.tscn" id="7_2mhhb"]
[ext_resource type="PackedScene" uid="uid://c145qqkvy8pr5" path="res://Scenes/Parts/DecoTiles.tscn" id="8_lghhp"]
[ext_resource type="PackedScene" uid="uid://githt8ci1xal" path="res://Scenes/Parts/StartCastle.tscn" id="9_3kgo2"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="10_u02ro"]
[ext_resource type="PackedScene" uid="uid://c6loucilra6da" path="res://Scenes/Prefabs/LevelObjects/EndFlagpole.tscn" id="11_2h44h"]
[ext_resource type="PackedScene" uid="uid://byqmn8yi7iuac" path="res://Scenes/Prefabs/LevelObjects/EndSmallCastle.tscn" id="12_43157"]
[ext_resource type="PackedScene" uid="uid://dkgu57is78lro" path="res://Scenes/Parts/PipeArea.tscn" id="13_43157"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="13_b32a7"]
[ext_resource type="Script" uid="uid://cybpwmw4ywoow" path="res://Scripts/Parts/TileMapConverter.gd" id="14_2mhhb"]
[ext_resource type="PackedScene" uid="uid://bc1mrna4kybhv" path="res://Scenes/Prefabs/Blocks/QuestionBlocks/QuestionBlock.tscn" id="14_lghhp"]
[ext_resource type="Script" uid="uid://cgm3opb5qudc1" path="res://Scripts/Parts/ChallengeModeNodes.gd" id="15_3kgo2"]
[ext_resource type="PackedScene" uid="uid://d3gnwmvds4ors" path="res://Scenes/Prefabs/Entities/Items/SpinningRedCoin.tscn" id="16_uoa5y"]

[node name="3-2" type="Node"]
script = ExtResource("1_5cytn")
music = ExtResource("2_43157")
theme = "Beach"
campaign = "SMBS"
world_id = 3
level_id = 2
metadata/_custom_type_script = "uid://bcqr1v25ygedb"

[node name="Tiles" parent="." instance=ExtResource("4_2h44h")]
tile_map_data = PackedByteArray("[encoded data, 8916 characters]")

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

[node name="GreenKoopaTroopa" parent="." instance=ExtResource("7_2mhhb")]
position = Vector2(16, 0)

[node name="GreenKoopaTroopa2" parent="." instance=ExtResource("7_2mhhb")]
position = Vector2(64, 0)

[node name="GreenKoopaTroopa3" parent="." instance=ExtResource("7_2mhhb")]
position = Vector2(184, 0)

[node name="DecoTiles" parent="." instance=ExtResource("8_lghhp")]
tile_map_data = PackedByteArray("AAD7////AAAAAAAAAAD8////AAACAAAAAAA=")

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

[node name="DropShadow" parent="." instance=ExtResource("10_u02ro")]

[node name="EndFlagpole" parent="." instance=ExtResource("11_2h44h")]
position = Vector2(760, 0)

[node name="EndSmallCastle" parent="." instance=ExtResource("12_43157")]
position = Vector2(856, 0)

[node name="PipeArea" parent="." instance=ExtResource("13_43157")]
position = Vector2(208, -16)
enter_direction = 3
target_level = "uid://bsnw7y7irepty"

[node name="PipeArea2" parent="." instance=ExtResource("13_43157")]
position = Vector2(512, -96)
pipe_id = 1
exit_only = true

[node name="LevelBG" parent="." instance=ExtResource("13_b32a7")]
second_layer = 2
liquid_layer = 1

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

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

[node name="QuestionBlock" parent="Blocks" instance=ExtResource("14_lghhp")]
position = Vector2(-40, -56)

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

[node name="QuestionBlock" parent="ChallengeNodes" instance=ExtResource("14_lghhp")]
position = Vector2(-40, -56)
item = ExtResource("16_uoa5y")
metadata/r_coin_id = 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/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="block_destroyed" from="Tiles/@AnimatableBody2D@243363" to="Tiles/@AnimatableBody2D@243363/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@243363" to="Tiles/@AnimatableBody2D@243363/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@243363" to="Tiles/@AnimatableBody2D@243363" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@243363" to="Tiles/@AnimatableBody2D@243363/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@243363" to="Tiles/@AnimatableBody2D@243363/Timer" method="start" flags=6 unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@243363" to="Tiles/@AnimatableBody2D@243363" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@243363" to="Tiles/@AnimatableBody2D@243363/BlockAnimations" method="bounce_block" unbinds=1]
[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@243364" to="Tiles/@AnimatableBody2D@243364/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@243364" to="Tiles/@AnimatableBody2D@243364/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@243364" to="Tiles/@AnimatableBody2D@243364" method="player_mushroom_check"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@243364" to="Tiles/@AnimatableBody2D@243364" method="dispense_item" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@243364" to="Tiles/@AnimatableBody2D@243364/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@243364" to="Tiles/@AnimatableBody2D@243364" method="dispense_item" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@243364" to="Tiles/@AnimatableBody2D@243364/BlockAnimations" method="bounce_block" unbinds=1]
