La gestion de la mort est en place, je peut mourir en paix
This commit is contained in:
parent
303f40c3cc
commit
5766858c9b
8 changed files with 6008 additions and 7 deletions
|
@ -12,6 +12,8 @@ extends Control
|
|||
|
||||
@onready var life : int = 10
|
||||
|
||||
signal mort ()
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass
|
||||
|
@ -30,7 +32,7 @@ func update_life (pv : int) -> void :
|
|||
match pv :
|
||||
0 :
|
||||
coeur1.hide()
|
||||
#Rajouter ici la gestion de la mort
|
||||
mort.emit()
|
||||
1 :
|
||||
coeur1.texture = load("res://ressources/images/half_heart.svg")
|
||||
2 :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue