Ejemplo n.º 1
0
        public TileSet()
        {
            m_PaletteZero = 0;
            m_Palettes    = new byte[4] {
                0, 0, 0, 0
            };

            m_Tilegfx = new TileCollection();
            int tile = m_Tilegfx.GetIndexFromTileAndPage(0, 0, create: true);

            m_Metatiles  = new int[Data.TileSet.TilesPerSet][];
            m_Bitfields  = new byte[Data.TileSet.TilesPerSet];
            m_Attributes = new byte[Data.TileSet.TilesPerSet];
            for (int i = 0; i < TileSet.TilesPerSet; i++)
            {
                m_Metatiles[i] = new int[4] {
                    tile, tile, tile, tile
                };
                m_Bitfields[i] = 0;
            }
        }