#include <TileMapTest2.h>
◆ TMXOrthoZorderNew()
| TMXOrthoZorderNew::TMXOrthoZorderNew |
( |
| ) |
|
在文件 TileMapTest2.cpp 第 862 行定义.
864 auto map = cocos2d::FastTMXTiledMap::create(
"TileMaps/orthogonal-test-zorder.tmx");
867 Size CC_UNUSED s = map->getContentSize();
868 CCLOG(
"ContentSize: %f, %f", s.width,s.height);
871 map->addChild(
_tamara, (
int)map->getChildren().size());
873 _tamara->setAnchorPoint(Vec2(0.5f,0.0f));
876 auto move = MoveBy::create(10, Vec2(400.0f,450.0f));
877 auto back = move->reverse();
878 auto seq = Sequence::create(move, back,
nullptr);
879 _tamara->runAction( RepeatForever::create(seq));
void repositionSprite(float dt)
cocos2d::Sprite * _tamara
static const char s_pathSister1[]
引用了 _tamara, kTagTileMap, repositionSprite() , 以及 s_pathSister1.
◆ ~TMXOrthoZorderNew()
| TMXOrthoZorderNew::~TMXOrthoZorderNew |
( |
| ) |
|
|
virtual |
◆ CREATE_FUNC()
◆ repositionSprite()
| void TMXOrthoZorderNew::repositionSprite |
( |
float |
dt | ) |
|
◆ subtitle()
| std::string TMXOrthoZorderNew::subtitle |
( |
| ) |
const |
|
overridevirtual |
◆ title()
| std::string TMXOrthoZorderNew::title |
( |
| ) |
const |
|
overridevirtual |
◆ _tamara
| cocos2d::Sprite* TMXOrthoZorderNew::_tamara |
|
private |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/TileMapTest/TileMapTest2.h
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/TileMapTest/TileMapTest2.cpp