mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 00:11:54 +08:00
feat: 添加新的子弹类型和相关逻辑,更新角色攻击方式,增加无差别伤害选项
This commit is contained in:
@@ -2,6 +2,8 @@ extends BulletBase
|
||||
class_name Diamond
|
||||
|
||||
func ai():
|
||||
if Time.get_ticks_msec() - spawnInWhen < 500: # 生成的前0.5秒可以追踪
|
||||
var tracing = Time.get_ticks_msec() - spawnInWhen < 1000
|
||||
if tracing:
|
||||
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.1)
|
||||
canDamageSelf = !tracing
|
||||
forward(Vector2.from_angle(rotation))
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
extends BulletBase
|
||||
class_name Laser
|
||||
|
||||
func ai():
|
||||
rotation_degrees += 2
|
||||
position = launcher.texture.global_position
|
||||
Reference in New Issue
Block a user