1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat: 添加矢量星武器和子弹功能

实现新的矢量星武器系统,包括武器卡片、子弹行为和粒子效果。主要功能包括:
- 添加VectorStarWeapon.gd武器脚本,支持多子弹发射和追踪目标
- 实现VectorStar.gd子弹脚本,包含初始冲刺和后续追踪逻辑
- 添加相关场景资源和配置
- 将新武器添加到公鸡角色的武器库中
This commit is contained in:
2025-09-06 13:27:00 +08:00
parent b68ef6f340
commit 95db9deb3c
7 changed files with 92 additions and 6 deletions
+11 -4
View File
@@ -1,6 +1,7 @@
[gd_scene load_steps=9 format=3 uid="uid://ro1df12asa6y"]
[gd_scene load_steps=10 format=3 uid="uid://ro1df12asa6y"]
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_fyvdf"]
[ext_resource type="Script" path="res://scripts/Contents/Bullets/VectorStar.gd" id="2_1u5ed"]
[ext_resource type="Texture2D" uid="uid://d2pndtow16635" path="res://resources/bullets/lgbt-bullet/造型2.svg" id="2_7b7fr"]
[sub_resource type="SpriteFrames" id="SpriteFrames_jj20o"]
@@ -15,7 +16,7 @@ animations = [{
}]
[sub_resource type="Curve" id="Curve_y5wc0"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
_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_c22if"]
@@ -32,17 +33,23 @@ curve = SubResource("Curve_r5tug")
particle_flag_disable_z = true
direction = Vector3(-1, 0, 0)
spread = 0.0
initial_velocity_min = 50.0
initial_velocity_max = 100.0
initial_velocity_min = 100.0
initial_velocity_max = 200.0
gravity = Vector3(0, 0, 0)
scale_min = 0.5
scale_max = 0.5
scale_curve = SubResource("CurveTexture_6bcs1")
alpha_curve = SubResource("CurveTexture_c22if")
[node name="VectorStar" instance=ExtResource("1_fyvdf")]
script = ExtResource("2_1u5ed")
lifeDistance = 3000.0
[node name="texture" parent="." index="0"]
rotation = 0.0174533
sprite_frames = SubResource("SpriteFrames_jj20o")
[node name="particles" type="GPUParticles2D" parent="." index="2"]
amount = 20
process_material = SubResource("ParticleProcessMaterial_bieyj")
texture = ExtResource("2_7b7fr")