mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 23:41:54 +08:00
733e8e5c0b
添加新角色Kernyr及其相关资源文件,包括角色脚本、场景和贴图 添加新子弹类型Yangyi及其相关资源文件,包括子弹脚本、场景和贴图 修改Wave.gd添加Kernyr作为测试波次 调整QKSword.gd和Parrier.gd的数值效果 扩展Bullet.gd的selfRotate方法支持仅旋转贴图
22 lines
536 B
GDScript
22 lines
536 B
GDScript
extends EntityBase
|
|
class_name Kernyr
|
|
|
|
func register():
|
|
fields[FieldStore.Entity.MAX_HEALTH] = 2000
|
|
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.1
|
|
fields[FieldStore.Entity.OFFSET_SHOOT] = 20
|
|
attackCooldownMap[0] = 300
|
|
func ai():
|
|
PresetEntityAI.follow(self , currentFocusedBoss)
|
|
tryAttack(0)
|
|
func attack(type: int):
|
|
if type == 0:
|
|
for bullet in BulletBase.generate(
|
|
ComponentManager.getBullet("Yangyi"),
|
|
self ,
|
|
position,
|
|
position.angle_to_point(currentFocusedBoss.position)
|
|
):
|
|
if bullet is YangyiBullet:
|
|
pass
|