diff options
Diffstat (limited to 'Scenes/Transition.gd')
-rw-r--r-- | Scenes/Transition.gd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Scenes/Transition.gd b/Scenes/Transition.gd index eefc79c..9723813 100644 --- a/Scenes/Transition.gd +++ b/Scenes/Transition.gd @@ -34,6 +34,13 @@ func victory(): func game_over(): yield(get_tree().create_timer(1),"timeout") + var pos = camera.unproject_position(get_node(dices[prev_stage]).translation) + $UIController/Explosion.position = pos + $UIController/Explosion.show() + $UIController/Explosion/AnimationPlayer.play("Explode") + yield(get_tree().create_timer(0.1),"timeout") + get_node(dices[prev_stage]).hide() + yield(get_tree().create_timer(1),"timeout") $UIController/GameOver/AnimationPlayer.play("FadeIn") yield(get_tree().create_timer(1),"timeout") set_process_input(true) |