一些3D的action(比较炫酷的)

bool grid3daction::init() {
Layer::init();
Sprite * woman = Sprite::create("HelloWorld1.png");
NodeGrid *mywoman = NodeGrid::create();
mywoman->addChild(woman);
addChild(mywoman);
woman->setPosition(Vec2(winSize.width / 2, winSize.height / 2));
 
FlipX *actionx = FlipX::create(true);
FlipY *actiony = FlipY::create(true);
Lens3D *lens3daction = Lens3D::create(5, CCSizeMake(200, 200), Vec2(winSize.width / 2, winSize.height / 2), 5);
//FlipX3D *myaction3dx = FlipX3D::create(2);
Liquid *liquidaction = Liquid::create(5, CCSizeMake(20, 20), 5, 5);
//PageTurn3D  ,  Ripple3D 
//Shaky3D
//Twirl
//Waves
FadeOutTRTiles *fadeouttrtilesaction = FadeOutTRTiles::create(20, Size(1, 1));
JumpTiles3D *jumptile3daction = JumpTiles3D::create(20, Size(5, 5), 5, 20);
//ShakyTiles3D
//ShatteredTiles3D
//ShuffleTiles
//SplitCols
//SplitRows
//TurnOffTiles
//WavesTiles3D
mywoman->runAction(jumptile3daction);
return true;
};

上面都是action,但是3版本不能直接用,还要研究

后面的Size  越大,网格分的越小, Size越小,网格分的越大

Size(4,4) 就是把屏幕分4X4个小方块

你可能感兴趣的:(cocos2d-x)