mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-04 02:37:12 +08:00
feat(武器): 更新七魂武器效果并添加音效
- 添加攻击音效文件 - 修改七魂子弹生成逻辑,从7个改为6个并添加延迟 - 调整子弹生命周期和旋转动画 - 更新武器描述和属性 - 添加新的测试BOSS波浪数据
This commit is contained in:
@@ -14,12 +14,12 @@ var index = 0
|
||||
|
||||
func spawn():
|
||||
heart.modulate = Color(colors[index % colors.size()])
|
||||
rotation_degrees = 360.0 / colors.size() * index
|
||||
func ai():
|
||||
rotation_degrees += 1.5
|
||||
rotation_degrees = 360.0 / colors.size() * index + timeLived() / 20000.0 * 360 - index / 6.0 * 360.0
|
||||
heart.global_rotation_degrees = 0
|
||||
PresetBulletAI.lockLauncher(self, launcher, true)
|
||||
func applyDot():
|
||||
BulletBase.generate(ComponentManager.getBullet("SoulBall"), launcher, heart.global_position, heart.global_position.angle_to_point(get_global_mouse_position()))
|
||||
if timeLived() > 20000 * ((6.0 - index) / 6.0):
|
||||
BulletBase.generate(ComponentManager.getBullet("SoulBall"), launcher, heart.global_position, heart.global_position.angle_to_point(get_global_mouse_position()))
|
||||
await TickTool.millseconds(100)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user