pegchamp/Menu/WinScreen.gd
2021-10-05 21:55:34 +02:00

13 lines
349 B
GDScript

extends CanvasLayer
func _ready():
$AnimationPlayer.play("win")
while GameStats.balls_left >= 0:
GameStats.set_score_to(GameStats.score + 15 * GameStats.multiplier)
GameStats.add_balls(-1)
func _on_AnimationPlayer_animation_finished(_anim_name):
$Congratulations.visible = false
$Congratulations2.visible = false
$Control.visible = true