52 auto cocosImage = Sprite::create(
s_Power);
54 cocosImage->setScale( 2.5f );
56 cocosImage->setAnchorPoint( Vec2(0,0) );
61 tilemap->releaseMap();
64 tilemap->setAnchorPoint( Vec2(0, 0) );
67 tilemap->getTexture()->setAntiAliasTexParameters();
71 auto background = Sprite::create(
s_back);
73 background->setScale( 1.5f );
75 background->setAnchorPoint( Vec2(0,0) );
79 auto voidNode = ParallaxNode::create();
84 voidNode->addChild(background, -1, Vec2(0.4f,0.5f), Vec2::ZERO);
87 voidNode->addChild(tilemap, 1, Vec2(2.2f,1.0f), Vec2(0,-200) );
90 voidNode->addChild(cocosImage, 2, Vec2(3.0f,2.5f), Vec2(200,800) );
96 auto goUp = MoveBy::create(4, Vec2(0,-500) );
97 auto goDown = goUp->reverse();
98 auto go = MoveBy::create(8, Vec2(-1000,0) );
99 auto goBack = go->reverse();
100 auto seq = Sequence::create(goUp, go, goDown, goBack,
nullptr);
101 voidNode->runAction( (RepeatForever::create(seq) ));
103 addChild( voidNode );
static const char s_TilesPng[]
static const char s_LevelMapTga[]
static const char s_back[]
static const char s_Power[]