pegchamp/Menu/WinScreen.gd

14 lines
349 B
GDScript3
Raw Normal View History

2021-09-08 08:27:14 +00:00
extends CanvasLayer
func _ready():
$AnimationPlayer.play("win")
2021-10-05 19:55:34 +00:00
while GameStats.balls_left >= 0:
GameStats.set_score_to(GameStats.score + 15 * GameStats.multiplier)
GameStats.add_balls(-1)
2021-09-08 08:27:14 +00:00
2021-09-11 20:35:58 +00:00
func _on_AnimationPlayer_animation_finished(_anim_name):
2021-09-08 08:27:14 +00:00
$Congratulations.visible = false
$Congratulations2.visible = false
$Control.visible = true