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

Use the Run ➤ Project work process and click the spinner UI multiple times to test, as shown in Figure 17-16.

Figure 17-15. Add if() constructs, setting the .setByAngle() method call to four different 90-degree increments
plus 1080


Figure 17-16. The game board now randomly lands on a different quadrant with each 3D spinner click

Free download pdf