Camera and UI

This commit is contained in:
Felipe M 2021-02-04 19:53:22 +01:00
parent 7842e15c6c
commit edadd138b0
Signed by: fmartingr
GPG key ID: 716BC147715E716F
8 changed files with 65 additions and 5 deletions

View file

@ -7,6 +7,9 @@ var health = max_health setget set_health
signal player_died
func set_health(value):
if value < health:
Events.emit_signal("add_screenshake", 0.5, 0.5)
health = clamp(value, 0, max_health)
if health == 0: