Souce code :
class HelloWorld : public cocos2d::CCLayerColor
bool HelloWorld::init()
{
if(CCLayerColor::initWithColor(ccc4(255,255,255,255)))
{
CCSize winSize = CCDirector::sharedDirector()->getWinSize();
CCSprite *player = CCSprite::create("Player.png",CCRectMake(0,0,27,40));
player->setPosition(ccp(player->getContentSize().width/2,winSize.height/2));
this->addChild(player);
}
return true;
}
Each time the building completed, VistualStudio will copy the resources to the executable path
