[gd_scene load_steps=15 format=4 uid="uid://btqe66uy4a1o6"]

[ext_resource type="Script" uid="uid://bcqr1v25ygedb" path="res://Scripts/Classes/LevelClass.gd" id="1_xfb2u"]
[ext_resource type="JSON" path="res://Assets/Audio/BGM/Space.json" id="2_ml3s0"]
[ext_resource type="PackedScene" uid="uid://bksxgpygrdjl7" path="res://Scenes/Prefabs/LevelBG.tscn" id="3_dh5wb"]
[ext_resource type="PackedScene" uid="uid://ct5rrpa7uehkk" path="res://Scenes/Parts/Tiles.tscn" id="3_f1rlj"]
[ext_resource type="PackedScene" uid="uid://cuh62hlq8errh" path="res://Scenes/Prefabs/Entities/Player.tscn" id="4_ghkrn"]
[ext_resource type="PackedScene" uid="uid://dryg466fybrd3" path="res://Scenes/Prefabs/LevelObjects/UpsideDownGravityArea.tscn" id="6_akjb2"]
[ext_resource type="Script" uid="uid://dhtqnyrj3ndnj" path="res://Scripts/Parts/MoonGravity.gd" id="7_q053a"]
[ext_resource type="PackedScene" uid="uid://cinr6kcbmo6gr" path="res://Scenes/Parts/DropShadowRenderer.tscn" id="8_f1rlj"]
[ext_resource type="PackedScene" uid="uid://kj5pw3xhq8f7" path="res://Scenes/Prefabs/Entities/Enemies/RedPiranhaPlant.tscn" id="9_ghkrn"]
[ext_resource type="PackedScene" uid="uid://4bb81eil6a4c" path="res://Scenes/Prefabs/Entities/Enemies/Lakitu.tscn" id="10_fn6t6"]
[ext_resource type="PackedScene" uid="uid://c6loucilra6da" path="res://Scenes/Prefabs/LevelObjects/EndFlagpole.tscn" id="11_0oekt"]
[ext_resource type="PackedScene" uid="uid://byqmn8yi7iuac" path="res://Scenes/Prefabs/LevelObjects/EndSmallCastle.tscn" id="12_iub4e"]
[ext_resource type="Script" uid="uid://h7ook78uoctx" path="res://Scripts/Parts/UpsideDownGravityArea.gd" id="13_iub4e"]
[ext_resource type="Script" uid="uid://cybpwmw4ywoow" path="res://Scripts/Parts/TileMapConverter.gd" id="15_31h7j"]

[node name="9-2" type="Node"]
script = ExtResource("1_xfb2u")
music = ExtResource("2_ml3s0")
theme = "Space"
theme_time = "Night"
campaign = "SMBLL"
world_id = 9
level_id = 2
metadata/_custom_type_script = "uid://bcqr1v25ygedb"

[node name="LevelBG" parent="." instance=ExtResource("3_dh5wb")]
time_of_day = 1

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

[node name="Player" parent="." instance=ExtResource("4_ghkrn")]
position = Vector2(-216, -8)

[node name="UpsideDownGravityArea" parent="." node_paths=PackedStringArray("polygon") instance=ExtResource("6_akjb2")]
position = Vector2(352, -16)
polygon = NodePath("CollisionPolygon2D")

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="UpsideDownGravityArea"]
polygon = PackedVector2Array(-352, -152, -352, 48, 352, 48, 352, -88, 496, -88, 496, -32, 352, -32, 352, 48, 512, 48, 560, 48, 560, 16, 560, -72, 672, -72, 672, -144, 560, -152)

[node name="MoonGravity" type="Node" parent="."]
script = ExtResource("7_q053a")
metadata/_custom_type_script = "uid://dhtqnyrj3ndnj"

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

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

[node name="RedPirannhaPlant" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(-32, -64)

[node name="RedPirannhaPlant2" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(112, -112)
rotation = -3.14159

[node name="RedPirannhaPlant3" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(288, -64)
rotation = -3.14159

[node name="RedPirannhaPlant4" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(448, -96)
rotation = -3.14159

[node name="RedPirannhaPlant5" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(736, -128)
rotation = -3.14159

[node name="RedPirannhaPlant6" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(896, -112)
rotation = -3.14159

[node name="RedPirannhaPlant7" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(800, -96)

[node name="RedPirannhaPlant8" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(944, -48)

[node name="RedPirannhaPlant9" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(1136, -32)

[node name="RedPirannhaPlant10" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(1232, -96)

[node name="RedPirannhaPlant11" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(1504, -160)

[node name="RedPirannhaPlant12" parent="Enemies" instance=ExtResource("9_ghkrn")]
position = Vector2(1376, -80)
rotation = 3.14159

[node name="Lakitu" parent="Enemies" instance=ExtResource("10_fn6t6")]
position = Vector2(248, -96)
retreat_x = 1904

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

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

[node name="UpsideDownGravityArea2" type="Area2D" parent="." node_paths=PackedStringArray("polygon")]
script = ExtResource("13_iub4e")
polygon = NodePath("CollisionPolygon2D")
metadata/_custom_type_script = "uid://h7ook78uoctx"

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="UpsideDownGravityArea2"]
position = Vector2(1224, -48)
polygon = PackedVector2Array(104, -64, 104, 112, 312, 112, 312, -64)

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

[connection signal="player_entered" from="UpsideDownGravityArea2" to="UpsideDownGravityArea2" method="on_player_entered"]
[connection signal="player_exited" from="UpsideDownGravityArea2" to="UpsideDownGravityArea2" method="on_player_exited"]

[editable path="UpsideDownGravityArea"]
