Skip to content

Palette Limitations

Andi Emma Davies edited this page Jan 5, 2021 · 1 revision

The information documented here is that which was found as a result of issue #1. It was necessary before any other major work on this project took place to determine what technical limitations would have to be imposed on any new graphics, so that our lead artist could make a start on the new Pokémon battle sprites.

GitHub issue

Issue #1Determine what palette limitations will be for new Pokémon sprites

Findings

Modern Vintage Gamer YouTube video

This MVG video confirms what I, Andi, believed to be the case regarding colour palettes for the background and sprite layers, whereby the following limitations exist:

  • Up to 8 four-colour palettes can be attributed to background tiles.
  • Up to 8 four-colour palettes can be attributed to sprite tiles (although in practice this is more like 3 colours, as at least one "colour" is always used to indicate transparent pixels).
  • Each background tile can use one of its 8 four-colour palettes.
  • Each sprite tile can use one of its 8 four-colour palettes.

image

image

image

Wikipedia

According to this Wikipedia article, the colour space available for the palettes includes a total of 32,768 colours (15-bit RGB, i.e. 5 bits per colour). Of these colours, up to 56 can be displayed on screen at any one time using standard display methods, but colours like black and white are often used in multiple palettes, due to many tiles needing them, so the total number of colours displayed at any one time (without clever coding trickery) is often less than 56 due to the repeated colours. These findings tally with MVG’s video above.

Pan Docs

All this is also corroborated by this specification document: https://bgb.bircd.org/pandocs.htm#lcdcolorpalettescgbonly

Graphics layer investigation

I was pretty sure already that this was the case, but I’ve now confirmed through an emulator by disabling each layer in turn, that all battle graphics other than attack and item animations (which are done using sprites) are displayed as background graphics, which makes life much simpler.

Screenshot

References

The following sources were used to obtain this information: