1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-02 17:31:55 +08:00

feat(人物): 添加熊角色及其攻击逻辑

- 在EntityBase中修改findWeaponAnchor方法以支持空节点检查
- 实现熊角色的注册、生成和AI行为
- 添加熊角色的攻击动画和武器锚点
- 在Wave数据中添加熊角色作为Boss
- 新增熊角色的子弹资源SunDance
This commit is contained in:
2025-09-07 09:48:03 +08:00
parent 94589131fa
commit 002ad98831
5 changed files with 51 additions and 7 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ func tryHeal(count: float):
healthChanged.emit(health)
func findWeaponAnchor(weaponName: String):
var anchor = $"%weapons".get_node(weaponName)
var anchor = $"%weapons".get_node_or_null(weaponName)
if anchor is Node2D:
return anchor.global_position
else: