Fix damages and include true pause on death screen
This commit is contained in:
parent
05ff226721
commit
9619b8d346
3 changed files with 3 additions and 1 deletions
|
@ -13,4 +13,5 @@ func _process(delta: float) -> void:
|
||||||
|
|
||||||
|
|
||||||
func _on_main_menu_button_pressed() -> void:
|
func _on_main_menu_button_pressed() -> void:
|
||||||
|
get_tree().paused = false
|
||||||
retour_menu.emit()
|
retour_menu.emit()
|
||||||
|
|
|
@ -25,7 +25,7 @@ func _process(delta: float) -> void:
|
||||||
|
|
||||||
func set_life(pv : int) -> void :
|
func set_life(pv : int) -> void :
|
||||||
var step = 1
|
var step = 1
|
||||||
if pv > life :
|
if pv < life :
|
||||||
step = -1
|
step = -1
|
||||||
for i in range(life, pv, step):
|
for i in range(life, pv, step):
|
||||||
update_life(i)
|
update_life(i)
|
||||||
|
|
|
@ -50,3 +50,4 @@ func on_ecran_mort_retour_menu() -> void:
|
||||||
|
|
||||||
func on_death() -> void :
|
func on_death() -> void :
|
||||||
mort.visible = true
|
mort.visible = true
|
||||||
|
get_tree().paused = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue