/// <summary> /// creates a CCTileMap with a tile file (atlas) with a map file and the width and height of each tile in points. /// The tile file will be loaded using the TextureMgr. /// </summary> public static CCTileMapAtlas tileMapAtlasWithTileFile(string tile, string mapFile, int tileWidth, int tileHeight) { CCTileMapAtlas pRet = new CCTileMapAtlas(); if (pRet.initWithTileFile(tile, mapFile, tileWidth, tileHeight)) { return pRet; } return null; }
public static CCTileMapAtlas tileMapAtlasWithTileFile(string tile, string mapFile, int tileWidth, int tileHeight) { CCTileMapAtlas cCTileMapAtla = new CCTileMapAtlas(); if (cCTileMapAtla.initWithTileFile(tile, mapFile, tileWidth, tileHeight)) { return(cCTileMapAtla); } return(null); }