2. Cocos2d-xcocos2d-x is a multi-platform, light weight & developer-friendly C++ 2D mobile game engine, open source and released under MIT License. 코코스2d-x는 멀티-플랫폼, 경량 & 개발자-친화적c++ 2D 모바일 게임 엔진, 공개소스이고 MIT License 방식하에 공개된다.It is a child branch of the famous "cocos2d-iphone" project, and will keep the primary features sync with it.이것은 cocos2d-iphone으로 유명한 프로젝트의 child brach이며, 우선적 특징을 그것과 동일하게 유지한다.The "X" in cocos2d-x means: cocos2d-x의 X의 뜻은 :means C++. Sometimes we write .cpp postfix as .cxx. c++를 의미한다. 때때로 .cpp접미사를 .cxx로 쓰기도 한다.So "X" means the project is written by C++, and offer C++ APIs means CROSS. 그래서X는c++로 쓰여진 프로젝트라는 의미이고, 제공하는c++ API의 의미는 교차이다.The goal of this open project is to cross multi mobile platforms.이 공개 프로젝의 최종 목적은 다종의 모바일플래폼을 교차(지원)하는 것이다. http://www.cocos2d-x.org/projects/cocos2d-x/wiki
9. Load Sprite / Add ChildboolHelloWorld::init(){boolbRet = false;do { // ::::: Hello World 이미지 영역 ---- // 2. 아래에 코드를 추가 한다...CCSizewinSize = CCDirector::sharedDirector()->getWinSize(); //CCSprite *player mPlayer = CCSprite::spriteWithFile("Player.png", CCRectMake(0,0,27,40) );mPlayer->setPosition( ccp(mPlayer->getContentSize().width/2, winSize.height/2 ) ) ; this->addChild( mPlayer ); //:::bRet = true; } while (0);}
10. Back Colorclass HelloWorld : public cocos2d::CCColorLayer // 상속 부분 수정{ // 교체 // 색상 설정CCColorLayer::initWithColor( ccc4(255,255,255,255) ) ); //CCLayer::init());}