chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.34k stars 468 forks source link

All SGB palettes copy the first color from Background Palette 7 #895

Open Y0UR-U5ERNAME opened 2 years ago

Y0UR-U5ERNAME commented 2 years ago

Describe the bug The first color of Background Palette 7 is used for all the other SGB palettes when played on a SGB/emulator.

To Reproduce Steps to reproduce the behavior:

  1. Create a new scene that uses the lightest color.
  2. Set the first color of Background Palette 7 to something easily noticeable, such as red.
  3. Run this scene of the game on a SGB/emulator.
  4. See that what should have been the first color of Background Palette 5 is now red.

Expected behavior The SGB palettes should be able to each have their own unique first color.

Screenshots image image

Platform (please complete the following information):

untoxa commented 2 years ago

SGB palettes work differently: https://gbdev.io/pandocs/SGB_Color_Palettes.html#color-0-restriction

Y0UR-U5ERNAME commented 2 years ago

@untoxa The first color should probably be copied from Background Palette 5 instead then.