mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(子弹效果): 添加内部伤害子弹的动画和粒子效果
- 新增destroy、loop和spawn三种动画 - 添加粒子轨迹效果 - 调整子弹纹理的旋转和缩放比例 - 启用自动循环动画功能
This commit is contained in:
@@ -15,16 +15,85 @@ animations = [{
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_nsbh7"]
|
||||
resource_name = "destroy"
|
||||
length = 0.5
|
||||
step = 0.1
|
||||
|
||||
[sub_resource type="Animation" id="Animation_6y1wt"]
|
||||
resource_name = "loop"
|
||||
loop_mode = 1
|
||||
step = 0.1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:rotation")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [6.283185307179586, 0.0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_8ryqb"]
|
||||
resource_name = "spawn"
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3d1xe"]
|
||||
_data = {
|
||||
&"destroy": SubResource("Animation_nsbh7"),
|
||||
&"loop": SubResource("Animation_6y1wt"),
|
||||
&"spawn": SubResource("Animation_8ryqb")
|
||||
}
|
||||
|
||||
[sub_resource type="Curve" id="Curve_nsbh7"]
|
||||
_data = [Vector2(0, 0.5), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_6y1wt"]
|
||||
curve = SubResource("Curve_nsbh7")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_8ryqb"]
|
||||
_data = [Vector2(0.5, 0.7), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_3d1xe"]
|
||||
curve = SubResource("Curve_8ryqb")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_fkmpk"]
|
||||
particle_flag_disable_z = true
|
||||
spread = 0.0
|
||||
angular_velocity_min = -200.00002
|
||||
angular_velocity_max = 199.99998
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_min = 0.29999998
|
||||
scale_max = 0.29999998
|
||||
scale_curve = SubResource("CurveTexture_3d1xe")
|
||||
alpha_curve = SubResource("CurveTexture_6y1wt")
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_0na4i"]
|
||||
radius = 150.0
|
||||
|
||||
[node name="InternalDamage" unique_id=5571707 instance=ExtResource("1_xwju0")]
|
||||
script = ExtResource("2_nsbh7")
|
||||
autoLoopAnimation = true
|
||||
|
||||
[node name="texture" parent="." index="0" unique_id=162977358]
|
||||
scale = Vector2(0.25103292, 0.25103292)
|
||||
rotation = 3.7873645
|
||||
scale = Vector2(0.3, 0.3)
|
||||
sprite_frames = SubResource("SpriteFrames_nsbh7")
|
||||
|
||||
[node name="animator" parent="texture" index="0" unique_id=1114087117]
|
||||
libraries/ = SubResource("AnimationLibrary_3d1xe")
|
||||
|
||||
[node name="trail" type="GPUParticles2D" parent="texture" index="2" unique_id=1763528617]
|
||||
z_index = -1
|
||||
amount = 10
|
||||
texture = ExtResource("2_0na4i")
|
||||
lifetime = 0.5
|
||||
process_material = SubResource("ParticleProcessMaterial_fkmpk")
|
||||
|
||||
[node name="hitbox" parent="." index="1" unique_id=175349408]
|
||||
shape = SubResource("CircleShape2D_0na4i")
|
||||
disabled = true
|
||||
|
||||
Reference in New Issue
Block a user