by rld » Fri Dec 07, 2012 9:06 am
I think to avoid stepping on the toes of designers like Garth who have spent a lot of time customizing their game palette, I would probably have an optional 'color-remapping' feature, which can be used to define what the base colors are.
If your first 16 palette entries are the 'default' color values (or something close to them), then no problem, otherwise you could set up remappings like:
colormap 0 100
for example, where 0 is the default color (which would normally be black or the background color). In your palette, however, color 100 is black, so this makes the necessary adjustments.
This wouldn't affect tiles, bitmaps, etc. which already have the pixels predefined; just stuff like fonts, lines and other graphics that are drawn on the fly (indicator arrows, flashing selector boxes, things like that). I might adjust any 'system icons' that are used (like the crosshairs or the 'this weapon/armor is selected' arrow) so that if they use the base 16 colors, they can be remapped when loaded. Or alternatively, this could be solved by making the system icons editable like the rest of the tiles.
I think to avoid stepping on the toes of designers like Garth who have spent a lot of time customizing their game palette, I would probably have an optional 'color-remapping' feature, which can be used to define what the base colors are.
If your first 16 palette entries are the 'default' color values (or something close to them), then no problem, otherwise you could set up remappings like:
colormap 0 100
for example, where 0 is the default color (which would normally be black or the background color). In your palette, however, color 100 is black, so this makes the necessary adjustments.
This wouldn't affect tiles, bitmaps, etc. which already have the pixels predefined; just stuff like fonts, lines and other graphics that are drawn on the fly (indicator arrows, flashing selector boxes, things like that). I might adjust any 'system icons' that are used (like the crosshairs or the 'this weapon/armor is selected' arrow) so that if they use the base 16 colors, they can be remapped when loaded. Or alternatively, this could be solved by making the system icons editable like the rest of the tiles.