我得到一個異常說,圖像不能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