28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 16 ■ Collision Detection: Creating SVG Polygons for the Game Actors and Writing Code to Detect Collision<br />

Figure 16-1. Launch GIMP, and use File ➤ Open to open the sprite1.png file<br />

Click on the GIMP Fuzzy Selection Tool (icon looks like a sparkler or a magic wand), which is shown selected<br />

(depressed, as in “sunk in,” not sad) in Figure 16-2. Click on any area of the image that shows a checkerboard pattern,<br />

which always signifies transparency in any digital imaging software package, as well as many other types of software,<br />

such as the game asset creation software packages from CodeAndWeb GmbH, for instance. As you see, in Figure 16-2,<br />

you’ll get an animated, “crawling ants” outline around the transparent areas of the image, since the transparent areas<br />

have just been selected by the Fuzzy Selection Tool algorithm, which selects areas of contiguous color values.<br />

346<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!