slowly transition to game over
This commit is contained in:
parent
679b4839a8
commit
cf24e86781
3 changed files with 14 additions and 2 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue