Camera and UI
This commit is contained in:
parent
7842e15c6c
commit
edadd138b0
8 changed files with 65 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue