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

[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://q3aaukgw01nw" path="res://Scenes/Prefabs/Blocks/PSwitchBlock.tscn" id="9_eirfm"]
[ext_resource type="PackedScene" uid="uid://ciddq8ctlj453" path="res://Scenes/Prefabs/Entities/Objects/PSwitch.tscn" id="10_so6f0"]
[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_2cmal"]
_data = {
"points": PackedVector2Array(-110.40556, -4.55642, 110.40556, 4.55642, -216, -152, -121.62137, -7.710867, 121.62137, 7.710867, -40, -40, -130.03322, -4.9069138, 130.03322, 4.9069138, 8, -168, 0, 0, 0, 0, 120, -128, -76.40765, -19.97815, 76.40765, 19.97815, 216, -56, -120.21939, 2.102963, 120.21939, -2.102963, 368, -120, -96.736305, -1.0514815, 96.736305, 1.0514815, 552, -40, 63.43939, -1.7524693, -63.43939, 1.7524693, 600, -120, -83.76803, -5.9583955, 83.76803, 5.9583955, 640, -184, -72.09659, -2.5445855, 72.09659, 2.5445855, 1112, -184, -109.41717, -0.8481952, 109.41717, 0.8481952, 1216, -40, -94.14966, 4.240976, 94.14966, -4.240976, 1392, -88, -84.39542, 0.42409757, 84.39542, -0.42409757, 1496, -56, -84.81951, 2.120488, 84.81951, -2.120488, 1624, -104, -88.212296, 0, 88.212296, 0, 1792, -56, -115.77863, -1.2722927, 115.77863, 1.2722927, 2008, -56, -108.56898, -3.3927805, 108.56898, 3.3927805, 2120, -168, -97.96654, 1.2722927, 97.96654, -1.2722927, 2216, -40, -119.59551, 1.6963903, 119.59551, -1.6963903, 2392, -136, -37.744682, -0.42409757, 37.744682, 0.42409757, 2600, -136, -60.64595, 1.2722927, 60.64595, -1.2722927, 2728, -104, -117.05093, -4.6650734, 117.05093, 4.6650734, 3040, -136, 0, 0, 0, 0, 3288, -168)
}
point_count = 23

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

[node name="LevelBG" parent="." instance=ExtResource("3_eirfm")]
liquid_layer = 1

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

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

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

[node name="Tiles2" parent="." instance=ExtResource("4_so6f0")]
tile_map_data = PackedByteArray("AADw//z/AAALAAsAAADw//3/AAAAAAEAAADw//7/AAAAAAEAAADw////AAAAAAEAAADw/wAAAAAAAAEA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AAAAAAAEAAAAVAAIAAAAAAAIAAAAWAP3/AAACAAMAAAA=")

[node name="PSwitchBlock" parent="." instance=ExtResource("9_eirfm")]
position = Vector2(2376, -72)

[node name="PSwitch" parent="." instance=ExtResource("10_so6f0")]
position = Vector2(2376, -80)

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

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

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

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

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

[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
position = Vector2(-216, -152)
rotates = false

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

[connection signal="collected" from="Tiles/Coin" to="Tiles/Coin/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124192" to="Tiles/@Node2D@124192/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124193" to="Tiles/@Node2D@124193/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124194" to="Tiles/@Node2D@124194/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124195" to="Tiles/@Node2D@124195/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124196" to="Tiles/@Node2D@124196/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124197" to="Tiles/@Node2D@124197/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124198" to="Tiles/@Node2D@124198/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124199" to="Tiles/@Node2D@124199/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124200" to="Tiles/@Node2D@124200/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124201" to="Tiles/@Node2D@124201/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124202" to="Tiles/@Node2D@124202/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124203" to="Tiles/@Node2D@124203/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124204" to="Tiles/@Node2D@124204/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124205" to="Tiles/@Node2D@124205/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124206" to="Tiles/@Node2D@124206/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124207" to="Tiles/@Node2D@124207/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124208" to="Tiles/@Node2D@124208/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124209" to="Tiles/@Node2D@124209/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124210" to="Tiles/@Node2D@124210/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124211" to="Tiles/@Node2D@124211/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124212" to="Tiles/@Node2D@124212/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124213" to="Tiles/@Node2D@124213/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124214" to="Tiles/@Node2D@124214/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124215" to="Tiles/@Node2D@124215/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124216" to="Tiles/@Node2D@124216/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124217" to="Tiles/@Node2D@124217/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124218" to="Tiles/@Node2D@124218/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124219" to="Tiles/@Node2D@124219/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124220" to="Tiles/@Node2D@124220/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124221" to="Tiles/@Node2D@124221/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124222" to="Tiles/@Node2D@124222/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124223" to="Tiles/@Node2D@124223/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124224" to="Tiles/@Node2D@124224/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124225" to="Tiles/@Node2D@124225/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124226" to="Tiles/@Node2D@124226/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124227" to="Tiles/@Node2D@124227/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124228" to="Tiles/@Node2D@124228/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124229" to="Tiles/@Node2D@124229/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124230" to="Tiles/@Node2D@124230/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124231" to="Tiles/@Node2D@124231/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124232" to="Tiles/@Node2D@124232/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124233" to="Tiles/@Node2D@124233/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124234" to="Tiles/@Node2D@124234/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124235" to="Tiles/@Node2D@124235/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124236" to="Tiles/@Node2D@124236/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124237" to="Tiles/@Node2D@124237/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124238" to="Tiles/@Node2D@124238/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124239" to="Tiles/@Node2D@124239/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124240" to="Tiles/@Node2D@124240/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124241" to="Tiles/@Node2D@124241/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124242" to="Tiles/@Node2D@124242/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124243" to="Tiles/@Node2D@124243/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124244" to="Tiles/@Node2D@124244/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124245" to="Tiles/@Node2D@124245/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124246" to="Tiles/@Node2D@124246/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124247" to="Tiles/@Node2D@124247/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124248" to="Tiles/@Node2D@124248/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124249" to="Tiles/@Node2D@124249/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124250" to="Tiles/@Node2D@124250/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124251" to="Tiles/@Node2D@124251/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124252" to="Tiles/@Node2D@124252/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124253" to="Tiles/@Node2D@124253/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124254" to="Tiles/@Node2D@124254/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124255" to="Tiles/@Node2D@124255/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124256" to="Tiles/@Node2D@124256/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124257" to="Tiles/@Node2D@124257/LevelPersistance" method="set_as_active"]
[connection signal="player_block_hit" from="Tiles/BooOnOffSwitch" to="Tiles/BooOnOffSwitch" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/BooOnOffSwitch" to="Tiles/BooOnOffSwitch/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124315" to="Tiles/@AnimatableBody2D@124315" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124315" to="Tiles/@AnimatableBody2D@124315/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124316" to="Tiles/@AnimatableBody2D@124316" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124316" to="Tiles/@AnimatableBody2D@124316/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124317" to="Tiles/@AnimatableBody2D@124317" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124317" to="Tiles/@AnimatableBody2D@124317/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124318" to="Tiles/@AnimatableBody2D@124318" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124318" to="Tiles/@AnimatableBody2D@124318/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124319" to="Tiles/@AnimatableBody2D@124319" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124319" to="Tiles/@AnimatableBody2D@124319/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124320" to="Tiles/@AnimatableBody2D@124320" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124320" to="Tiles/@AnimatableBody2D@124320/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124321" to="Tiles/@AnimatableBody2D@124321" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124321" to="Tiles/@AnimatableBody2D@124321/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124322" to="Tiles/@AnimatableBody2D@124322" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124322" to="Tiles/@AnimatableBody2D@124322/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124323" to="Tiles/@AnimatableBody2D@124323" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124323" to="Tiles/@AnimatableBody2D@124323/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124324" to="Tiles/@AnimatableBody2D@124324" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124324" to="Tiles/@AnimatableBody2D@124324/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124325" to="Tiles/@AnimatableBody2D@124325" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124325" to="Tiles/@AnimatableBody2D@124325/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124326" to="Tiles/@AnimatableBody2D@124326" method="on_block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@124326" to="Tiles/@AnimatableBody2D@124326/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="collected" from="Tiles/@Node2D@124327" to="Tiles/@Node2D@124327/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@124328" to="Tiles/@Node2D@124328/LevelPersistance" method="set_as_active"]
[connection signal="player_reached" from="EndFlagpole" to="BooRaceHandler" method="player_win_race"]
