Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1

Chapter 15 ■ 3D Gameplay UI CreatIon: UsInG the sphere prImItIve to Create a UI noDe


Figure 15-17. Tweak the Sphere spinner settings to radius 64 to make the spinner bigger and rotate it to 30
degrees to see SPIN


Figure 15-18. The spinner Sphere UI element now looks more like a spinner, and the word SPIN is now visible
to the user


Figure 15-18 shows the Run ➤ Project Java code testing work process. As you can see, the game board
is now looking quite professional, and the 3D spinner UI looks like a spinner and is labeled SPIN, using
large, readable letters.

Free download pdf