haroldo-ok / choice4genesis

A ChoiceScript clone that generates SGDK-compatible C source for the Sega Genesis
https://haroldo-ok.itch.io/choice4genesis
MIT License
20 stars 2 forks source link

Where to modify background/font palette? #125

Open ti-r2 opened 5 months ago

ti-r2 commented 5 months ago

I noticed the font PNG has 5 indexed colors, of multiple shades of gray, and if I try to use multiple shades in the letters they do show up after compiling. However, when I change the palette in the font file, it still reverts to shades of gray. Is there a way to set the font palette so I could use multiple colors on my font file? Similarly, where in code is the background color of the text box set, and is there a way to easily change it?

haroldo-ok commented 5 months ago

The problem is that the font and the cursor share the same palette; whichever of the two that's called last, will be the one used. You could try to move the font declaration to happen after the cursor declaration