-(void)menuItem1Select:(id)item{
NSLog(@"menuitem1,Select");
}
-(void)menuItem2Select:(id)item{
NSLog(@"menuitem2,Select");
}
-(id) init
{
if( (self=[super init]) ) {
//CGSize winSize = [[CCDirector sharedDirector] winSize];
//CCLabelTTF *label =[CCLabelTTF labelWithString:@"play" fontName:@"Marker Felt" fontSize:28];
CCLabelBMFont *label =[CCLabelBMFont labelWithString:@"play" fntFile:@"chicken_font.fnt"];
//label.position=ccp(winSize.width/2, winSize.height/2);
CCMenuItemLabel *menuitem1 = [CCMenuItemLabel itemWithLabel:label target:self selector:@selector(menuItem1Select:)];
CCMenu *menu =[CCMenu menuWithItems:menuitem1, nil];
[self addChild:menu];
}
return self;
}