mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-23 20:12:30 +08:00
feat: 添加SCBlock和Bengbeng子弹类型及相关资源
feat(角色): 为Kernyr和CyberCat添加新攻击类型 refactor(角色): 更新Kernyr角色贴图和显示名称 feat(关卡): 调整测试关卡配置和敌人波次 style: 更新子弹资源文件及导入配置
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
extends EntityBase
|
||||
class_name CyberCatEntity
|
||||
|
||||
func register():
|
||||
fields[FieldStore.Entity.MAX_HEALTH] = 1500
|
||||
fields[FieldStore.Entity.OFFSET_SHOOT] = 0
|
||||
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.2
|
||||
attackCooldownMap[0] = 6000
|
||||
attackCooldownMap[1] = 10000
|
||||
attackCooldownMap[2] = 100
|
||||
func ai():
|
||||
PresetEntityAI.follow(self , currentFocusedBoss)
|
||||
for i in 3:
|
||||
tryAttack(i)
|
||||
func attack(type: int):
|
||||
if type == 0:
|
||||
BulletBase.generate(ComponentManager.getBullet("Bengbeng"), self , position, 0)
|
||||
elif type == 1:
|
||||
heal(percentHealth(0.05))
|
||||
elif type == 2:
|
||||
BulletBase.generate(ComponentManager.getBullet("SCBlock"), self , position, 0)
|
||||
Reference in New Issue
Block a user