CCMenu和CCLabelTTF的使用

CCLabelTTF *label = CCLabelTTF::create("Start", "SimSun", 50);
CCMenuItemLabel *mil = CCMenuItemLabel::create(label, this, menu_selector(HelloWorld::click));

CCMenuItemImage *mil2 = CCMenuItemImage::create("start1.png", "start2.png");

CCMenu *menu = CCMenu::create(mil,mil2, NULL);
this->addChild(menu);


void HelloWorld::click(CCObject *sender){

	CCDirector::sharedDirector()->replaceScene(HelloWorld::scene());
}

你可能感兴趣的:(label)