[gd_scene load_steps=14 format=4 uid="uid://bmr7t7pp3n8qh"]

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_qsfcr"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/BooRace.json" id="2_b28gx"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="3_eirfm"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="4_so6f0"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="5_wf72e"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="8_2cmal"]
[ext_resource type="PackedScene" uid="uid://qn4g0qkjcuiy" path="res://Scenes/Parts/SmallCastleVisual.tscn" id="9_eirfm"]
[ext_resource type="PackedScene" uid="uid://c145qqkvy8pr5" path="res://Scenes/Parts/DecoTiles.tscn" id="10_eirfm"]
[ext_resource type="PackedScene" uid="uid://d1wjw5tobpb3w" path="res://Scenes/Prefabs/LevelObjects/BooRaceHandler.tscn" id="11_ffmo6"]
[ext_resource type="PackedScene" uid="uid://c6loucilra6da" path="res://Scenes/Prefabs/LevelObjects/EndFlagpole.tscn" id="11_wf72e"]
[ext_resource type="PackedScene" uid="uid://bbrkol4k3yobq" path="res://Scenes/Prefabs/Entities/Enemies/RaceBoo.tscn" id="12_1mhci"]
[ext_resource type="PackedScene" uid="uid://byqmn8yi7iuac" path="res://Scenes/Prefabs/LevelObjects/EndSmallCastle.tscn" id="12_ffmo6"]

[sub_resource type="Curve2D" id="Curve2D_wf72e"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, -216, -64, 0, 0, 0, 0, -72, -88, -94.282845, 1.0514815, 94.282845, -1.0514815, 192, -88, -49.770126, -1.4019754, 49.770126, 1.4019754, 408, -136, -53.97605, 0.7009877, 53.97605, -0.7009877, 568, -88, 0, 0, 0, 0, 568, -88, -37.152348, 1.4019754, 37.152348, -1.4019754, 656, -136, -39.9563, 2.102963, 39.9563, -2.102963, 776, -64, 0, 0, 0, 0, 920, -120, -98.839264, 0, 98.839264, 0, 1232, -176, -79.9126, 0.7009877, 79.9126, -0.7009877, 1424, -112, -59.797756, 44.106148, 59.797756, -44.106148, 1576, -176, -44.530243, 0, 44.530243, 0, 1784, -144, -74.641174, -0.84819514, 74.641174, 0.84819514, 1960, -176, -65.31103, 0.42409757, 65.31103, -0.42409757, 2272, -88, -61.07005, 20.356684, 61.07005, -20.356684, 2456, -144, -107.56655, -11.180753, 107.56655, 11.180753, 2808, -160, -29.80422, 1.8627638, 29.80422, -1.8627638, 3048, -56, -26.078693, 0.62092125, 26.078693, -0.62092125, 3144, -144, -22.974087, 0.62092125, 22.974087, -0.62092125, 3192, -64, 0, 0, 0, 0, 3384, -128, -44.39587, -1.3660268, 44.39587, 1.3660268, 3736, -128, -99.03694, 1.3660268, 99.03694, -1.3660268, 3992, -88, -68.98435, -1.3660268, 68.98435, 1.3660268, 4344, -144, -53.275043, -0.6830134, 53.275043, 0.6830134, 4504, -80, -50.54299, 3.415067, 50.54299, -3.415067, 4624, -136, -37.565735, -56.69011, 37.565735, 56.69011, 4952, -128, -47.127922, 0.6830134, 47.127922, -0.6830134, 5072, -24, 0, 0, 0, 0, 5208, -168)
}
point_count = 29

[node name="1-2Boo" type="Node"]
script = ExtResource("1_qsfcr")
music = ExtResource("2_b28gx")
theme = "Autumn"
campaign = "SMBS"
level_id = 2
metadata/_custom_type_script = "uid://bcqr1v25ygedb"

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

[node name="LevelBG" parent="." instance=ExtResource("3_eirfm")]
primary_layer = 1
second_layer = 2
second_layer_offset = Vector2(0, -32)
overlay_clouds = true

[node name="BooRaceHandler" parent="." node_paths=PackedStringArray("boo") instance=ExtResource("11_ffmo6")]
boo = NodePath("../RaceBoo")
level_id = 1

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

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

[node name="DropShadow" parent="." instance=ExtResource("8_2cmal")]

[node name="DecoTiles" parent="." instance=ExtResource("10_eirfm")]
tile_map_data = PackedByteArray("AAC9AP7/AAADAAAAAAC9AP//AAADAAEAAABDAf7/AAADAAAAAABDAf//AAADAAEAAABCAf3/AAAEAAAAAABCAf7/AAAEAAEAAABCAf//AAAAAAEAAAA/Af//AAACAAEAAABHAf//AAACAAEAAAA6Af//AAAAAAAAAAA7Af//AAABAAAAAAA8Af//AAACAAAAAAA5Af//AAABAAEAAAC7AP//AAABAAEAAAADAP7/AAADAAAAAAADAP//AAADAAEAAAD9////AAABAAEAAAD+////AAABAAEAAAAGAP//AAAAAAAAAAAHAP//AAABAAAAAAAIAP//AAACAAAAAAD4//3/AAAEAAAAAAD4//7/AAAEAAEAAAD5////AAACAAEAAAD4////AAAAAAEAAAA=")

[node name="RaceBoo" parent="." node_paths=PackedStringArray("path") instance=ExtResource("12_1mhci")]
position = Vector2(-216, -64)
path = NodePath("../Path2D/PathFollow2D")
time_needed = [55, 50, 45, 40, 35]

