mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-11 20:42:55 +08:00
feat(子弹系统): 添加扫帚系列子弹及相关资源
添加扫帚子弹、扫帚炮和扫帚回旋镖三种新子弹类型 包含子弹脚本、音效、动画和特效资源 修改EnergyBlock实体以支持新子弹的攻击逻辑 更新子弹基类添加销毁信号
This commit is contained in:
@@ -0,0 +1,169 @@
|
||||
[gd_scene format=3 uid="uid://dbap6sorejeog"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_2ngbh"]
|
||||
[ext_resource type="Script" uid="uid://k63hoju1eyd" path="res://scripts/Contents/Bullets/BroomBoomerang.gd" id="2_14u4g"]
|
||||
[ext_resource type="Texture2D" uid="uid://caf67vt47y180" path="res://resources/bullets/swords/broom.svg" id="3_wnwnl"]
|
||||
[ext_resource type="Texture2D" uid="uid://d2pndtow16635" path="res://resources/bullets/lgbt-bullet/造型2.svg" id="4_wnwnl"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_0vfy6"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_wnwnl")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_evbtt"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:scale")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(1, 1)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath(".:modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_14u4g"]
|
||||
resource_name = "destroy"
|
||||
length = 0.5
|
||||
step = 0.1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:scale")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(1, 1), Vector2(0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath(".:modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_wnwnl"]
|
||||
resource_name = "loop"
|
||||
length = 0.5
|
||||
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, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [6.283185307179586, 0.0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0vfy6"]
|
||||
resource_name = "spawn"
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_evbtt"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_evbtt"),
|
||||
&"destroy": SubResource("Animation_14u4g"),
|
||||
&"loop": SubResource("Animation_wnwnl"),
|
||||
&"spawn": SubResource("Animation_0vfy6")
|
||||
}
|
||||
|
||||
[sub_resource type="Curve" id="Curve_14u4g"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_wnwnl"]
|
||||
curve = SubResource("Curve_14u4g")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_0vfy6"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_evbtt"]
|
||||
curve = SubResource("Curve_0vfy6")
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_0vfy6"]
|
||||
colors = PackedColorArray(0.9490196, 0.7529412, 0.3882353, 1, 0.42, 0.30975002, 0.1554, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_evbtt"]
|
||||
gradient = SubResource("Gradient_0vfy6")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_eep1e"]
|
||||
_data = [Vector2(0, 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_g0gbx"]
|
||||
curve = SubResource("Curve_eep1e")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_m5hsn"]
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 95.03
|
||||
angle_min = 1.0728835e-05
|
||||
angle_max = 360.00003
|
||||
angle_curve = SubResource("CurveTexture_evbtt")
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_curve = SubResource("CurveTexture_g0gbx")
|
||||
color_initial_ramp = SubResource("GradientTexture1D_evbtt")
|
||||
alpha_curve = SubResource("CurveTexture_wnwnl")
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_wnwnl"]
|
||||
radius = 124.01613
|
||||
|
||||
[node name="BroomBoomerang" unique_id=5571707 instance=ExtResource("1_2ngbh")]
|
||||
script = ExtResource("2_14u4g")
|
||||
displayName = "扫帚回旋镖"
|
||||
speed = 40.0
|
||||
baseDamage = 15.0
|
||||
penerate = 1.0
|
||||
lifeTime = 10000.0
|
||||
autoLoopAnimation = true
|
||||
autoDestroyAnimation = true
|
||||
|
||||
[node name="texture" parent="." index="0" unique_id=162977358]
|
||||
rotation = 6.2831855
|
||||
sprite_frames = SubResource("SpriteFrames_0vfy6")
|
||||
|
||||
[node name="animator" parent="texture" index="0" unique_id=1114087117]
|
||||
libraries/ = SubResource("AnimationLibrary_evbtt")
|
||||
|
||||
[node name="trail" type="GPUParticles2D" parent="texture" index="2" unique_id=1139927837]
|
||||
amount = 200
|
||||
texture = ExtResource("4_wnwnl")
|
||||
process_material = SubResource("ParticleProcessMaterial_m5hsn")
|
||||
|
||||
[node name="hitbox" parent="." index="1" unique_id=175349408]
|
||||
shape = SubResource("CircleShape2D_wnwnl")
|
||||
Reference in New Issue
Block a user