Added proper lore for the ending.

This commit is contained in:
theskywinds 2025-05-23 18:37:04 +02:00
parent d75c4bd024
commit 062a7ce5a5
13 changed files with 211 additions and 183 deletions

View File

@ -0,0 +1 @@
uid://bljp0iwuu5106

View File

View File

@ -7,5 +7,9 @@ signal playerExit
func _on_body_entered(body: Node2D) -> void:
if body.name == "player":
emit_signal("playerExit")
await get_tree().create_timer(2).timeout
func _on_animation_finished(anim_name: StringName) -> void:
if anim_name == "fadeOut":
get_tree().change_scene_to_packed(credits)

View File

@ -1,172 +0,0 @@
[gd_scene load_steps=15 format=3 uid="uid://bdd6q3m06bnn3"]
[ext_resource type="Script" uid="uid://enxayokme5rs" path="res://levels/levelFinal/core/core.gd" id="1_6sogb"]
[ext_resource type="Texture2D" uid="uid://c54p5kdrt1r71" path="res://levels/levelFinal/core/coreSprites/planetCore_0001.png" id="1_macrm"]
[ext_resource type="Texture2D" uid="uid://b6qm6xu5ojpww" path="res://levels/levelFinal/core/coreSprites/planetCore_0002.png" id="2_6sogb"]
[ext_resource type="Texture2D" uid="uid://bbt2g8bk7kke8" path="res://levels/levelFinal/core/coreSprites/planetCore_0003.png" id="3_fpp5w"]
[ext_resource type="Texture2D" uid="uid://ch6720bqxcsmf" path="res://levels/levelFinal/core/coreSprites/planetCore_0004.png" id="4_c0dob"]
[ext_resource type="Texture2D" uid="uid://cd3n7wtnkho61" path="res://levels/levelFinal/core/coreSprites/planetCore_0005.png" id="5_v2s1a"]
[ext_resource type="Texture2D" uid="uid://bykh05626og5c" path="res://levels/levelFinal/core/coreSprites/planetCore_0006.png" id="6_in0ky"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="8_d4a53"]
[sub_resource type="SpriteFrames" id="SpriteFrames_macrm"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_macrm")
}, {
"duration": 1.0,
"texture": ExtResource("2_6sogb")
}, {
"duration": 1.0,
"texture": ExtResource("3_fpp5w")
}, {
"duration": 1.0,
"texture": ExtResource("4_c0dob")
}, {
"duration": 1.0,
"texture": ExtResource("5_v2s1a")
}, {
"duration": 1.0,
"texture": ExtResource("6_in0ky")
}],
"loop": true,
"name": &"default",
"speed": 10.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_a5wrw"]
radius = 112.0
[sub_resource type="Animation" id="Animation_h31ej"]
length = 0.001
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),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [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),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0, 0, 0, 1)]
}
[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"
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)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_h31ej"]
_data = {
&"RESET": SubResource("Animation_h31ej"),
&"fadeIn": SubResource("Animation_a6hc6"),
&"fadeOut": SubResource("Animation_e5775")
}
[node name="core" type="Area2D"]
collision_layer = 3
collision_mask = 3
script = ExtResource("1_6sogb")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(-7, 0)
sprite_frames = SubResource("SpriteFrames_macrm")
autoplay = "default"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -1)
shape = SubResource("CircleShape2D_a5wrw")
[node name="fadeOut" type="CanvasLayer" parent="."]
[node name="AnimationPlayer" type="AnimationPlayer" parent="fadeOut"]
physics_interpolation_mode = 1
libraries = {
&"": SubResource("AnimationLibrary_h31ej")
}
autoplay = "fadeIn"
script = ExtResource("8_d4a53")
[node name="ColorRect" type="ColorRect" parent="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="Label" type="Label" parent="fadeOut"]
offset_left = 510.0
offset_top = -39.0
offset_right = 602.0
offset_bottom = -16.0
text = "placeholder"
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="playerExit" from="." to="fadeOut/AnimationPlayer" method="_on_exit_zone_player_exit"]

View File

