Items colors (palettes for levels)
We should be able to set a color palette for items, for each level.
Still not sure what the best approach is, for this.
Possibly a ColorPalette
Resource
and an editor plugin to facilitate its creation and edition.
This looks promising : https://github.com/EricEzaM/godot-color-palette
- Recover color from a single pixel image at
sprites/items/<concept>_color.png
- Create a dynamic Resource
ItemPalette
that reads such color pixels and uses them as default. - Allow levels to set their own
ItemPalette
.
Phase 1. can be done (and be useful) by its own. Good start, for incremental.