mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-13 07:07:12 +08:00
feat: 添加新角色Kernyr和子弹Yangyi及相关资源
添加新角色Kernyr及其相关资源文件,包括角色脚本、场景和贴图 添加新子弹类型Yangyi及其相关资源文件,包括子弹脚本、场景和贴图 修改Wave.gd添加Kernyr作为测试波次 调整QKSword.gd和Parrier.gd的数值效果 扩展Bullet.gd的selfRotate方法支持仅旋转贴图
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
uid://m28dwfwmmhmh
|
||||
Reference in New Issue
Block a user