Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 16 ■ 3D Game animation Creation: UsinG the animation transition Classes

When you select Run ➤ Project, a spinner spins from the left to the right side of the game, as shown in
Figure 16-11.


Figure 16-11. Select Run ➤ Project, click Start Game, and watch the spinner animate


Figure 16-10. Declare a spinnerAnim ParallelTransition at the top of the class and instantiate it in
createAnimationAssets()

Free download pdf