C++ - SDL & Modifying text and colors
Hi there!
Im currently working with a little project, a text-based RPG. Im still repeating basics (since I want to remember it when I pass on to more complicated stuff). I got the advice to start using SDL for simple graphcis but didnt get it to work properly on my current computer*
So I am creating this in that dos-alike window (don't know the name for it, since dos disappeared with win98 i assume it is not a dos-window).
Though, I would like to change the color of the grey text. E.g when the character talks I would like it to display white text, and when a NPC talks I´d like it to display another one, while the story goes in grey and the battles in another.
Is it possible or do I have to use any add-ons like SDL?
I also wonder if there is someway to slow the whole thing down. After the first phrase, I would like the game to wait a few seconds before it starts printing the next.
So any advice welcome.
*I used Lazy Foo's guide and installed SDL. Afterwards I did chapter 2 in the tutorial, the Hello World, program. Though, only a black screen was displayed. I made sure that all the images were in the right directory. I also tried using the files that were downloadable but they didn´t work either. Anyone who knows what could be the problem?
Quote:Original post by MrSpiceGirl
*I used Lazy Foo's guide and installed SDL. Afterwards I did chapter 2 in the tutorial, the Hello World, program. Though, only a black screen was displayed. I made sure that all the images were in the right directory. I also tried using the files that were downloadable but they didn´t work either. Anyone who knows what could be the problem?
Try compiling the source provided in the zip, make sure the images from the zip are in the same directory as the exe and run the exe by double clicking it. Sometimes files won't load if it's run from the IDE.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement