반응형 라벨1 cocos2d-x CCLabelTTF ●화면에 글자 출력하기- HelloWorldScene.cpp의 init부분에 다음과 같이 입력한다 #include "HelloWorldScene.h" using namespace cocos2d; CCScene* HelloWorld::scene(){ CCScene *scene=CCScene::create(); HelloWorld *layer=HelloWorld::create(); scene->addChild(layer); // return the scene return scene;} // on "init" you need to initialize your instancebool HelloWorld::init(){if(!CCLayerColor::initWithColor(ccc4(255,255,255,255).. 2013. 4. 22. 이전 1 다음 반응형