Jump to content
  • Advertisement
Sign in to follow this  
gordon7up

C++ text adventure tutorials?

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

hi, Im im a noob to C++, been reading up on the basics of C & C++ and would now like to attempt a very basic text adv, if anyone knows any tuts on this or would like to give me some source code to pick through I would really appreciate it. Thanks, Gordon

Share this post


Link to post
Share on other sites
Advertisement
The only tutorial I've seen that doesn't involve some text-adventure-creator tool is this one. It's in Java, but it shouldn't be too hard to port to C++.

-RC

Share this post


Link to post
Share on other sites
assuming you finished the book you should be able to make one your self, that is the fun part, why did you learn c++. but if you didnt finish the book, finish it.

Share this post


Link to post
Share on other sites
gametutorials.com has a 3 part text adventure tutorial that could help. also check gamedev's book section for some help.

Share this post


Link to post
Share on other sites
I'd recommend making it completely on your own. The only way you'll truly learn is by trial and error. Write some code, run it, write some more code, run it. You'll soon have a nice little game. I'd also recommend making up a quick tic tac toe game in C++. Do it your way, not the way a tutorial teaches you. Also, get a nice and simple C++ book to help you out.

Here's something to start you off:


#include <iostream.h>

int main(){
cout << "Welcome to gordon7up's game of super-death.";

// More code here

return 0;
}



You can go anywhere from that! Good luck!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

void TextGame() {
printf("Text games suck.\n");
return;
}

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
WELLL, if you're going to do it in C++, ignore Rob completely. That just enforces bad practices (no arguments to main, using depreciated (sp) include file, and NO ERROR CATCHING!)

Figure out how to fix that and you're on your way [smile].

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!