摘要:
CCSize size = CCDirector::sharedDirector()->getWinSize();CCSprite* pSprite = CCSprite::create("bg.jpg");pSprite->setPosition(ccp(size.width/2, size.height/2));float winw = size.width; //获取屏幕宽度float winh = size.height;//获取屏幕高度float spx = pSprite->getTextureRect().getMaxX();float sp 阅读全文