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-5. Select “Export the active path” option, in the Export Path to SVG dialog, and name the file sprite1svgdata<br />

The next step in the work process is to open the sprite1svgdata.svg file that we are exporting in Figure 16-5 in a<br />

text editor: for Windows users that will be Notepad, for Macintosh users that will be TextEdit, and for Linux users it<br />

will probably be vi or vim.<br />

Figure 16-6 shows the File Open dialog for Windows Notepad, and you may notice that by default, Notepad will<br />

look for the .txt (Text file type) file extension, which indicates that there is text data inside of that file. However, there<br />

is also text data inside of the .svg file extension (type), in the form of XML data. We need to use the drop-down menu<br />

at the bottom right of the dialog to tell Notepad to look at all files that are available, and to allow us to decide which of<br />

them contain text data, and which do not.<br />

350<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!