AI colors

For all the help you need with Armagetron!
Post Reply
Stormcrow
On Lightcycle Grid
Posts: 31
Joined: Thu Oct 26, 2006 9:02 pm
Location: Greenlawn, NY
Contact:

AI colors

Post by Stormcrow »

Is there any way to configure AIs with specific colors?
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

No.
ˌɑrməˈɡɛˌtrɑn
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Well, the colors are defined in src/tron/gAiBase.cpp around line 1035:

Code: Select all

static REAL rgb_ai[MAXAI_COLOR][3]={
                                       {1,.2,.2},
                                       {.2,1,.2},
                                       {.2,.2,1},
                                       {1,1,.2},
                                       {1,.2,1},
                                       {.2,1,1},
                                       {1,.6,.2},
                                       {1,.2,.6},
                                       {.6,.2,1},
                                       {.2,.6,1},
                                       {1,1,1},
                                       {.2,.2,.2},
                                       {.5,.5,.5}
                                   };
The values are in RGB form, ranging from 0 to 1
There's no place like ::1
Stormcrow
On Lightcycle Grid
Posts: 31
Joined: Thu Oct 26, 2006 9:02 pm
Location: Greenlawn, NY
Contact:

Post by Stormcrow »

Thanks for the responses.
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6715
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

By default doesn't the first ai have the inverse of your color?
Image
User avatar
Z-Man
God & Project Admin
Posts: 11770
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Sort of. It tries not to pick a color from the list that is as far from the other colors out there as possilbe.
Post Reply