Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a colour palette of some kind #23

Open
fabio-t opened this issue Nov 12, 2017 · 2 comments
Open

Make a colour palette of some kind #23

fabio-t opened this issue Nov 12, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@fabio-t
Copy link
Owner

fabio-t commented Nov 12, 2017

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.

@fabio-t fabio-t added this to the 0.3.0 milestone Nov 12, 2017
@fabio-t fabio-t self-assigned this Nov 12, 2017
@fabio-t fabio-t added this to TODO in AloneRL v0.9.0 via automation Nov 12, 2017
@fabio-t
Copy link
Owner Author

fabio-t commented Nov 12, 2017

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.

@fabio-t
Copy link
Owner Author

fabio-t commented Nov 14, 2017

fabio-t added a commit that referenced this issue Nov 27, 2017
@fabio-t fabio-t modified the milestones: 0.3.0, 0.9.0 Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant