1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
fallingshrimp b343708b3b feat: 添加SCBlock和Bengbeng子弹类型及相关资源
feat(角色): 为Kernyr和CyberCat添加新攻击类型

refactor(角色): 更新Kernyr角色贴图和显示名称

feat(关卡): 调整测试关卡配置和敌人波次

style: 更新子弹资源文件及导入配置
2026-04-04 21:07:16 +08:00

13 lines
479 B
GDScript

extends BulletBase
class_name BengbengBullet
func spawn():
hitbox.disabled = true
func ai():
texture.global_rotation = 0
PresetBulletAI.forward(self , position.angle_to_point(launcher.currentFocusedBoss.position))
if is_instance_valid(launcher.currentFocusedBoss):
if launcher.currentFocusedBoss.position.distance_to(position) < 125 && hitbox.disabled:
EffectController.create(ComponentManager.getEffect("NuclearExplosion"), position).shot()
hitbox.disabled = false