Changes in AboutColors
Revision Differences of Revision 3
## Colors ¶¶
### Introduction ¶
¶
This document describes the principle of player colors. ¶
¶
¶
### What are player colors (playercolor)? ¶
¶
Imagine a game with 3 players. Each player has it's unique color (like blue, red and green). It would be terribly difficult if the units would look all the same. Imagine a fight between two soldiers; one soldier is owned by the green player, one by the red, but both soldiers look the same. So each unit (and building)
¶
Now, it would be very hard to draw each unit with each player color; therefore Widelands takes a different approach: each unit is drawn (usually in Blender) using
¶
### So how does it work? ¶
¶
This depends on what you want to do: an animation/pic with its own config file or one without. ¶
Examples for animations and graphics with config-file are workers, bobs, critters, buildings.... ¶
Examples for animations without config-file are flags, frontiers... ¶
For animations/pics without a config file the
Otherwise you have to look at the conf file for the animation/pic (or create one based on a similar file from another animation/pic). Find the valid section(s) (like ~np~[idle],[walk]~/np~ and so on). There you'll find (or have to add) the following command
¶
pl
¶
plrclr0\_g=233 ¶
¶
plrclr0\_b=99 ¶
¶
plrclr1\_r=123 # Sec
¶
plrclr1\_g
¶
plrclr1\_b=99 ¶
¶
plrclr2\_r=123 # Ligh
¶
¶
plrclr2\_b=99 ¶
¶
plrclr3\_r=123 # Lig
¶
plrclr3\_g=233 ¶
¶
plrclr3\_b=99 ¶
¶
¶
Ju
¶
I
¶