]> purplebirdman git - frog-ninja.git/blob - asset/effect/hit_effect.tscn
Squashed commit of the following:
[frog-ninja.git] / asset / effect / hit_effect.tscn
1 [gd_scene load_steps=10 format=3 uid="uid://c7wv7pk6df1wi"]
2
3 [ext_resource type="Script" uid="uid://badiajigkadsq" path="res://asset/effect/hit_effect.gd" id="1_bout0"]
4
5 [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_5e0g0"]
6 spread = 180.0
7 initial_velocity_min = 22.0
8 initial_velocity_max = 66.0
9
10 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_5e0g0"]
11 cull_mode = 2
12 shading_mode = 0
13 billboard_mode = 1
14 use_particle_trails = true
15
16 [sub_resource type="RibbonTrailMesh" id="RibbonTrailMesh_bout0"]
17 material = SubResource("StandardMaterial3D_5e0g0")
18 shape = 0
19 size = 0.013
20 sections = 2
21 section_length = 0.025
22 section_segments = 1
23
24 [sub_resource type="Gradient" id="Gradient_7adp8"]
25 offsets = PackedFloat32Array(0, 0.368039, 1)
26 colors = PackedColorArray(1, 1, 1, 1, 1, 1, 0, 1, 0.878431, 0.105882, 0, 1)
27
28 [sub_resource type="GradientTexture1D" id="GradientTexture1D_2n1qw"]
29 gradient = SubResource("Gradient_7adp8")
30
31 [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_7adp8"]
32 lifetime_randomness = 0.48
33 angle_min = -394.0
34 angle_max = 310.9
35 direction = Vector3(1, 11, 0)
36 initial_velocity_min = 1.0
37 initial_velocity_max = 8.0
38 color_ramp = SubResource("GradientTexture1D_2n1qw")
39
40 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2n1qw"]
41 cull_mode = 2
42 shading_mode = 0
43 vertex_color_use_as_albedo = true
44 billboard_mode = 3
45 particles_anim_h_frames = 1
46 particles_anim_v_frames = 1
47 particles_anim_loop = false
48 point_size = 27.8
49 use_particle_trails = true
50
51 [sub_resource type="RibbonTrailMesh" id="RibbonTrailMesh_7bqhd"]
52 material = SubResource("StandardMaterial3D_2n1qw")
53 shape = 0
54 size = 0.01
55 section_length = 0.01
56
57 [node name="HitEffect" type="Node3D"]
58 script = ExtResource("1_bout0")
59
60 [node name="Explosion" type="GPUParticles3D" parent="."]
61 transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0, 0)
62 emitting = false
63 amount = 40
64 lifetime = 0.1
65 one_shot = true
66 explosiveness = 1.0
67 fixed_fps = 60
68 trail_enabled = true
69 trail_lifetime = 0.25
70 process_material = SubResource("ParticleProcessMaterial_5e0g0")
71 draw_pass_1 = SubResource("RibbonTrailMesh_bout0")
72
73 [node name="Sparks" type="GPUParticles3D" parent="."]
74 emitting = false
75 lifetime = 2.0
76 one_shot = true
77 speed_scale = 4.0
78 explosiveness = 1.0
79 randomness = 0.21
80 fixed_fps = 60
81 trail_enabled = true
82 trail_lifetime = 1.0
83 process_material = SubResource("ParticleProcessMaterial_7adp8")
84 draw_pass_1 = SubResource("RibbonTrailMesh_7bqhd")