#include <TileMapTest.h>
◆ TMXHexEvenXTest()
| TMXHexEvenXTest::TMXHexEvenXTest |
( |
| ) |
|
在文件 TileMapTest.cpp 第 1605 行定义.
1607 auto color = LayerColor::create( Color4B(64,64,64,255) );
1608 addChild(color, -1);
1610 auto map = TMXTiledMap::create(
"TileMaps/hexagonal-mini-even-x.tmx");
1613 Size CC_UNUSED s = map->getContentSize();
1614 CCLOG(
"ContentSize: %f, %f", s.width,s.height);
1617 auto floor = map->getLayer(
"Ground");
1618 for (
auto x = 0; x < map->getMapSize().width; x++) {
1619 for (
auto y = 0; y < map->getMapSize().height; y++) {
1621 floor->getTileAt(p);
引用了 kTagTileMap.
◆ CREATE_FUNC()
◆ title()
| std::string TMXHexEvenXTest::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