1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-03 18:27:13 +08:00

feat(子弹系统): 将子弹添加到子弹组并调整KukeMC的检测逻辑

- 在BulletBase.gd中为生成的子弹实例添加"bullets"组
- 修改KukeMC.gd的ai逻辑,改为检测"bullets"组而非"bullet"组
- 调整KukeMC的子弹检测距离从100增加到200
- 移除KukeMC对bosses组的检测逻辑
- 在Wave.gd中将默认数据改为testBoss波次并添加KukeMC
- 为KukeMC场景添加脚本并设置初始生命值
This commit is contained in:
2025-09-08 22:35:24 +08:00
parent b1de068892
commit 547e059c5b
4 changed files with 12 additions and 12 deletions
+1
View File
@@ -156,5 +156,6 @@ static func generate(
instance.rotation = spawnRotation + deg_to_rad(randf_range(-launchBy.fields.get(FieldStore.Entity.OFFSET_SHOOT), launchBy.fields.get(FieldStore.Entity.OFFSET_SHOOT)))
if addToWorld:
WorldManager.rootNode.call_deferred("add_child", instance)
instance.add_to_group("bullets")
instances.append(instance)
return instances