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,5 +2,6 @@ extends BulletBase
|
||||
class_name Diamond
|
||||
|
||||
func ai():
|
||||
rotation_degrees += 1
|
||||
if Time.get_ticks_msec() - spawnInWhen < 500: # 生成的前0.5秒可以追踪
|
||||
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.1)
|
||||
forward(Vector2.from_angle(rotation))
|
||||
|
||||
Reference in New Issue
Block a user