#19805 - JWizard - Sun Apr 25, 2004 9:49 pm
Hey,
After playing around for a bit with modes 3-5 I decided to start using the tile modes. They seem pretty straightforward conceptually but I'm confused by what exactly the data should be.
As I understand it, the palette data contains all the colors used in the tiles as an array of 256 bytes (where each byte represents a different color, right ?).
Then, it seems to me that the tile data should be indices into the palette for each pixel and then the map data should be indices into the array of tiles.
However, after looking at some examples of C header files it seems to work differently. For instance I noticed some palettes with repeated values which according to my interpretation (where each value is one of the colors used) wouldn't make sense. Also, the tile data doesn't seem to be indices into the palette array.
If anyone could shed some light on this issue it would be greatly appreciated.
After playing around for a bit with modes 3-5 I decided to start using the tile modes. They seem pretty straightforward conceptually but I'm confused by what exactly the data should be.
As I understand it, the palette data contains all the colors used in the tiles as an array of 256 bytes (where each byte represents a different color, right ?).
Then, it seems to me that the tile data should be indices into the palette for each pixel and then the map data should be indices into the array of tiles.
However, after looking at some examples of C header files it seems to work differently. For instance I noticed some palettes with repeated values which according to my interpretation (where each value is one of the colors used) wouldn't make sense. Also, the tile data doesn't seem to be indices into the palette array.
If anyone could shed some light on this issue it would be greatly appreciated.