@ -1,9 +1,159 @@
[gd_scene load_steps=5 format=4 uid="uid://cbrkijjcxph15"]
[gd_scene load_steps=19 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="PackedScene" uid="uid://bdd6q3m06bnn3" path="res://levels/levelFinal/core/core.tscn" id="3_vttxq"]
[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_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 = 14.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, 3.16667, 6.26667, 10.1333),
"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, 2.6, 3.16667, 3.8, 5.6, 6.26667, 6.93333, 9.5, 10.0667, 10.2333, 10.9333, 13.0667, 14),
"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="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="AnimationLibrary" id="AnimationLibrary_h31ej"]
_data = {
&"RESET": SubResource("Animation_esn31"),
&"fadeIn": SubResource("Animation_a6hc6"),
&"fadeOut": SubResource("Animation_e5775")
}
[node name="finalLevel" type="Node2D"]
@ -19,7 +169,53 @@ tile_set = ExtResource("1_sp6x8")
[node name="player" parent="." instance=ExtResource("2_js4h8")]
position = Vector2(276, 17)
[node name="core" parent="." instance=ExtResource("3_vttxq")]
[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."
[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"]

View File

@ -1 +0,0 @@
uid://jeddvfkorpxu

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=8 format=3 uid="uid://dxojtfoa4jbe"]
[ext_resource type="Script" uid="uid://c3qi2ffmxsl8i" path="res://levels/levelOne/exit_zone.gd" id="1_2uwmc"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="2_h31ej"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/animation_player.gd" id="2_h31ej"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"]
size = Vector2(32, 29)

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=8 format=3 uid="uid://iui8sgglpc55"]
[ext_resource type="Script" uid="uid://b0brgicfdcox0" path="res://levels/levelThree/exit_zone3.gd" id="1_pekjb"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="2_ofyjg"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/animation_player.gd" id="2_ofyjg"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"]
size = Vector2(32, 29)

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=8 format=3 uid="uid://c0h3r0ot5jeds"]
[ext_resource type="Script" uid="uid://b2wo3pho6jsk3" path="res://levels/levelTwo/exit_zone2.gd" id="1_i04ng"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="2_qxd85"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/animation_player.gd" id="2_qxd85"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"]
size = Vector2(32, 29)

View File

@ -16,7 +16,7 @@
[ext_resource type="Texture2D" uid="uid://jssqmb4832pr" path="res://player/smallPlayer/playerSprites/playerSprite_0008.png" id="14_lept3"]
[ext_resource type="Texture2D" uid="uid://dxeg6715vly1v" path="res://player/smallPlayer/playerSprites/playerSprite_0009.png" id="15_4smcn"]
[ext_resource type="Texture2D" uid="uid://b8eut6fnru722" path="res://player/smallPlayer/playerSprites/playerSprite_0010.png" id="16_r40ym"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="17_njh3w"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/animation_player.gd" id="17_njh3w"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3xb1h"]
size = Vector2(40, 36.5)

View File

@ -23,7 +23,7 @@
[ext_resource type="Texture2D" uid="uid://jssqmb4832pr" path="res://player/smallPlayer/playerSprites/playerSprite_0008.png" id="14_s7fta"]
[ext_resource type="Texture2D" uid="uid://dxeg6715vly1v" path="res://player/smallPlayer/playerSprites/playerSprite_0009.png" id="15_hrtuk"]
[ext_resource type="Texture2D" uid="uid://b8eut6fnru722" path="res://player/smallPlayer/playerSprites/playerSprite_0010.png" id="16_2huu8"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="24_ho6ck"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/animation_player.gd" id="24_ho6ck"]
[sub_resource type="SpriteFrames" id="SpriteFrames_hrtuk"]
animations = [{

View File

@ -16,7 +16,7 @@
[ext_resource type="Texture2D" uid="uid://jssqmb4832pr" path="res://player/smallPlayer/playerSprites/playerSprite_0008.png" id="14_byiy2"]
[ext_resource type="Texture2D" uid="uid://dxeg6715vly1v" path="res://player/smallPlayer/playerSprites/playerSprite_0009.png" id="15_1oi7f"]
[ext_resource type="Texture2D" uid="uid://b8eut6fnru722" path="res://player/smallPlayer/playerSprites/playerSprite_0010.png" id="16_7tw6i"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="17_i2pxn"]
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/animation_player.gd" id="17_i2pxn"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3xb1h"]
size = Vector2(40, 36.5)