[gd_scene load_steps=20 format=4 uid="uid://cbrkijjcxph15"]

[ext_resource type="TileSet" uid="uid://cfq716af1nhqm" path="res://levels/levelFinal/tileSet/coreTiles.tres" id="1_sp6x8"]
[ext_resource type="PackedScene" uid="uid://c1xy5bf2p6vmh" path="res://player/smallPlayer/player.tscn" id="2_js4h8"]
[ext_resource type="Script" uid="uid://enxayokme5rs" path="res://levels/levelFinal/core/core.gd" id="3_qku3v"]
[ext_resource type="Texture2D" uid="uid://c54p5kdrt1r71" path="res://levels/levelFinal/core/coreSprites/planetCore_0001.png" id="4_gt3fy"]
[ext_resource type="PackedScene" uid="uid://bppg2hn2wykdj" path="res://levels/backgrounds/coreBackground.tscn" id="4_irop4"]
[ext_resource type="Texture2D" uid="uid://b6qm6xu5ojpww" path="res://levels/levelFinal/core/coreSprites/planetCore_0002.png" id="5_esn31"]
[ext_resource type="Texture2D" uid="uid://bbt2g8bk7kke8" path="res://levels/levelFinal/core/coreSprites/planetCore_0003.png" id="6_o504l"]
[ext_resource type="Texture2D" uid="uid://ch6720bqxcsmf" path="res://levels/levelFinal/core/coreSprites/planetCore_0004.png" id="7_e7ol0"]
[ext_resource type="Texture2D" uid="uid://cd3n7wtnkho61" path="res://levels/levelFinal/core/coreSprites/planetCore_0005.png" id="8_8jptk"]
[ext_resource type="Texture2D" uid="uid://bykh05626og5c" path="res://levels/levelFinal/core/coreSprites/planetCore_0006.png" id="9_yhm1k"]
[ext_resource type="Script" path="res://levels/animation_player.gd" id="10_61j20"]
[ext_resource type="FontFile" uid="uid://c8qur0cbvh1ju" path="res://startMenu/Symtext.ttf" id="11_gt3fy"]

[sub_resource type="SpriteFrames" id="SpriteFrames_macrm"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_gt3fy")
}, {
"duration": 1.0,
"texture": ExtResource("5_esn31")
}, {
"duration": 1.0,
"texture": ExtResource("6_o504l")
}, {
"duration": 1.0,
"texture": ExtResource("7_e7ol0")
}, {
"duration": 1.0,
"texture": ExtResource("8_8jptk")
}, {
"duration": 1.0,
"texture": ExtResource("9_yhm1k")
}],
"loop": true,
"name": &"default",
"speed": 10.0
}]

[sub_resource type="CircleShape2D" id="CircleShape2D_a5wrw"]
radius = 112.0

[sub_resource type="Animation" id="Animation_esn31"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("loreText:self_modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("loreText:text")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": ["You have consumed the planet."]
}

[sub_resource type="Animation" id="Animation_a6hc6"]
resource_name = "fadeIn"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 1), Color(0, 0, 0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("ColorRect:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 1), Color(0, 0, 0, 0)]
}

[sub_resource type="Animation" id="Animation_e5775"]
resource_name = "fadeOut"
length = 18.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("ColorRect:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("loreText:text")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 4.8, 8.9, 13.8666),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": ["You have consumed the planet.", "In the process, you have become the planet.", "You begin your hibernation 
hoping evolution will one day allow you to move.", "You hunger for more."]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("loreText:self_modulate")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0.533333, 1.00712, 4.23333, 4.8, 5.43333, 8.23333, 8.9, 9.56666, 13.2333, 13.8, 13.9666, 14.6666, 17.1333, 18),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 0, 0.0156863, 0), Color(1, 0, 0.0156863, 1), Color(1, 0, 0.0156863, 1), Color(1, 0, 0.0156863, 0)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_h31ej"]
_data = {
&"RESET": SubResource("Animation_esn31"),
&"fadeIn": SubResource("Animation_a6hc6"),
&"fadeOut": SubResource("Animation_e5775")
}

[sub_resource type="LabelSettings" id="LabelSettings_gt3fy"]
font_size = 26

[node name="finalLevel" type="Node2D"]

[node name="wallLayer" type="TileMapLayer" parent="."]
tile_map_data = PackedByteArray("[encoded data, 11924 characters]")
tile_set = ExtResource("1_sp6x8")

[node name="floorLayer" type="TileMapLayer" parent="wallLayer"]
z_index = -100
tile_map_data = PackedByteArray("[encoded data, 8580 characters]")
tile_set = ExtResource("1_sp6x8")

[node name="player" parent="." instance=ExtResource("2_js4h8")]
position = Vector2(276, 17)

[node name="core" type="Area2D" parent="."]
position = Vector2(274, 1294)
collision_layer = 3
collision_mask = 3
script = ExtResource("3_qku3v")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="core"]
position = Vector2(-7, 0)
sprite_frames = SubResource("SpriteFrames_macrm")
autoplay = "default"

[node name="CollisionShape2D" type="CollisionShape2D" parent="core"]
position = Vector2(0, -1)
shape = SubResource("CircleShape2D_a5wrw")

[node name="fadeOut" type="CanvasLayer" parent="core"]

[node name="AnimationPlayer" type="AnimationPlayer" parent="core/fadeOut"]
physics_interpolation_mode = 1
libraries = {
&"": SubResource("AnimationLibrary_h31ej")
}
autoplay = "fadeIn"
script = ExtResource("10_61j20")

[node name="ColorRect" type="ColorRect" parent="core/fadeOut"]
modulate = Color(0, 0, 0, 1)
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
color = Color(0, 0, 0, 1)
metadata/_edit_use_anchors_ = true

[node name="loreText" type="Label" parent="core/fadeOut"]
self_modulate = Color(1, 1, 1, 0)
offset_left = 232.0
offset_top = 335.0
offset_right = 1025.0
offset_bottom = 359.0
theme_override_fonts/font = ExtResource("11_gt3fy")
text = "You have consumed the planet."
label_settings = SubResource("LabelSettings_gt3fy")
horizontal_alignment = 1

[node name="ParallaxBackground" parent="." instance=ExtResource("4_irop4")]

[connection signal="body_entered" from="core" to="core" method="_on_body_entered"]
[connection signal="playerExit" from="core" to="core/fadeOut/AnimationPlayer" method="_on_exit_zone_player_exit"]
[connection signal="animation_finished" from="core/fadeOut/AnimationPlayer" to="core" method="_on_animation_finished"]
