mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-09 03:22:53 +08:00
feat(Bullets): 修改SevenSoul子弹生成逻辑,增加子弹数量
将原本生成一个WhiteSoul子弹改为生成两个,均匀分布在360度范围内
This commit is contained in:
@@ -25,8 +25,11 @@ func ai():
|
|||||||
func applyDot():
|
func applyDot():
|
||||||
if timeLived() > 20000 * ((6.0 - index) / 6.0):
|
if timeLived() > 20000 * ((6.0 - index) / 6.0):
|
||||||
if !spawnedChild:
|
if !spawnedChild:
|
||||||
BulletBase.generate(ComponentManager.getBullet("WhiteSoul"), launcher, heart.global_position, rotation)
|
|
||||||
spawnedChild = true
|
spawnedChild = true
|
||||||
|
var count = 7
|
||||||
|
for i in count:
|
||||||
|
BulletBase.generate(ComponentManager.getBullet("WhiteSoul"), launcher, heart.global_position, rotation + deg_to_rad(360.0 / count * i))
|
||||||
|
await TickTool.millseconds(50)
|
||||||
BulletBase.generate(ComponentManager.getBullet("SoulBall"), launcher, heart.global_position, heart.global_position.angle_to_point(get_global_mouse_position()))
|
BulletBase.generate(ComponentManager.getBullet("SoulBall"), launcher, heart.global_position, heart.global_position.angle_to_point(get_global_mouse_position()))
|
||||||
await TickTool.millseconds(100)
|
await TickTool.millseconds(100)
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user