1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-22 03:22:30 +08:00
Files
Dog-Lynx-And-HCN/components/Bullets/Cogwheel.tscn
T
fallingshrimp f8235e27e2 feat(Cogwheel): 添加分裂功能并实现销毁动画
为Cogwheel子弹添加split方法实现分裂功能,同时配置销毁动画资源并启用autoDestroyAnimation
2026-02-15 20:17:36 +08:00

147 lines
4.2 KiB
Plaintext

[gd_scene load_steps=14 format=3 uid="uid://cdv7drkq43mfe"]
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_mt0uq"]
[ext_resource type="Script" uid="uid://cfe4nv832olhp" path="res://scripts/Contents/Bullets/Cogwheel.gd" id="2_cjmf3"]
[ext_resource type="Texture2D" uid="uid://d0d1t8ch1lolp" path="res://resources/bullets/cogwheel/cogwheel.png" id="2_jis23"]
[sub_resource type="SpriteFrames" id="SpriteFrames_cjmf3"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_jis23")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="Animation" id="Animation_cjmf3"]
resource_name = "destroy"
length = 0.5
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("%texture/..:modulate:a")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0, 0),
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0, 0, -0.16666667, 0.16666667, 0, 0),
"times": PackedFloat32Array(0, 0.5)
}
tracks/1/type = "bezier"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("%texture/..:scale:x")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"handle_modes": PackedInt32Array(2, 0),
"points": PackedFloat32Array(1, 0, 0, 0.083333336, -0.16666667, 0, -0.07777778, 0.16666667, 0, 0),
"times": PackedFloat32Array(0, 0.5)
}
[sub_resource type="Animation" id="Animation_d8ajx"]
length = 0.001
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("%texture/..:modulate:a")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
tracks/1/type = "bezier"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("%texture/..:scale:x")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_d8ajx"]
_data = {
&"RESET": SubResource("Animation_d8ajx"),
&"destroy": SubResource("Animation_cjmf3")
}
[sub_resource type="CircleShape2D" id="CircleShape2D_cjmf3"]
radius = 47.0
[sub_resource type="Curve" id="Curve_cjmf3"]
_data = [Vector2(0, 0.6), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_d8ajx"]
curve = SubResource("Curve_cjmf3")
[sub_resource type="Curve" id="Curve_gidgr"]
_data = [Vector2(0, 1), 0.0, -0.35000002, 0, 1, Vector2(1, 0.65), -0.35000002, 0.0, 1, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_qlov4"]
curve = SubResource("Curve_gidgr")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_d26hc"]
particle_flag_disable_z = true
direction = Vector3(-1, 0, 0)
spread = 0.0
initial_velocity_min = 700.0
initial_velocity_max = 700.0
gravity = Vector3(0, 0, 0)
scale_min = 0.9
scale_max = 0.9
scale_curve = SubResource("CurveTexture_qlov4")
alpha_curve = SubResource("CurveTexture_d8ajx")
[node name="Cogwheel" instance=ExtResource("1_mt0uq")]
script = ExtResource("2_cjmf3")
displayName = "齿轮"
speed = 20.0
baseDamage = null
damageMultipliers = null
usingDamageMultiplier = null
penerate = 1.0
penerateDamageReduction = null
lifeDistance = null
lifeTime = 5000.0
allowFriendlyDamage = null
canDamageSelf = null
autoSpawnAnimation = null
autoLoopAnimation = null
autoDestroyAnimation = true
autoDestroyOnHitMap = null
freeAfterSpawn = null
knockback = null
recoil = null
canDoDuplicate = null
[node name="texture" parent="." index="0"]
scale = Vector2(0.2, 0.2)
sprite_frames = SubResource("SpriteFrames_cjmf3")
[node name="animator" parent="texture" index="0"]
libraries = {
&"": SubResource("AnimationLibrary_d8ajx")
}
[node name="hitbox" parent="." index="1"]
visible = false
shape = SubResource("CircleShape2D_cjmf3")
[node name="trails" type="GPUParticles2D" parent="." index="2"]
z_index = -1
scale = Vector2(0.2, 0.2)
amount = 5
texture = ExtResource("2_jis23")
preprocess = 1.0
local_coords = true
process_material = SubResource("ParticleProcessMaterial_d26hc")