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 />

Ascertaining Collision Data Optimization: Calculating Data Footprint for SVG Data<br />

Let’s figure out our data footprint optimization percentage. The SVG data culled from the file shown in Figure 16-18,<br />

and put into the format we will use in our Bagel() constructor method call, can be seen in the top part of Figure 16-19.<br />

Mouse-over both iBshape1svg files, seen in Figures 16-19 and 16-20, and get the file size, or right-click on the file,<br />

and use a Properties dialog to find the number of bytes in the files. This should be 97 bytes and 1,605 bytes.<br />

Figure 16-19. Open folder in your workstation containing the SVG data, and mouse-over file to see the number of bytes<br />

Figure 16-20. Mouse-over the original Fuzzy Select Tool generated SVG data to get the data footprint, and do the math<br />

362<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!