rmrenner ("The Old Gay Gristle Fest") wrote:
The other day I noticed that the Dragon Warrior rom actually has 2 different fonts stacked on top of each other.
NES tiles are stored as 2 bits per pixel, so if something only needs to be 2 colors, like a font, you can store Font 1 in the first bit of each pixel and Font 2 in the 2nd bit.
If a pixel is Color 0, it's not part of either font. If it's color 1 or 2, it's unique to Font 1 or Font 2 respectively. If it's color 3, it appears in both fonts. Then you set your palette accordingly.