0
我在iPhone上收到以下錯誤。config.lua類中的錯誤不是從CCScene繼承的
ERROR在config.lua
FirstSceneClassName = '1級'
該類不存在或不從CCScene繼承!
我在做什麼錯?它上次工作我上週正在處理這個代碼。
config.lua
FirstSceneClassName = "Level1",
Level1.h
#import "kobold2d.h"
@interface Level1: CCLayer
{
}
@end
Level1.m
#import "Level1.h"
#import "HUDLayer.h"
@interface Level1 (PrivateMethods)
@end
@implementation Level1
@synthesize theMap, bgLayer, Player;
+(id) scene
{
CCScene *scene = [CCScene node];
HudLayer *HUD = [HudLayer node];
[scene addChild:HUD z:2];
Level1 *layer = [Level1 node];
[scene addChild:layer];
return scene;
}
- (id)init
{
self = [super init];
if (self != nil) {
}
return self;
}
@end