Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 18 ■ 3D Gameplay DesiGn: CreatinG your Game Content usinG Gimp anD Java

Figure 18-12. This time scale your 2160-pixel image to 192 pixels so it perfectly fits inside your game board
squares


Next, use the View ➤ Zoom ➤ 100% (called the Actual Pixels view mode) menu sequence, “normalize”
the image that you’re looking at, and then undertake the same “centering in transparency” work process as
we did for the quadrant by using an Image ➤ Canvas Size menu sequence. Expand and center the canvas
back to 256 pixels to match the game board square texture map size, as shown in Figure 18-13, so that the
image will fit your texture map perfectly.

Free download pdf