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