Then use:
Code:
dcs("Red", 0, 0, FOREGROUND_RED); // Draw "Red" in the color RED. Draw "White" in the color WHITE. If we OR ("|") the colors together, it becomes white.
dcs("White",10, 1, FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
dcs("Blue", 20, 2, FOREGROUND_BLUE); // Draw "Blue" in the color BLUE.
dcs("Red", 0, 4, BACKGROUND_RED); // Draw "Red" with a background of RED. Draw "White" with a background of WHITE.
dcs("White",10, 5, BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE);
dcs("Blue", 20, 6, BACKGROUND_BLUE); // Draw "Blue" with a background of BLUE.
// Draw a Red text color with a green background.
dcs("Color Text!", 0, 8, FOREGROUND_RED | BACKGROUND_GREEN);
// This puts the "Press any key to continue..." on the next line.
dcs("", 0, 9, FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
system("pause");
This places color text anywhere you want it to go, in the int X and int Y area.
You can do it with character placement as well.
Just switch the DCS to DCC, and switch string szText to char szChar. Then manipulate it
Code:
int player_x = 5;
int player_y = 10;
dcc(2, player_x, player_y, FOREGROUND_RED);
that draws a solid smiley face, with the color red at the players location.
Good luck!