摘要:
bool HelloWorld::init(){ ////////////////////////////// // 1. super init first if ( !CCLayer::init() ) { return false; } CCSize size = CCDirector::sharedDirector()->getWinSize(); CCSprite * sp= CCSprite::create("background1.png"); sp->setPosition(ccp( size.width/2... 阅读全文
摘要:
bool HelloWorld::init(){ ////////////////////////////// // 1. super init first if ( !CCLayer::init() ) { return false; } CCSize size =CCDirector::sharedDirector()->getWinSize();//获取屏幕大小 CCSprite * sp = CCSprite::create("Icon.png"); sp->setPosition(ccp(200, 200));... 阅读全文