Erm, sorry for taking so long to get back.. I'm going through a 10 month break up now and time is creeping.. and I'm really confused about life but as they say it goes on, I reckon.
So, I've rewritten a few things, but Dwedit's code has really helped me along. I've moved the metatile struct to a constructor in a separate class. I'm still having trouble though :/ I have the full definitions I need in a byte array and I can't figure out how to put it all in a for loop to display them all. Any chances I could snag some help on this? Basically I put a metatile together and draw it like this:
Code:
var gfxeditor = new NesTileDrawing(ROM.chrData, palette, pixels, 256);
MetaTile tilename = new MetaTile(0xa5,0xa6,0xa7,0xa8); <- need help here
DrawMetatile(tilename, 0, 0, gfxeditor);
Code:
void DrawMetatile(MetaTile mt, int x, int y, NesTileDrawing source)
{
source.DrawTile(x, y, mt.topLeft);
source.DrawTile(x + 8, y, mt.topRight);
source.DrawTile(x, y + 8, mt.bottomLeft);
source.DrawTile(x + 8, y + 8, mt.bottomRight);
}
NesTileDrawing is Dwedit's code from a couple posts back.
Thanks.