1
1
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:
2025-08-27 08:58:14 +08:00
parent c5da8d7b5e
commit 5b2c2f5cf7
10 changed files with 58 additions and 17 deletions
+3 -1
View File
@@ -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))
+6
View File
@@ -0,0 +1,6 @@
extends BulletBase
class_name Laser
func ai():
rotation_degrees += 2
position = launcher.texture.global_position