maxim-zhao / bmp2tile

Converts images to Master System data formats
MIT License
44 stars 3 forks source link

swap the palettes in image #18

Open sverx opened 4 years ago

sverx commented 4 years ago

as the 'use sprite palette' checkbox is useless with images that use both palettes, why don't make it work as a 'palette swap' option so that it will map first palette to sprites on hardware (instead of standard second palette)? Probably it's just a change from ORing the use sprite palette bit to XORing it...

maxim-zhao commented 4 years ago

Hardware can't use the first palette for sprites... am I misunderstanding?

sverx commented 4 years ago

I really have to learn how to explain things correctly... What I meant is: the dual-paletted image we want to convert might be mainly using the sprite palette, and that would be the first 16 colors of the image, and just some colors from the background palette, and those would be the few colors after the first 16 in the image's palette. The checkbox would make it possible to mark the first palette as the sprite's one in the tilemap - of course one has to load the palette data properly but that's trivial.