28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Figure 16-3. Invert selection using Select ➤ Invert, so only Actor is selected (left); use Select ➤ To Path to convert to path<br />

The next step is to convert this raster pixel selection set (array) into a vector (path) data representation. The way<br />

that we do this in GIMP is to use the Select ➤ To Path menu sequence, seen on the right half of Figure 16-3. This will<br />

convert the selection that is around the InvinciBagel character to vector path data, which is what we want to cull.<br />

Once you convert the pixel selection into a vector path, you will get the result that is shown in Figure 16-4.<br />

348<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!