Sign in to follow this  
gordon7up

C++ text adventure tutorials?

Recommended Posts

gordon7up    127
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
dan1088352    100
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
Rob Loach    1504
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   
Guest Anonymous Poster

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

Share this post


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this