#include <TileMapTest.h>
◆ TMXHexOddXTest()
| TMXHexOddXTest::TMXHexOddXTest |
( |
| ) |
|
在文件 TileMapTest.cpp 第 1543 行定义.
1545 auto color = LayerColor::create( Color4B(64,64,64,255) );
1546 addChild(color, -1);
1548 auto map = TMXTiledMap::create(
"TileMaps/hexagonal-mini-odd-x.tmx");
1551 Size CC_UNUSED s = map->getContentSize();
1552 CCLOG(
"ContentSize: %f, %f", s.width,s.height);
1555 auto floor = map->getLayer(
"Ground");
1556 for (
auto x = 0; x < map->getMapSize().width; x++) {
1557 for (
auto y = 0; y < map->getMapSize().height; y++) {
1559 floor->getTileAt(p);
引用了 kTagTileMap.
◆ CREATE_FUNC()
◆ title()
| std::string TMXHexOddXTest::title |
( |
| ) |
const |
|
overridevirtual |
该类的文档由以下文件生成:
- /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