Skip to main content
GameDev.net gamedev.net
🔒 Locked

colors in C++;

Started by flip5577 Oct 22, 2001 at 7:38 PM 3 replies 350+ views
Original Post
flip5577
flip5577
I want to make a lil game in C++; basically a rocket races against another rocket and you have to piolot one of them, the thing is, i want to make it in color and text. for example (how do i cout text in different colors?) Larry Charles CEO Centra Entertainment Studios
Larry CharlesCentra Entertainment Studios
BakaShinji
BakaShinji
For DOS you can use conio.h
SetTextColor(GREEN) I think it was will change the color to green...
SetBGColor() I think changes the back color
Be sure to use cprintf() instead of cout though
Sorry if any info''s wrong, I haven''t used conio.h in a while
BakaShinji
BakaShinji
Oh ya that''s right I forgot. Sorry.
Borland and I *think* DJGPP have support for SetTextColor. VC++ has a limited version of conio.h

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.