#include <TileMapTest.h>
◆ TMXIsoZorder()
| TMXIsoZorder::TMXIsoZorder |
( |
| ) |
|
在文件 TileMapTest.cpp 第 906 行定义.
908 Director::getInstance()->getRenderer()->setDepthTest(
false);
909 auto map = TMXTiledMap::create(
"TileMaps/iso-test-zorder.tmx");
912 auto s = map->getContentSize();
913 CCLOG(
"ContentSize: %f, %f", s.width,s.height);
914 map->setPosition(Vec2(-s.width/2,0.0f));
917 map->addChild(
_tamara, (
int)map->getChildren().size() );
920 int mapWidth = map->getMapSize().width * map->getTileSize().width;
921 _tamara->setPosition(CC_POINT_PIXELS_TO_POINTS(Vec2( mapWidth/2.0f,0.0f)));
923 _tamara->setAnchorPoint(Vec2(0.5f,0.0f));
926 auto move = MoveBy::create(10, Vec2(300.0f,250.0f));
927 auto back = move->reverse();
928 auto seq = Sequence::create(move, back,
nullptr);
929 _tamara->runAction( RepeatForever::create(seq) );
void repositionSprite(float dt)
cocos2d::Sprite * _tamara
static const char s_pathSister1[]
引用了 _tamara, kTagTileMap, repositionSprite() , 以及 s_pathSister1.
◆ ~TMXIsoZorder()
| TMXIsoZorder::~TMXIsoZorder |
( |
| ) |
|
◆ CREATE_FUNC()
◆ onExit()
| void TMXIsoZorder::onExit |
( |
| ) |
|
|
overridevirtual |
◆ repositionSprite()
| void TMXIsoZorder::repositionSprite |
( |
float |
dt | ) |
|
◆ subtitle()
| std::string TMXIsoZorder::subtitle |
( |
| ) |
const |
|
overridevirtual |
◆ title()
| std::string TMXIsoZorder::title |
( |
| ) |
const |
|
overridevirtual |
◆ _tamara
| cocos2d::Sprite* TMXIsoZorder::_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