Text box questions

I don't have any code yet that pertains to my question. I am writing a text adventure using codeblocks in windows xp, I would like the text box to be resized to full screen, and have the text flow from the bottom and scroll upwards, instead of starting at the top scrolling downwards.

The tutorials I have found so far don't quite get it done. Can anyone suggest a GOOD tutorial, or shove me in the right direction please?

Thanks
Generally, C++ - as far as I know - doesn't allow you to do that by itself. You will have to get check out either system's console(so if you want to make your game Windows-only - you can use Windows' functions), or you can get console emulator - like nCurses(google it :) ).
Actually I would recommend you second option. It's C library, so its functions work like in C(e.g. printing is similar to function prinf() ), however, this should not be a problem.
Also, Curses is a cross-platform library, so if you plan on writing more games that will be cross-platform, you may want to check out that :)
Or you get non-console library(like SDL), and use it so that your GUI will look like CLI, although I would not call it standard way.

PS. I also hope that you practiced writing some games, because text adventure isn't best game to start practicing with - it's a lot more complicated then it sounds like(text-based doesn't mean simple).

Cheers!
Last edited on
I have been playing text adventures since I was a child, I started writing adventure games with Shepards basic on the commodore 64. I have the knowledge to assemble interactive fiction programs, it's the coding knowledge I lack. I chose C++ because it is such a precise language and I think that would best fit the needs for an adventure. Thank you however for the warning. It did not fall on deaf ears.

Hope my post helped. I was just making sure - many beginners start by "writing text-based RPG" since they don't have to do any graphics, and think that therefore it's easy. And most of the time, they realize how wrong they were :)
Topic archived. No new replies allowed.