#include <TileMapTest.h>
◆ TMXHexEvenYTest()
| TMXHexEvenYTest::TMXHexEvenYTest |
( |
| ) |
|
在文件 TileMapTest.cpp 第 1636 行定义.
1638 auto color = LayerColor::create( Color4B(64,64,64,255) );
1639 addChild(color, -1);
1641 auto map = TMXTiledMap::create(
"TileMaps/hexagonal-mini-even-y.tmx");
1644 Size CC_UNUSED s = map->getContentSize();
1645 CCLOG(
"ContentSize: %f, %f", s.width,s.height);
1648 auto floor = map->getLayer(
"Ground");
1649 for (
auto x = 0; x < map->getMapSize().width; x++) {
1650 for (
auto y = 0; y < map->getMapSize().height; y++) {
1652 floor->getTileAt(p);
引用了 kTagTileMap.
◆ CREATE_FUNC()
◆ title()
| std::string TMXHexEvenYTest::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