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

feat(武器): 添加火山阴影子弹并调整火山武器属性

新增火山阴影子弹类型,优化火山武器的攻击效果和动画
调整火山武器的伤害、冷却时间和旋转属性
移除多余的生命值属性,简化武器逻辑
优化狐狸爪子弹的追踪速度和碰撞体积
删除公鸡角色的多余武器配置
This commit is contained in:
2025-11-22 08:01:31 +08:00
parent 6bf8dc8683
commit 23e19bb0b5
10 changed files with 320 additions and 72 deletions
+14
View File
@@ -1,6 +1,9 @@
extends BulletBase
class_name Volcano
@onready var textureSword: Sprite2D = $%textureSword
@onready var anchor: Node2D = $%anchor
var rotates: float = 0
func register():
@@ -12,3 +15,14 @@ func ai():
position.angle_to_point(get_global_mouse_position()),
rotates
)
func generateShadow():
for i in BulletBase.generate(
ComponentManager.getBullet("VolcanoShadow"),
launcher,
textureSword.global_position,
anchor.global_rotation,
false, false, true, true
):
if i is VolcanoShadow:
i.damage = damage