feat: Ignore input when gameover screen is showing
This commit is contained in:
parent
990f797597
commit
ef014bdd07
|
|
@ -22,6 +22,10 @@ func _ready() -> void:
|
||||||
$HUD.visible = true
|
$HUD.visible = true
|
||||||
|
|
||||||
func _process(delta: float) -> void:
|
func _process(delta: float) -> void:
|
||||||
|
# On fail screen, ignore further input
|
||||||
|
if $FailControl.visible:
|
||||||
|
return
|
||||||
|
|
||||||
$HUD/StaminaLabel.text = str(int(stamina))
|
$HUD/StaminaLabel.text = str(int(stamina))
|
||||||
|
|
||||||
var time_left = int($TimeLimit.time_left)
|
var time_left = int($TimeLimit.time_left)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue