OtherCrashOverride / go-play

Retro emulation for the ODROID-GO
https://www.hardkernel.com/shop/odroid-go/
218 stars 72 forks source link

[GB] color palette #12

Open Crushless opened 6 years ago

Crushless commented 6 years ago

It would be nice, to have an option to change the color palette in Game Boy emulation. Just like the Super Game Boy for the SNES did. If this would be too complicated, you could add an option to cycle through a set of predefined color palettes. At least please add a color palette with a light green background, like the original Game Boy.

OtherCrashOverride commented 6 years ago

Someone will need to provide the RGB color values for the palettes.

Crushless commented 6 years ago

Unfortunately, I don't have the exact RGB codes ready, but I found some website that lists all the predefined palettes: https://www.mariowiki.com/Super_Game_Boy#Color_palettes And this website lists all GB Color palettes: https://en.wikipedia.org/wiki/List_of_video_game_console_palettes#Game_Boy_Color

Crushless commented 6 years ago

These are the palette definitions of the open source GBC.emu emulator: https://github.com/Rakashazi/emu-ex-plus-alpha/blob/master/GBC.emu/src/main/Palette.cc

Crushless commented 6 years ago

Referece and background info about the Super Game Boy palettes, with RGB codes: https://gamefaqs.gamespot.com/snes/588731-super-game-boy/faqs/58647

kamotswind commented 6 years ago

OtherCrashOverride provided this link to the current palette: https://github.com/OtherCrashOverride/go-play/blob/master/gnuboy-go/components/gnuboy/lcd.c#L52-L54

and related: https://github.com/OtherCrashOverride/go-play/blob/master/gnuboy-go/components/gnuboy/lcd.c#L694-L734