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

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_qct7b"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="2_4glwd"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/BooRace.json" id="2_vqjci"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="3_h8yqp"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="4_i0vqq"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="6_4glwd"]
[ext_resource type="PackedScene" uid="uid://c6loucilra6da" path="res://Scenes/Prefabs/LevelObjects/EndFlagpole.tscn" id="8_i0vqq"]
[ext_resource type="Script" uid="uid://bdq0373j5n5o0" path="res://Scripts/Parts/CameraRightLimit.gd" id="9_jqqrj"]
[ext_resource type="PackedScene" uid="uid://e3wkbwtm7sh" path="res://Scenes/Parts/WaterArea.tscn" id="10_hs820"]
[ext_resource type="PackedScene" uid="uid://bbrkol4k3yobq" path="res://Scenes/Prefabs/Entities/Enemies/RaceBoo.tscn" id="12_m577w"]
[ext_resource type="PackedScene" uid="uid://d1wjw5tobpb3w" path="res://Scenes/Prefabs/LevelObjects/BooRaceHandler.tscn" id="12_vqjci"]
[ext_resource type="PackedScene" uid="uid://byqmn8yi7iuac" path="res://Scenes/Prefabs/LevelObjects/EndSmallCastle.tscn" id="13_m577w"]

[sub_resource type="Curve2D" id="Curve2D_njw1k"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, -240, -56, -35.2001, -3.39278, 35.2001, 3.39278, 288, -112, -36.8965, 0.848195, 36.8965, -0.848195, 440, -88, -27.1422, -23.3254, 27.1422, 23.3254, 744, -96, -42.8339, 0, 42.8339, 0, 808, -40, -23.3254, 0, 23.3254, 0, 968, -72, -39.017, 2.96868, 39.017, -2.96868, 1448, -72, -1.27229, -37.3206, 1.27229, 37.3206, 1728, -120, -51.3158, 0.424098, 51.3158, -0.424098, 1768, -24, -67.8556, -5.51327, 67.8556, 5.51327, 1912, -104, -67.0074, 1.69639, 67.0074, -1.69639, 1984, -40, -56.405, -2.96868, 56.405, 2.96868, 2096, -104, -53.8604, 2.12049, 53.8604, -2.12049, 2176, -32, -61.07, -1.27229, 61.07, 1.27229, 2272, -112, -35.2001, -19.0844, 35.2001, 19.0844, 2344, -32, -44.1061, 28.8386, 44.1061, -28.8386, 2648, -32, -29.2627, 18.6603, 29.2627, -18.6603, 2712, -112, -12.4184, -34.7716, 12.4184, 34.7716, 2936, -144, -24.2159, -19.2486, 24.2159, 19.2486, 2952, -88, -35.3925, 27.3205, 35.3925, -27.3205, 3144, -80, -16.144, 23.595, 16.144, -23.595, 3192, -152, 0.620921, -29.8042, -0.620921, 29.8042, 3288, -144, -82.5825, 1.86276, 82.5825, -1.86276, 3344, -40, -52.7783, 1.86276, 52.7783, -1.86276, 3528, -88, 0, 0, 0, 0, 3728, -96)
}
point_count = 25

[node name="Level" type="Node"]
script = ExtResource("1_qct7b")
music = ExtResource("2_vqjci")
theme = "Underwater"
time_limit = 300
world_id = 2
level_id = 2
metadata/_custom_type_script = "uid://bcqr1v25ygedb"

[node name="LevelBG" parent="." instance=ExtResource("2_4glwd")]

[node name="Tiles" parent="." instance=ExtResource("3_h8yqp")]
tile_map_data = PackedByteArray("[encoded data, 20868 characters]")

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

[node name="Tiles2" parent="." instance=ExtResource("3_h8yqp")]
visibility_layer = 2
z_index = -4096
z_as_relative = false
tile_map_data = PackedByteArray("[encoded data, 110148 characters]")

[node name="DropShadow" parent="." instance=ExtResource("6_4glwd")]

[node name="Tiles3" parent="." instance=ExtResource("3_h8yqp")]
tile_map_data = PackedByteArray("AADsAP3/AAAKAAAAAADsAP7/AAAKAAEAAADtAP3/AAALAAAAAADtAP7/AAALAAEAAAA=")
collision_enabled = false

[node name="EndFlagpole" parent="." instance=ExtResource("8_i0vqq")]
position = Vector2(3736, 0)

[node name="WaterArea" parent="." instance=ExtResource("10_hs820")]
visible = false
scale = Vector2(999, 999)

[node name="RaceBoo" parent="." node_paths=PackedStringArray("path") instance=ExtResource("12_m577w")]
position = Vector2(-240, -56)
path = NodePath("../Path2D/PathFollow2D")
time_needed = [58, 52, 51, 48, 45]

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

