#43805 - jarobi - Thu May 26, 2005 10:21 pm
I'm making a map editor for the gba and I'm a little bit confused about the difference in structure between 16 color tile data and 256 color tile data. I know that in 256 color tile data that each value is an index into the background palette for text backgrounds. However, I do not know how this works with 16 color tiles. I don't know whether 16 color palettes are indexed in this way:
0, 1, 2, 3, ..., 15
16, 17, 18, ..., 31
...253, 254, 255
or in this way:
0, 1, 2, ..., 15
0, 1, 2, ..., 15
...
0, 1, 2, ..., 15
I therefore do not know what to put into 16 color tile data so that I do not get a bunch of garbage when I export it to a header file. If the 16 color palettes are indexed like the second example, then that would leave me to believe that identical numbers in tile data can correspond to different colors depending on which palette is used to generate the color.
By the way, the map editor that I am working on is written in Java.
_________________
Nihongo o hanasemasen!
0, 1, 2, 3, ..., 15
16, 17, 18, ..., 31
...253, 254, 255
or in this way:
0, 1, 2, ..., 15
0, 1, 2, ..., 15
...
0, 1, 2, ..., 15
I therefore do not know what to put into 16 color tile data so that I do not get a bunch of garbage when I export it to a header file. If the 16 color palettes are indexed like the second example, then that would leave me to believe that identical numbers in tile data can correspond to different colors depending on which palette is used to generate the color.
By the way, the map editor that I am working on is written in Java.
_________________
Nihongo o hanasemasen!