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

Game Board Squares: Creating Game Squares Content in GIMP


The game board square definitions conform to the quadrant definition, giving the player five different topics
relating to the quadrant category to choose from. The player gets to decide their own fate (question) after
the game board random spin picks their category for them and randomly loads the squares with content for
the topic. Open the second (256-pixel) texture map file we worked on with the game board square template,
shown open in Figure 18-12 (third tab). Also open the Pexels.com image and the 2160-pixel square region
we are going to use to represent the parrot. The first thing we need to do is to scale a 2160-pixel image down
to 192 pixels to fit inside the color area. Since the perimeter is 32 pixels (256 – (2 × 32) = 192 pixels for the
center area in both dimensions), use an Image ➤ Scale Image work process to scale the image down to 192
pixels, as shown on the bottom left of Figure 18-12.


Figure 18-11. The parrot quadrant texture map rendered on the game board surface

Free download pdf