Game Development Reference
In-Depth Information
in the first String SVGdata parameter, and will replace our “dummy data” that we
have been using as a placeholder thus far.
Once you invoke the Export Path menu option, you will see the Export Path to
SVG dialog, which is shown in Figure 16-5 . As you can see, I've selected the “Export
the active path” option, at the bottom of the dialog, since I only want to have one colli-
sion polygon path data object, and I am naming this file sprite1svgdata.svg , and I am
saving it in my C:\Clients\BagelToons\InvinciBagelGame\Shape_Data folder.
Figure 16-5 . Select “Export the active path” option, in the Export Path to SVG dialog, and name the file sprite1svg-
data
The next step in the work process is to open the sprite1svgdata.svg file that we are
exporting in Figure 16-5 in a text editor: for Windows users that will be Notepad , for
Macintosh users that will be TextEdit , and for Linux users it will probably be vi or
vim .
Figure 16-6 shows the File Open dialog for Windows Notepad, and you may notice
that by default, Notepad will look for the .txt ( Text file type ) file extension, which in-
dicates that there is text data inside of that file. However, there 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 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 them contain text data, and which do not.
 
 
 
Search WWH ::




Custom Search