stamina and health bar

This commit is contained in:
Michael Campbell 2026-03-04 17:17:57 -05:00
parent d17b16ad5b
commit 5b417b540b
9 changed files with 184 additions and 10 deletions

10
player/stamina_bar.gd Normal file
View file

@ -0,0 +1,10 @@
extends ProgressBar
var clock := 2.
func _process(delta: float) -> void:
modulate.a = clampf(remap(clock, .5, 1., 1., 0.), 0., 1.)
if value == max_value:
clock += delta
else:
clock = 0