[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
position = Vector2(-240, -56)
rotation = -0.11994258

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

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

[node name="EndSmallCastle" parent="." instance=ExtResource("13_m577w")]
position = Vector2(4128, -16)

[node name="CameraRightLimit" type="Node2D" parent="."]
position = Vector2(3824, -104)
script = ExtResource("9_jqqrj")
metadata/_custom_type_script = "uid://bdq0373j5n5o0"

[connection signal="collected" from="Tiles/Coin" to="Tiles/Coin/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66476" to="Tiles/@Node2D@66476/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66477" to="Tiles/@Node2D@66477/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@66478" to="Tiles/@AnimatableBody2D@66478" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66478" to="Tiles/@AnimatableBody2D@66478/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66500" to="Tiles/@AnimatableBody2D@66500" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66500" to="Tiles/@AnimatableBody2D@66500/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66501" to="Tiles/@AnimatableBody2D@66501" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66501" to="Tiles/@AnimatableBody2D@66501/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66502" to="Tiles/@AnimatableBody2D@66502" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66502" to="Tiles/@AnimatableBody2D@66502/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66503" to="Tiles/@AnimatableBody2D@66503" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66503" to="Tiles/@AnimatableBody2D@66503/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66504" to="Tiles/@AnimatableBody2D@66504" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66504" to="Tiles/@AnimatableBody2D@66504/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66505" to="Tiles/@AnimatableBody2D@66505" method="block_hit" unbinds=1]
[connection signal="player_block_hit" from="Tiles/@AnimatableBody2D@66505" to="Tiles/@AnimatableBody2D@66505/BlockAnimations" method="bounce_block" unbinds=1]
[connection signal="collected" from="Tiles/@Node2D@66506" to="Tiles/@Node2D@66506/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66507" to="Tiles/@Node2D@66507/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66508" to="Tiles/@Node2D@66508/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66509" to="Tiles/@Node2D@66509/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66510" to="Tiles/@Node2D@66510/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66511" to="Tiles/@Node2D@66511/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66512" to="Tiles/@Node2D@66512/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66513" to="Tiles/@Node2D@66513/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66514" to="Tiles/@Node2D@66514/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66515" to="Tiles/@Node2D@66515/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66516" to="Tiles/@Node2D@66516/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66517" to="Tiles/@Node2D@66517/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66518" to="Tiles/@Node2D@66518/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66519" to="Tiles/@Node2D@66519/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66520" to="Tiles/@Node2D@66520/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66521" to="Tiles/@Node2D@66521/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66522" to="Tiles/@Node2D@66522/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66523" to="Tiles/@Node2D@66523/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66524" to="Tiles/@Node2D@66524/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66525" to="Tiles/@Node2D@66525/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66526" to="Tiles/@Node2D@66526/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66527" to="Tiles/@Node2D@66527/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66528" to="Tiles/@Node2D@66528/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66529" to="Tiles/@Node2D@66529/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66530" to="Tiles/@Node2D@66530/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66531" to="Tiles/@Node2D@66531/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66532" to="Tiles/@Node2D@66532/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66533" to="Tiles/@Node2D@66533/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66534" to="Tiles/@Node2D@66534/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66535" to="Tiles/@Node2D@66535/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66536" to="Tiles/@Node2D@66536/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66537" to="Tiles/@Node2D@66537/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66538" to="Tiles/@Node2D@66538/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66539" to="Tiles/@Node2D@66539/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66540" to="Tiles/@Node2D@66540/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66541" to="Tiles/@Node2D@66541/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66542" to="Tiles/@Node2D@66542/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66543" to="Tiles/@Node2D@66543/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66544" to="Tiles/@Node2D@66544/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66545" to="Tiles/@Node2D@66545/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66546" to="Tiles/@Node2D@66546/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66547" to="Tiles/@Node2D@66547/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66548" to="Tiles/@Node2D@66548/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66549" to="Tiles/@Node2D@66549/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66550" to="Tiles/@Node2D@66550/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66551" to="Tiles/@Node2D@66551/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66552" to="Tiles/@Node2D@66552/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66553" to="Tiles/@Node2D@66553/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66554" to="Tiles/@Node2D@66554/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66555" to="Tiles/@Node2D@66555/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66556" to="Tiles/@Node2D@66556/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66557" to="Tiles/@Node2D@66557/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66558" to="Tiles/@Node2D@66558/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66559" to="Tiles/@Node2D@66559/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66560" to="Tiles/@Node2D@66560/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66561" to="Tiles/@Node2D@66561/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66562" to="Tiles/@Node2D@66562/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66563" to="Tiles/@Node2D@66563/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66564" to="Tiles/@Node2D@66564/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66565" to="Tiles/@Node2D@66565/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66566" to="Tiles/@Node2D@66566/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66567" to="Tiles/@Node2D@66567/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66568" to="Tiles/@Node2D@66568/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66569" to="Tiles/@Node2D@66569/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66570" to="Tiles/@Node2D@66570/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66571" to="Tiles/@Node2D@66571/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66572" to="Tiles/@Node2D@66572/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66573" to="Tiles/@Node2D@66573/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66574" to="Tiles/@Node2D@66574/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66575" to="Tiles/@Node2D@66575/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66576" to="Tiles/@Node2D@66576/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66577" to="Tiles/@Node2D@66577/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66578" to="Tiles/@Node2D@66578/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66579" to="Tiles/@Node2D@66579/LevelPersistance" method="set_as_active"]
[connection signal="collected" from="Tiles/@Node2D@66580" to="Tiles/@Node2D@66580/LevelPersistance" method="set_as_active"]
[connection signal="player_reached" from="EndFlagpole" to="BooRaceHandler" method="player_win_race"]
