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


Now use a Run ➤ Project work process and test the code we have developed during this chapter
thoroughly. As you can’t see in Figure 17-19 (as it is not animated or interactive, like our game is now), every
time you click the 3D spinner, you get a different quadrant and also a different sequence of colors on the 3D
spinner UI itself while it still always says “SPIN”!


Figure 17-18. Add the rotSpinner.setByAngle() method calls to the random spin logic, this time subtracting
1080 plus 90

Free download pdf