Hi, I have some difficulties to load a palette correctly.
I'm using a FF1 black mage to learn how to load ressources. And If, in my sprite I have two 8x8 tiles that use different sub-palette, I load both like that :
Using Bob Rost's tools, I've prepare a 4-colors .CHR file and I load it in bank 2. But the only colors used in my NES file are of the first sub-palette.
My question : Do I have to load the colors every time prior to draw a tile that use a different set of colors? Or they're is a way to load a 32 colors palette one time at boot?
(obviously, you can see that I'm not an english speaker, and I'm sorry if you had some difficulties in reading me)
I'm using a FF1 black mage to learn how to load ressources. And If, in my sprite I have two 8x8 tiles that use different sub-palette, I load both like that :
Code:
set $2006 $3F
set $2006 $10
//Sub-palette 01
set $2007 $0E
set $2007 $00
set $2007 $17
set $2007 $22
//Sub-palette 02
set $2007 $0E
set $2007 $22
set $2007 $21
set $2007 $00
set $2006 $10
//Sub-palette 01
set $2007 $0E
set $2007 $00
set $2007 $17
set $2007 $22
//Sub-palette 02
set $2007 $0E
set $2007 $22
set $2007 $21
set $2007 $00
Using Bob Rost's tools, I've prepare a 4-colors .CHR file and I load it in bank 2. But the only colors used in my NES file are of the first sub-palette.
My question : Do I have to load the colors every time prior to draw a tile that use a different set of colors? Or they're is a way to load a 32 colors palette one time at boot?
(obviously, you can see that I'm not an english speaker, and I'm sorry if you had some difficulties in reading me)