feat: Ignore input when gameover screen is showing

This commit is contained in:
Dendy 2026-03-05 13:17:23 +01:00
parent 990f797597
commit ef014bdd07
1 changed files with 4 additions and 0 deletions

View File

@ -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)