Add loss reason to loss screen
This commit is contained in:
parent
bce5ded6f3
commit
eceb7f5097
2 changed files with 3 additions and 3 deletions
|
|
@ -33,8 +33,8 @@ func _on_game_won():
|
||||||
_lost = false
|
_lost = false
|
||||||
_run_intro_sequence()
|
_run_intro_sequence()
|
||||||
|
|
||||||
func _on_game_lost(_reason: String):
|
func _on_game_lost(reason: String):
|
||||||
$Center/Card/Margin/Column/Headline.text = Strings.END_LOSS_HEADLINE
|
$Center/Card/Margin/Column/Headline.text = reason
|
||||||
_lost = true
|
_lost = true
|
||||||
_apply_loss_palette()
|
_apply_loss_palette()
|
||||||
_run_intro_sequence()
|
_run_intro_sequence()
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ func _physics_process(delta):
|
||||||
_walk_in_remaining -= delta
|
_walk_in_remaining -= delta
|
||||||
if _walk_in_remaining <= 0.0:
|
if _walk_in_remaining <= 0.0:
|
||||||
_game_lost_emitted = true
|
_game_lost_emitted = true
|
||||||
EventBus.game_lost.emit("ROBOT GOT IN")
|
EventBus.game_lost.emit(Strings.LOSS_ROBOT)
|
||||||
return
|
return
|
||||||
|
|
||||||
if stun_remaining > 0.0:
|
if stun_remaining > 0.0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue