Module com.example.project
Class ScoreTimeline
java.lang.Object
com.example.project.controllers.gameScreens.animations.ScoreTimeline
Class for total score counter animation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.animation.Timeline
animateTotalScore
(int startScore, int endScore, javafx.scene.control.Label currentScoreLabel)
-
Constructor Details
-
ScoreTimeline
public ScoreTimeline()
-
-
Method Details
-
animateTotalScore
public javafx.animation.Timeline animateTotalScore(int startScore, int endScore, javafx.scene.control.Label currentScoreLabel) - Parameters:
startScore
- int from current total scoreendScore
- int from calculated current scorecurrentScoreLabel
- Label for total score- Returns:
- timeline of total score counter
-