Germanunkol / trAInsported

Löve2D Game
http://germanunkol.de/trainsported/
Other
161 stars 40 forks source link

Rendering of trains - use colors with contrast #105

Open hajo4 opened 10 years ago

hajo4 commented 10 years ago

Currently, each train is assigned a color according to its position in the list of AIs. So, in theory, an AI could be recognized by its color. But in practice, this is hard to do. Also, trains can have very similar colors in matches, making it hard to see which train is which AI.

I suggest to use just a short list of colors for the trains of a match, e.g. red/yellow/green/blue.

Also, use these colors for the names of the AIs in the result-messages after the match.

Germanunkol commented 10 years ago

Actually, the trains use colors according to a random value, which uses the AI's name as the seed value. So in each match an AI should always have the same (random) color.

I agree that the colors are too similar sometimes. However, a list of colors might make this even worse - then every now and then, two AIs wouldn't just have similar colors, they'd have the exact same colors.

I'm open for suggestions, but at the moment I think these slightly different colors are better than risking to have exactly the same colors...

hajo4 commented 10 years ago

I meant, the first AI in the match gets red, 2nd gets yellow, 3rd gets green, 4th gets blue. Really simple...