public static CCAtlasNode atlasWithTileFile(string tile, int tileWidth, int tileHeight, int itemsToRender) { CCAtlasNode cCAtlasNode = new CCAtlasNode(); if (cCAtlasNode.initWithTileFile(tile, tileWidth, tileHeight, itemsToRender)) { return(cCAtlasNode); } return(null); }
/// <summary> /// creates a CCAtlasNode with an Atlas file the width and height of each item and the quantity of items to render /// </summary> public static CCAtlasNode atlasWithTileFile(string tile, int tileWidth, int tileHeight, int itemsToRender) { CCAtlasNode pRet = new CCAtlasNode(); if (pRet.initWithTileFile(tile, tileWidth, tileHeight, itemsToRender)) { return pRet; } return null; }
public static CCAtlasNode Create(string tile, int tileWidth, int tileHeight, int itemsToRender) { var pRet = new CCAtlasNode(); pRet.InitWithTileFile(tile, tileWidth, tileHeight, itemsToRender); return pRet; }