1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-04 10:47:13 +08:00

feat: 添加新的角色Hen,更新Chick角色的攻击逻辑,增强Boss状态条和子弹功能

This commit is contained in:
2025-08-26 14:47:12 +08:00
parent 5923660195
commit 51b3359e8d
11 changed files with 59 additions and 15 deletions
+11
View File
@@ -1,6 +1,17 @@
extends EntityBase
class_name Chick
var angle = 0
func _ready():
fields[FieldStore.Entity.MAX_HEALTH] = 1000
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.25
super._ready()
func ai():
move(currentFocusedBoss.position - position)
if tryAttack(0):
angle += 20
func attack(type):
if type == 0:
var weaponPos = findWeaponAnchor("normal")
BulletBase.generate(preload("res://components/Bullets/Diamond.tscn"), self, weaponPos, deg_to_rad(angle))