1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 00:11:54 +08:00

feat: 重构角色和子弹系统,添加伤害标签和Boss状态条

This commit is contained in:
2025-08-26 13:56:12 +08:00
parent 727c40e1f0
commit 5c64d01f7c
19 changed files with 335 additions and 44 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
extends Node2D
extends Node
class_name EntityStateBar
@export var entity: EntityBase
@@ -6,5 +7,5 @@ extends Node2D
func _process(_delta):
if entity:
healthBar.maxValue = entity.maxHealth
healthBar.maxValue = entity.fields.get(FieldStore.Entity.MAX_HEALTH)
healthBar.setCurrent(entity.health)