Game Development Reference
In-Depth Information
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
" http://www.apple.com/DTDs/PropertyList-1.0.dtd ">
<plist version="1.0">
<dict>
<key>positions</key>
<array>
<dict>
<key>x</key>
<real>120.0</real>
<key>y</key>
<real>440.0</real>
</dict>
<dict>
<key>x</key>
<real>80.0</real>
<key>y</key>
<real>560.0</real>
</dict>
<dict>
<key>x</key>
<real>120.0</real>
<key>y</key>
<real>680.0</real>
</dict>
...
</array>
</dict>
</plist>
In this file, you can see an array of dictionaries each containing the x and y positions of
the orb nodes. Don't worry about creating this file yourself. You can find an
orbs.plist file and a blackholes.plist file in the previously downloaded ZIP
file containing the images you used for your sprites. Copy both of these files into the Sup-
portingFiles groups of your project, and let's move on to using each of these files.
Once you have copied both of the plist files into your project, you can then load them us-
ing the main bundle. Take a look at the following modified addOrbsToFore-
ground() method:
Search WWH ::




Custom Search