This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool Title::init() | |
{ | |
////////////////////////////// | |
// 1. super init first | |
if ( !Layer::init() ) | |
{ | |
return false; | |
} | |
std::string path = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto label3 = Label::createWithTTF(ttfConfig, | |
"美好的一天啊美好的一天啊美好的一天啊a", TextHAlignment::LEFT, size.width * 0.75); | |
if(label3) { | |
label3->setTextColor(Color4B(255, 255, 128, 255)); | |
label3->setPosition(Vec2(size.width * 0.1, size.height * 0.2)); | |
label3->setAnchorPoint(Vec2(0, 0.5)); | |
this->addChild(label3); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "HelloWorldScene.h" | |
USING_NS_CC; | |
Scene* HelloWorld::createScene() | |
{ | |
auto scene = Scene::createWithPhysics(); | |
auto layer = HelloWorld::create(); | |
scene->addChild(layer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() | |
{ | |
//テスト用だよ! | |
std::cout << "Hello World!\n"; | |
return 0; | |
} |