TMXTileMap* tileMap = TMXTileMap::create("LegendDary_1_1.tmx");
int tileGID = 0;
Value properties = tileMap->getPropertiesForGID(tileGID);
ValueMap map = properties.asValueMap();
std::string name = map.at("Enemy").asString();
if(name.compare("Wolf") == 0){
CCLOG("Wolf loaded");
}
Check out my game :p
Mr Boss
https://play.google.com/store/apps/details?id=com.magmon.MrBoss
댓글 없음:
댓글 쓰기