Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        /// <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;
        }
Esempio n. 3
0
 public static CCAtlasNode Create(string tile, int tileWidth, int tileHeight, int itemsToRender)
 {
     var pRet = new CCAtlasNode();
     pRet.InitWithTileFile(tile, tileWidth, tileHeight, itemsToRender);
     return pRet;
 }