Extra work on the bullet hit effect.

godot4-port
unfa 2020-06-23 01:38:29 +02:00
parent ec9ce2a1aa
commit 1bb5fcf66f
1 changed files with 37 additions and 36 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=23 format=2]
[gd_scene load_steps=25 format=2]
[ext_resource path="res://Assets/Effects/CircleHard.svg" type="Texture" id=1]
[ext_resource path="res://Assets/Effects/CircleSoft.svg" type="Texture" id=2]
@ -7,34 +7,32 @@
resource_name = "Effect"
length = 5.0
step = 0.05
tracks/0/type = "method"
tracks/0/path = NodePath(".")
tracks/0/type = "value"
tracks/0/path = NodePath("Hit:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 5 ),
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [ ],
"method": "queue_free"
} ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("MeshInstance:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.05, 0.9 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector3( 2, 2, 2 ), Vector3( 1, 1, 1 ), Vector3( 0, 0, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("ParticlesDust:emitting")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ true ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("ParticlesDust:emitting")
tracks/2/path = NodePath("ParticlesSparks:emitting")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
@ -46,7 +44,7 @@ tracks/2/keys = {
"values": [ true ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("ParticlesSparks:emitting")
tracks/3/path = NodePath("ParticlesSmoke:emitting")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
@ -57,18 +55,6 @@ tracks/3/keys = {
"update": 1,
"values": [ true ]
}
tracks/4/type = "value"
tracks/4/path = NodePath("ParticlesSmoke:emitting")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ true ]
}
[sub_resource type="SphereMesh" id=4]
radius = 0.1
@ -78,6 +64,17 @@ rings = 6
[sub_resource type="SpatialMaterial" id=5]
flags_unshaded = true
albedo_color = Color( 3.72, 2.12, 0.24, 1 )
[sub_resource type="SpatialMaterial" id=21]
albedo_color = Color( 0.258824, 0.258824, 0.258824, 1 )
[sub_resource type="SphereMesh" id=22]
material = SubResource( 21 )
radius = 0.1
height = 0.2
radial_segments = 12
rings = 6
[sub_resource type="Curve" id=19]
_data = [ Vector2( 0, 1 ), 0.0, -0.386777, 0, 0, Vector2( 0.987179, 0 ), -0.127956, 0.0, 0, 0 ]
@ -92,7 +89,6 @@ initial_velocity = 10.0
initial_velocity_random = 1.0
damping = 7.82
damping_random = 0.92
scale = 2.0
scale_random = 0.5
scale_curve = SubResource( 7 )
@ -123,6 +119,7 @@ initial_velocity = 10.0
initial_velocity_random = 1.0
damping = 7.82
damping_random = 0.92
scale = 0.5
scale_random = 0.5
scale_curve = SubResource( 7 )
color_ramp = SubResource( 9 )
@ -169,7 +166,7 @@ angular_velocity = 395.12
angular_velocity_random = 1.0
damping = 9.0
damping_random = 0.83
scale = 8.0
scale = 4.0
scale_random = 0.5
scale_curve = SubResource( 15 )
color_ramp = SubResource( 14 )
@ -195,11 +192,16 @@ material = SubResource( 17 )
autoplay = "Effect"
anims/Effect = SubResource( 20 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0 )
[node name="Hit" type="MeshInstance" parent="."]
transform = Transform( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 )
mesh = SubResource( 4 )
material/0 = SubResource( 5 )
[node name="Decal" type="MeshInstance" parent="."]
transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0 )
mesh = SubResource( 22 )
material/0 = null
[node name="ParticlesDust" type="Particles" parent="."]
emitting = false
amount = 128
@ -220,7 +222,6 @@ draw_pass_1 = SubResource( 12 )
[node name="ParticlesSmoke" type="Particles" parent="."]
emitting = false
amount = 16
lifetime = 4.0
one_shot = true
explosiveness = 1.0