コード例 #1
0
ファイル: CCTileMapAtlas.cs プロジェクト: liwq-net/liwq718
        /// <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;
        }
コード例 #2
0
        /// <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;
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public static CCTileMapAtlas Create(string tile, string mapFile, int tileWidth, int tileHeight)
 {
     var pRet = new CCTileMapAtlas();
     pRet.InitWithTileFile(tile, mapFile, tileWidth, tileHeight);
     return pRet;
 }