1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/Diamond.gd
T

8 lines
271 B
GDScript

extends BulletBase
class_name Diamond
func ai():
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))