slowly transition to game over

This commit is contained in:
Fabien Freling 2020-01-12 19:49:25 +01:00
parent 679b4839a8
commit cf24e86781
3 changed files with 14 additions and 2 deletions

View file

@ -185,6 +185,7 @@ func _on_GameState_state_changed(previous, current):
$Particles2D.emitting = true
$Timer.start(-1)
GameState.State.GAME_OVER:
$Particles2D.emitting = false
$Timer.stop()
func _on_Timer_timeout():