Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1

Chapter 24 ■ Optimizing game assets and COde, and game prOfiling Using netBeans


(directory) called /8bit/ underneath the current /src folder, which contains the original true-color image
assets. Figure 24-1 shows this new folder.


Open the first gamequad1bird0.png texture map image in GIMP using File ➤ Open, and then use the
Image ➤ Mode ➤ Indexed menu sequence to convert a 24-bit color space (color mode) to 8-bit, as shown
in Figure 24-2. This opens the Indexed Color Conversion dialog, which allows you to select a number of
colors and a dithering algorithm. The 8-bit mode reduces the number of bits by 300 percent or more, and the
dithering algorithm simulates more than 256 colors.


Figure 24-1. Create the /JavaFXGame/src/8bit/ folder to hold optimized versions of your 120 texture map
image assets

Free download pdf