1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00
Files
Dog-Lynx-And-HCN/components/Bullets/Cogwheel.tscn
T
fallingshrimp 2682863302 fix(武器/子弹): 调整齿轮武器的攻击力和动画效果
将齿轮武器的攻击力从5降低到2以平衡游戏性
修改子弹动画轨道类型,从bezier改为value,并调整发射效果
移除子弹组件中未使用的属性,简化代码结构
2026-02-15 20:22:28 +08:00

135 lines
3.8 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 = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("%texture/../trails:emitting")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[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 = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("%texture/../trails:emitting")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[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
penerate = 1.0
lifeTime = 5000.0
autoDestroyAnimation = true
[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")