Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

flip5577

colors in C++;

This topic is 6142 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!