Skip to content

Instantly share code, notes, and snippets.

lamlambda

Block or report user

Report or block lamlambda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lamlambda
lamlambda / TitleScene.cpp
Last active Feb 15, 2016
sqlite cocos2dx
View TitleScene.cpp
bool Title::init()
{
//////////////////////////////
// 1. super init first
if ( !Layer::init() )
{
return false;
}
std::string path = "";
@lamlambda
lamlambda / LabelTestNew.cpp
Created Jan 26, 2016
cocos2dx3.8サンプルエラー
View LabelTestNew.cpp
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);
}
@lamlambda
lamlambda / HelloWorldScene.cpp
Created Jan 18, 2016
物理エンジン使ってみる
View HelloWorldScene.cpp
#include "HelloWorldScene.h"
USING_NS_CC;
Scene* HelloWorld::createScene()
{
auto scene = Scene::createWithPhysics();
auto layer = HelloWorld::create();
scene->addChild(layer);
View test.cpp
#include <iostream>
int main()
{
//テスト用だよ!
std::cout << "Hello World!\n";
return 0;
}
You can’t perform that action at this time.