[node name="Path2D" type="Path2D" parent="."]
curve = SubResource("Curve2D_wf72e")

[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
position = Vector2(-216, -64)
rotation = -0.16514868

[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Path2D/PathFollow2D"]
remote_path = NodePath("../../../RaceBoo")
update_rotation = false
update_scale = false

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

[node name="EndSmallCastle" parent="." instance=ExtResource("12_ffmo6")]
position = Vector2(5320, 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/@AnimatableBody2D@343230" to="Tiles/@AnimatableBody2D@343230/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@343230" to="Tiles/@AnimatableBody2D@343230/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343230" to="Tiles/@AnimatableBody2D@343230" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343230" to="Tiles/@AnimatableBody2D@343230/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@343230" to="Tiles/@AnimatableBody2D@343230" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@343230" to="Tiles/@AnimatableBody2D@343230/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="block_destroyed" from="Tiles/@AnimatableBody2D@343231" to="Tiles/@AnimatableBody2D@343231/LevelPersistance" method="set_as_active_2"]
[connection signal="block_emptied" from="Tiles/@AnimatableBody2D@343231" to="Tiles/@AnimatableBody2D@343231/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343231" to="Tiles/@AnimatableBody2D@343231" method="on_block_hit"]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343231" to="Tiles/@AnimatableBody2D@343231/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@343231" to="Tiles/@AnimatableBody2D@343231" method="on_shell_block_hit"]
[connection signal="shell_block_hit" from="Tiles/@AnimatableBody2D@343231" to="Tiles/@AnimatableBody2D@343231/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="collected" from="Tiles/Coin" to="Tiles/Coin/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343325" to="Tiles/@Node2D@343325/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343326" to="Tiles/@Node2D@343326/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343327" to="Tiles/@Node2D@343327/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343328" to="Tiles/@Node2D@343328/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343329" to="Tiles/@Node2D@343329/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343330" to="Tiles/@Node2D@343330/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343331" to="Tiles/@Node2D@343331/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343332" to="Tiles/@Node2D@343332/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343333" to="Tiles/@Node2D@343333/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343334" to="Tiles/@Node2D@343334/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343335" to="Tiles/@Node2D@343335/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343336" to="Tiles/@Node2D@343336/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343337" to="Tiles/@Node2D@343337/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343338" to="Tiles/@Node2D@343338/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343339" to="Tiles/@Node2D@343339/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343340" to="Tiles/@Node2D@343340/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343341" to="Tiles/@Node2D@343341/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343342" to="Tiles/@Node2D@343342/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343343" to="Tiles/@Node2D@343343/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343344" to="Tiles/@Node2D@343344/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343345" to="Tiles/@Node2D@343345/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343346" to="Tiles/@Node2D@343346/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343347" to="Tiles/@Node2D@343347/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343348" to="Tiles/@Node2D@343348/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343349" to="Tiles/@Node2D@343349/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343350" to="Tiles/@Node2D@343350/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343351" to="Tiles/@Node2D@343351/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343352" to="Tiles/@Node2D@343352/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343353" to="Tiles/@Node2D@343353/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343354" to="Tiles/@Node2D@343354/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343355" to="Tiles/@Node2D@343355/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343356" to="Tiles/@Node2D@343356/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343357" to="Tiles/@Node2D@343357/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343358" to="Tiles/@Node2D@343358/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343359" to="Tiles/@Node2D@343359/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343360" to="Tiles/@Node2D@343360/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343361" to="Tiles/@Node2D@343361/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343362" to="Tiles/@Node2D@343362/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343363" to="Tiles/@Node2D@343363/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343364" to="Tiles/@Node2D@343364/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343365" to="Tiles/@Node2D@343365/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343366" to="Tiles/@Node2D@343366/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343367" to="Tiles/@Node2D@343367/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343368" to="Tiles/@Node2D@343368/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343369" to="Tiles/@Node2D@343369/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343370" to="Tiles/@Node2D@343370/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343371" to="Tiles/@Node2D@343371/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343372" to="Tiles/@Node2D@343372/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343373" to="Tiles/@Node2D@343373/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343374" to="Tiles/@Node2D@343374/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343375" to="Tiles/@Node2D@343375/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343376" to="Tiles/@Node2D@343376/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@343377" to="Tiles/@Node2D@343377/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/TimedBooBlock" to="Tiles/TimedBooBlock" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/TimedBooBlock" to="Tiles/TimedBooBlock/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343378" to="Tiles/@AnimatableBody2D@343378" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343378" to="Tiles/@AnimatableBody2D@343378/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343379" to="Tiles/@AnimatableBody2D@343379" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343379" to="Tiles/@AnimatableBody2D@343379/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343380" to="Tiles/@AnimatableBody2D@343380" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343380" to="Tiles/@AnimatableBody2D@343380/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343381" to="Tiles/@AnimatableBody2D@343381" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343381" to="Tiles/@AnimatableBody2D@343381/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343382" to="Tiles/@AnimatableBody2D@343382" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343382" to="Tiles/@AnimatableBody2D@343382/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343383" to="Tiles/@AnimatableBody2D@343383" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343383" to="Tiles/@AnimatableBody2D@343383/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343384" to="Tiles/@AnimatableBody2D@343384" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@343384" to="Tiles/@AnimatableBody2D@343384/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="player_block_hit" from="Tiles/@AnimatableBody2D@347166" to="Tiles/@AnimatableBody2D@347166" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@347166" to="Tiles/@AnimatableBody2D@347166/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_reached" from="EndFlagpole" to="BooRaceHandler" method="player_win_race"]
