HUD and prototype textures

This commit is contained in:
Rendo 2025-11-29 18:48:32 +05:00
commit 03bc73e9ff
45 changed files with 742 additions and 26 deletions

View file

@ -6,6 +6,7 @@ class_name Player
@export var weapon_models: Dictionary[StringName,Node3D]
signal spawned
signal health_changed(to: int)
const MAX_HP = 100
@ -15,6 +16,7 @@ const MAX_HP = 100
hp = 0
else:
hp = value
health_changed.emit(hp)
if hp == 0:
die()