mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-10 05: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
|
||||
|
||||
@@ -23,8 +23,14 @@ static var WAVE_TESTBOSS_ALL = [
|
||||
static var WAVE_TESTBOSS_KUKE = [
|
||||
Wave.create("KukeMC", 0, 0, true, 0, INF, 10),
|
||||
]
|
||||
static var WAVE_TESTBOSS_BEAR = [
|
||||
Wave.create("Bear", 0, 0, true, 0, INF, 10),
|
||||
]
|
||||
static var WAVE_TESTBOSS_CHICK = [
|
||||
Wave.create("Chick", 0, 0, true, 0, INF, 10),
|
||||
]
|
||||
static var WAVE_EMPTY = []
|
||||
static var data = WAVE_NORMAL
|
||||
static var data = WAVE_TESTBOSS_BEAR
|
||||
|
||||
static func customStart():
|
||||
if false:
|
||||
|
||||
@@ -2,9 +2,11 @@
|
||||
extends Weapon
|
||||
|
||||
func attack(entity: EntityBase):
|
||||
for i in 7:
|
||||
playSound("attack")
|
||||
for i in 6:
|
||||
for j in BulletBase.generate(ComponentManager.getBullet("SevenSoul"), entity, entity.texture.global_position, 0):
|
||||
j.index = i
|
||||
await TickTool.millseconds(20000 / 6.0)
|
||||
func update(to, origin, _entity):
|
||||
origin["atk"] += 1 * to * soulLevel
|
||||
return origin
|
||||
|
||||
Reference in New Issue
Block a user