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:09:47 +08:00
parent 739be888f3
commit c5da8d7b5e
12 changed files with 107 additions and 11 deletions
+2 -1
View File
@@ -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))