#166632 - Emmanuel - Thu Feb 12, 2009 3:22 pm
Well, first of all, in my BackgrounsAllInOne example, the extended palette is missing, it's an empty function... in case that was the example that answers this...
Well, what I'm trying to accomplish:
To have each background with a different tile set, map, and palette...
I load the palette with:
and
But that gives me one palette per screen... how can I make it so each background can have it's palette? I'm gonna be using multiple layers, 256 colors each, and only the most recently added bg looks like it's supposed to (obviously... according to my code...)
Last edited by Emmanuel on Fri Feb 13, 2009 4:07 pm; edited 1 time in total
Well, what I'm trying to accomplish:
To have each background with a different tile set, map, and palette...
I load the palette with:
Code: |
memcpy(BG_PALETTE, buffer, size); |
and
Code: |
memcpy(BG_PALETTE_SUB, buffer, size); |
But that gives me one palette per screen... how can I make it so each background can have it's palette? I'm gonna be using multiple layers, 256 colors each, and only the most recently added bg looks like it's supposed to (obviously... according to my code...)
Last edited by Emmanuel on Fri Feb 13, 2009 4:07 pm; edited 1 time in total