Ejemplo n.º 1
0
        public override PatternTable LoadBgPatternTable_ChrUsage(bool linear, int bankIndex)
        {
            var oBgPatterns = MMC3PatternOffsets.GetChrBank(bankIndex);

            PatternTable pt = new PatternTable(linear);

            try {
                pt.BeginWrite();
                pt.LoadTiles(Level.Rom.data, oBgPatterns, 0, 0x100);
                return(pt);
            } finally {
                pt.EndWrite();
            }
        }
Ejemplo n.º 2
0
        public override PatternTable LoadSpritePatternsTable(bool linear)
        {
            var oSpritePatterns = MMC3PatternOffsets.GetSprBank(Level.Index);

            PatternTable pt = new PatternTable(linear);

            try {
                pt.BeginWrite();
                pt.LoadTiles(Level.Rom.data, oSpritePatterns, 0, 0x100);
                return(pt);
            } finally {
                pt.EndWrite();
            }
        }