Jump to content
  • Advertisement
Sign in to follow this  
Kheyas

C++ Font Colors

This topic is 2472 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

Hey guys!
I am making a text-based game and i don't know how to change the color of some pieces of text. Let's say I want my Champion named to be showed in Blue. How do i modify the code below to make it print the name blue? (I would like the code to be rather simple....)

printf("Champion: ");
printf("%s", name);

Share this post


Link to post
Share on other sites
Advertisement
I was searching for a tutorial i once used for win32 console programming, [s]but I cannot find that now[/s].
It was here: http://www.adrianxw..../Consoles1.html

... But it seems to be down now sad.png . Then it's "Wayback machine" to the rescue:
http://web.archive.o.../Consoles1.html

It's the best tutorial/sample page for win32 console manipulations on the web that I know of. smile.png

Also, check out http://lazyfoo.net/S...son01/index.php as well, for some inspiration on setting up C++ console projects and C++ projects in general. It covers more platforms and environments, so if you're new to setting up projects in a specific environment/platform it's a good reference.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!