How can you implement multiple color pallets?

Général

NeoTechni

il y a 6 ans

ie: Draw an indexed-color picture in RGB mode, but select which color pallet to use rather than use the 1.

That way you could draw pallet-swapped enemies using a single image.

eriban

NEW il y a 6 ans

I recently had the same question myself, and received a question in the Images discussion. You can change the palette before drawing using gb.display.colorIndex

In my own game I am now useng it for drawing the player and enemies using the same image: Movers.cpp#L224

This uses custom palettes which I defined here: Palettes.cpp

NeoTechni

il y a 6 ans

That's actually an easy solution, thank you.

Aurélien Rodot

NEW il y a 6 ans

I just opened a ticket about this question >>> https://github.com/Gamebuino/Gamebuino-META/issues/27

NeoTechni

NEW il y a 6 ans

eriban eriban

That's actually an easy solution, thank you.