Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / effect / activityObject / EnemyDebris.tscn
@小李xl 小李xl on 10 May 2023 5 KB 添加敌人死亡特效
[gd_scene load_steps=30 format=3 uid="uid://cj47w003yql4x"]

[ext_resource type="Script" path="res://src/framework/activity/ActivityObjectTemplate.cs" id="1_h7exw"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_vlp01"]
[ext_resource type="Texture2D" uid="uid://d2f55lu60x64i" path="res://resource/effects/activityObject/Enemy0001_Debris.png" id="3_ohnrx"]
[ext_resource type="Texture2D" uid="uid://h7hkgbwj1li" path="res://resource/effects/Smoke.png" id="4_e30nm"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_s1mj2"]
resource_local_to_scene = true
shader = ExtResource("2_vlp01")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1

[sub_resource type="ShaderMaterial" id="ShaderMaterial_08fn3"]
resource_local_to_scene = true
shader = ExtResource("2_vlp01")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0

[sub_resource type="AtlasTexture" id="AtlasTexture_hqaf2"]
atlas = ExtResource("3_ohnrx")
region = Rect2(0, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_b55yq"]
atlas = ExtResource("3_ohnrx")
region = Rect2(8, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_6ouxh"]
atlas = ExtResource("3_ohnrx")
region = Rect2(16, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_sfr41"]
atlas = ExtResource("3_ohnrx")
region = Rect2(24, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_j5qpi"]
atlas = ExtResource("3_ohnrx")
region = Rect2(32, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_ltfhd"]
atlas = ExtResource("3_ohnrx")
region = Rect2(40, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_oh4q1"]
atlas = ExtResource("3_ohnrx")
region = Rect2(48, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_ebvnk"]
atlas = ExtResource("3_ohnrx")
region = Rect2(56, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_lboyj"]
atlas = ExtResource("3_ohnrx")
region = Rect2(64, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_6qefr"]
atlas = ExtResource("3_ohnrx")
region = Rect2(72, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_aya5f"]
atlas = ExtResource("3_ohnrx")
region = Rect2(80, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_el804"]
atlas = ExtResource("3_ohnrx")
region = Rect2(88, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_pha71"]
atlas = ExtResource("3_ohnrx")
region = Rect2(96, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_ps4oc"]
atlas = ExtResource("3_ohnrx")
region = Rect2(104, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_l8my6"]
atlas = ExtResource("3_ohnrx")
region = Rect2(112, 0, 8, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_4jpot"]
atlas = ExtResource("3_ohnrx")
region = Rect2(120, 0, 8, 8)

[sub_resource type="SpriteFrames" id="SpriteFrames_15g84"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hqaf2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b55yq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6ouxh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sfr41")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j5qpi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ltfhd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_oh4q1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ebvnk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lboyj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6qefr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_aya5f")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_el804")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pha71")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ps4oc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l8my6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4jpot")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_p3lv8"]
particles_animation = true
particles_anim_h_frames = 3
particles_anim_v_frames = 1
particles_anim_loop = false

[sub_resource type="Gradient" id="Gradient_ryemi"]
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0.537255)

[sub_resource type="GradientTexture1D" id="GradientTexture1D_orgu0"]
gradient = SubResource("Gradient_ryemi")

[sub_resource type="Curve" id="Curve_21dxk"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.177419, 1), 0.0, 0.0, 0, 0, Vector2(1, 0.0272727), 0.0, 0.0, 0, 0]
point_count = 3

[sub_resource type="CurveTexture" id="CurveTexture_rutlp"]
curve = SubResource("Curve_21dxk")

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ku1mm"]
particle_flag_disable_z = true
gravity = Vector3(0, 0, 0)
orbit_velocity_min = 0.0
orbit_velocity_max = 0.0
angle_max = 360.0
scale_min = 0.4
scale_max = 1.5
scale_curve = SubResource("CurveTexture_rutlp")
color = Color(0.811765, 0.0980392, 0.0980392, 0.627451)
color_ramp = SubResource("GradientTexture1D_orgu0")
anim_offset_max = 1.0

[node name="EnemyDebris" type="Node"]
script = ExtResource("1_h7exw")
collision_mask = 1

[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_s1mj2")

[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_08fn3")
sprite_frames = SubResource("SpriteFrames_15g84")

[node name="Collision" type="CollisionShape2D" parent="."]

[node name="GPUParticles2D" type="GPUParticles2D" parent="."]
material = SubResource("CanvasItemMaterial_p3lv8")
emitting = false
process_material = SubResource("ParticleProcessMaterial_ku1mm")
texture = ExtResource("4_e30nm")
fixed_fps = 20