alone-rl
alone-rl copied to clipboard
Make a colour palette of some kind
Having to work with RGB is quite annoying. I think a palette like libtcod's works much better.
A private-constructor class Col
should do the job. In code, I should only use something like Col.red.lightest()
, that finds the right colour in that cell. Colours would all be flyweights of course.
Then at rendering stage awt.Color
is wrapped around the chosen colour.
Also, it's very important to have a separated palette for terrain, creatures and items (eg, subpalettes defined in yml, so that I can check at startup if there's any overlap). It's quite easy to play with colours and end up with invisible creatures. And items can be confused with creatures, which is weird.
http://rgb.to/color/10000/leafy-green