Add terrain hit effects, progressive damage component, and update collectable signals
This commit is contained in:
80
objects/fxs/terrain_hit_fx.tscn
Normal file
80
objects/fxs/terrain_hit_fx.tscn
Normal file
@@ -0,0 +1,80 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://c1iorglk708g0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djfejwp6e402k" path="res://scripts/components/terrain_hit_fx.gd" id="1_22p6x"]
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_6dbny"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_22p6x"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.743682, 0.699254), -0.879484, -0.879484, 0, 0, Vector2(1, 0.0104477), 2.07887, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_nm1g5"]
|
||||
curve = SubResource("Curve_22p6x")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_hryxg"]
|
||||
lifetime_randomness = 0.1
|
||||
particle_flag_disable_z = true
|
||||
inherit_velocity_ratio = -0.5
|
||||
direction = Vector3(0, 0, 0)
|
||||
spread = 180.0
|
||||
initial_velocity_max = 32.0
|
||||
gravity = Vector3(0, 98, 0)
|
||||
scale_curve = SubResource("CurveTexture_nm1g5")
|
||||
color = Color(0.47451, 0.254902, 0, 1)
|
||||
color_ramp = SubResource("GradientTexture1D_6dbny")
|
||||
turbulence_noise_speed = Vector3(2.73, 5.225, 0)
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_hyh53"]
|
||||
lifetime_randomness = 0.2
|
||||
particle_flag_disable_z = true
|
||||
inherit_velocity_ratio = -0.5
|
||||
direction = Vector3(0, 0, 0)
|
||||
spread = 180.0
|
||||
initial_velocity_max = 32.0
|
||||
gravity = Vector3(0, 98, 0)
|
||||
scale_min = 0.8
|
||||
scale_max = 0.9
|
||||
scale_curve = SubResource("CurveTexture_nm1g5")
|
||||
color = Color(0.47451, 0.254902, 0, 1)
|
||||
turbulence_noise_speed = Vector3(2.73, 5.225, 0)
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_n5pa8"]
|
||||
lifetime_randomness = 0.1
|
||||
particle_flag_disable_z = true
|
||||
inherit_velocity_ratio = -0.5
|
||||
direction = Vector3(0, 0, 0)
|
||||
spread = 180.0
|
||||
initial_velocity_max = 32.0
|
||||
gravity = Vector3(0, 98, 0)
|
||||
scale_min = 0.9
|
||||
scale_curve = SubResource("CurveTexture_nm1g5")
|
||||
color = Color(0.764706, 0.443137, 0, 1)
|
||||
turbulence_noise_speed = Vector3(2.73, 5.225, 0)
|
||||
|
||||
[node name="TerrainHitFX" type="GPUParticles2D"]
|
||||
emitting = false
|
||||
amount = 24
|
||||
lifetime = 0.35
|
||||
one_shot = true
|
||||
explosiveness = 1.0
|
||||
fixed_fps = 24
|
||||
process_material = SubResource("ParticleProcessMaterial_hryxg")
|
||||
script = ExtResource("1_22p6x")
|
||||
|
||||
[node name="TerrainHitFX2" type="GPUParticles2D" parent="."]
|
||||
emitting = false
|
||||
amount = 24
|
||||
lifetime = 0.35
|
||||
one_shot = true
|
||||
explosiveness = 1.0
|
||||
fixed_fps = 24
|
||||
process_material = SubResource("ParticleProcessMaterial_hyh53")
|
||||
|
||||
[node name="TerrainHitFX" type="GPUParticles2D" parent="."]
|
||||
emitting = false
|
||||
amount = 24
|
||||
lifetime = 0.35
|
||||
one_shot = true
|
||||
explosiveness = 1.0
|
||||
fixed_fps = 24
|
||||
process_material = SubResource("ParticleProcessMaterial_n5pa8")
|
Reference in New Issue
Block a user