摘要: CCLayerColor* ccc = CCLayerColor::create(ccc4(255,0,0,255)); ccc->setContentSize(CCSize(200,200)); CCLog("anchorgetAnchorPoint().x,ccc->getAnchorPoint().y); ccc->ignoreAnchorPointForPosition(false);//设置false后有效 ccc->setPosition(ccp(getContentSize().width/2,getContentSize().height/2) 阅读全文