There is a Resources folder which I store png images and sound files
e.g.
Resources/images/splash.png
Resources/sound/intro.caf
I want to store the path and file names in a xml or plist file.
So that it can be configured easily when development.
The XML schema:
<resources>
<images>
<file name="splash.png" />
</images>
<sound>
<file name="intro.caf" />
</sound>
</resources>
I am not sure how to create the plist to store those values.
I saw a code in a project but it seems to load the plist file:
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile
"Splash.plist"];
My question is how is the objective-c code to load and cache resources files mentioned in xml / plist when app start?
e.g.
Resources/images/splash.png
Resources/sound/intro.caf
I want to store the path and file names in a xml or plist file.
So that it can be configured easily when development.
The XML schema:
<resources>
<images>
<file name="splash.png" />
</images>
<sound>
<file name="intro.caf" />
</sound>
</resources>
I am not sure how to create the plist to store those values.
I saw a code in a project but it seems to load the plist file:
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile
My question is how is the objective-c code to load and cache resources files mentioned in xml / plist when app start?