mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-10 05:37:12 +08:00
加了后坐力然后优化了能量显示的逻辑,司马trae
This commit is contained in:
@@ -26,7 +26,7 @@ func _process(_delta):
|
||||
bossbar.visible = !!bossbar.entity
|
||||
func _physics_process(_delta):
|
||||
if is_instance_valid(player):
|
||||
energyLabel.text = "%.2f" % player.energy
|
||||
energyLabel.text = "%.2f" % clamp(player.energy, 0, player.fields.get(FieldStore.Entity.MAX_ENERGY))
|
||||
energyMaxLabel.text = "%.1f" % player.fields.get(FieldStore.Entity.MAX_ENERGY)
|
||||
for i in items.get_children():
|
||||
var item = i as ItemShow
|
||||
|
||||
Reference in New Issue
Block a user