Files
2026-video-game-project/Entities/Player/player_death_effect/player_death_effect.tscn

110 lines
3.3 KiB
Plaintext

[gd_scene load_steps=15 format=3 uid="uid://dm4oirxl6bpnn"]
[ext_resource type="Texture2D" uid="uid://cwwrpe5wfh7ds" path="res://Entities/Player/player_death_effect/art/spark.png" id="1_335v7"]
[ext_resource type="Script" uid="uid://3g2l2xhvoxj8" path="res://Entities/Player/player_death_effect/player_death_effect.gd" id="1_i0k0j"]
[ext_resource type="Texture2D" uid="uid://cmp35xmgh574d" path="res://Entities/Player/player_death_effect/art/partical_effect.png" id="2_ann6r"]
[sub_resource type="Gradient" id="Gradient_t8ru6"]
colors = PackedColorArray(0, 1, 1, 1, 0, 0, 1, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_hhxfb"]
gradient = SubResource("Gradient_t8ru6")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_644o4"]
particle_flag_disable_z = true
emission_shape = 1
emission_sphere_radius = 35.0
angular_velocity_min = -1.60933e-05
angular_velocity_max = -1.60933e-05
radial_velocity_min = -2.23517e-05
radial_velocity_max = 30.0
gravity = Vector3(0, -0.5, 0)
linear_accel_min = 15.0
linear_accel_max = 30.0
radial_accel_min = -2.23517e-06
radial_accel_max = -2.23517e-06
scale_min = 0.1
scale_max = 0.5
color_ramp = SubResource("GradientTexture1D_hhxfb")
[sub_resource type="AtlasTexture" id="AtlasTexture_fidmw"]
atlas = ExtResource("1_335v7")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_i0k0j"]
atlas = ExtResource("1_335v7")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ann6r"]
atlas = ExtResource("1_335v7")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_t8ru6"]
atlas = ExtResource("1_335v7")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_hhxfb"]
atlas = ExtResource("1_335v7")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_644o4"]
atlas = ExtResource("1_335v7")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_e74oy"]
atlas = ExtResource("1_335v7")
region = Rect2(192, 0, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_tvjs0"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_fidmw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_i0k0j")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ann6r")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t8ru6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hhxfb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_644o4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_e74oy")
}, {
"duration": 1.0,
"texture": null
}],
"loop": false,
"name": &"deathEffect",
"speed": 12.0
}]
[node name="PlayerDeathEffect" type="Node2D"]
script = ExtResource("1_i0k0j")
[node name="GPUParticles2D" type="GPUParticles2D" parent="."]
position = Vector2(0, -18)
amount = 100
texture = ExtResource("2_ann6r")
speed_scale = 1.5
explosiveness = 0.5
process_material = SubResource("ParticleProcessMaterial_644o4")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(0, -19)
sprite_frames = SubResource("SpriteFrames_tvjs0")
animation = &"deathEffect"
autoplay = "deathEffect"
frame = 7
frame_progress = 1.0
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]