Optiroc / SuperFamiconv

Flexible and composable tile graphics converter supporting Super Nintendo, Game Boy, Game Boy Color, Game Boy Advance, Mega Drive, PC Engine and WonderSwan formats.
MIT License
143 stars 20 forks source link

Assigning palette index for maps #10

Closed h3xcat closed 5 years ago

h3xcat commented 5 years ago

I wasn't able to figure out, is there a way specify palette index during map generation?

Optiroc commented 5 years ago

@edgarasf123 I’m not quite sure I understand what you want to do. To generate a map a palette is always needed and the indices will correspond to the input palette.

h3xcat commented 5 years ago

Honestly, I forgot the reason I created this issue. It might not have been related to map generation itself, but the palette generation.

My guess is that I might have posted it before I learned that the indexes themselves were saved within images. Before that, I thought your converter generated the palettes, from finding common RGB values, instead of just extracting them from images.

Optiroc commented 5 years ago

It does both actually, with the ‘no-remap` option it uses the palette as is (which requires a palletized/indexed image), else it builds a palette.

Anyway, I’ll close this issue for now. Sorry about leaving issues on the backburner!