Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 17 ■ i3D Game Square SeleCtion: uSinG the piCkreSult ClaSS with 3D moDelS

Add a spinnerAnim.play(); statement at the end of the gameButton event handler, as shown in
Figure 17-7.


Figure 17-6. Remove all .play() method calls and change the .setByX() method call to 150 to bring the spinner
on-screen


Figure 17-7. Add the spinnerAnim.play() method call to the end of your gameButton event-handling method
construct

Free download pdf