我得到一个异常说,图像不能nil
在这条线:CCLabelBMFont由于轰然丢失的图像信息
CCLabelBMFont *label = [CCLabelBMFont labelWithString:@"5" fntFile:@"weaponnumbers.fnt"];
我在做什么错?我应该在不同的地方指定PNG吗?我把它放在项目的根基上。
-(CCTexture2D*) addImage: (NSString*) path
{
NSAssert(path != nil, @"TextureCache: fileimage MUST not be nill");
这是我得到异常的地方。我将这些文件添加到项目中,是否将它们包含在我的目标中? – Mel 2011-05-30 02:22:12