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

feat(子弹效果): 增强彩虹子弹和光枪的视觉效果

- 修改彩虹子弹的着色器参数和颜色处理
- 更新光枪的着色器和材质参数
- 调整熊角色攻击时的子弹数量
- 优化粒子效果和材质设置
This commit is contained in:
2025-09-14 17:10:17 +08:00
parent 0454616c39
commit 5300144d96
8 changed files with 77 additions and 48 deletions
@@ -17,4 +17,5 @@ func ai():
PresetBulletAI.forward(self, rotation)
func setColor(color: Color):
texture.modulate = color
texture.self_modulate = color
texture.modulate.v *= 10
@@ -17,7 +17,7 @@ func spawn():
track.material = track.material.duplicate()
points.process_material = points.process_material.duplicate()
setColor(myColor)
track.size.x = length
track.size.y = length
TickTool.modifyAnimationKey(animator, "spawn", "sword:position:x", Animation.TrackType.TYPE_BEZIER, 2.5, length / -2)
TickTool.modifyAnimationKey(animator, "spawn", "sword:position:x", Animation.TrackType.TYPE_BEZIER, 3, length / 2)
TickTool.modifyAnimationKey(animator, "spawn", "%hitbox:position:x", Animation.TrackType.TYPE_BEZIER, 2.5, length / -2)
@@ -25,8 +25,9 @@ func spawn():
await TickTool.millseconds(2500)
points.emitting = true
func setColor(color: Color):
color.v *= 2
var result = Color(color)
result.a = 0
track.material.set_shader_parameter("color", result)
track.material.set_shader_parameter("laser_color", result)
sword.modulate = color
points.process_material.color = color