For the life of me I cannot figure out how to do this.
NSString *f开发者_开发百科ilename = @"starbackground.png";
CCSpriteBatchNode *batch = [CCSpriteBatchNode batchNodeWithFile:filename];
works great as long as the image is at the top level of my project.
How can I load an image from a subfolder such as resources? Or resources/images?
When adding folder with your project in xcode there are to options. Choose create references. Then you will be able to do what you want. In your resources the references folder is shown blue, not yellow
精彩评论