HUD and prototype textures
This commit is contained in:
parent
37a17878e4
commit
03bc73e9ff
45 changed files with 742 additions and 26 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue