TEXT ADVENTURE Competition

Hello! This discussion is about text adventure games you can submit a text adventure game and see if you win, If you win then you get the pride and bragging rights of winning. Here is mine see what you guys think...

**Note : They do not have to be to complicated, also funny ones are welcome.



#include <iostream>
#include <windows.h>
using namespace std;

int main()
{
char myAnswer;
cout <<"Hello and Welcome to Holy Moon Base!" << endl;
Sleep (1700);
cout <<"You are standing on the edge of Holy Moon Base in space." << endl;
Sleep (1700);
cout <<"You have received word that there was an explosion"<< endl;
Sleep (1000);
cout <<"and some people went missing..." << endl;
Sleep (3000);
cout << " "<<endl;
cout <<"Behind you is the airlock, in front of you is a rover..." << endl;
Sleep (1700);
cout << "Do you get on the rover, or go in the airlock?" << endl;
Sleep (1700);
cout <<"1 - rover" << endl;
cout <<"2 - airlock" << endl;
cout<<" "<<endl;
cin >> myAnswer;
cout<<" "<<endl;


if (myAnswer == '1')
{
cout <<"choice 1 - You get on the rover but then you realize,"<<endl;
Sleep (1700);
cout <<"you don't know how to drive a rover and you drive off a cliff. YOU DIE"<<endl;
}
else if (myAnswer == '2')
{
cout <<"choice 2 - You go into the airlock..."<<endl;
Sleep (1700);
cout <<"there is a flare gun next to some suits, do you 1 pick it up or 2 leave it?" << endl;
Sleep (1700);
cout <<" "<<endl;
cin >> myAnswer;
cout <<" "<<endl;

if (myAnswer == '1'){
cout <<"choice 1 - You pick up the flare gun, and as you continue into the main base yousee..."<< endl;
Sleep (2000);
cout <<"streaks of blood all over the walls."<<endl;
Sleep (2000);
cout <<"As you move through the corridor you hear a scratching sound..."<<endl;
Sleep (2000);
cout <<"and as you turn the corner you see something that looks like it once was human."<< endl;
Sleep (2000);
cout<< " "<<endl;
cout <<"Do you 1 fire the flare gun or 2 run?"<<endl;
Sleep (2000);
cin >> myAnswer;

if (myAnswer == '2'){
cout <<"You run away and reach a hangar, just as you close the door more of those things bang into it."<<endl;
Sleep (1800);
cout <<"You hop into a shuttle and start to power it up,"<<endl;
Sleep (1800);
cout <<"but then you see 2 people running towards you,"<<endl;
Sleep (1800);
cout <<"they appear to be carrying a person.. do you 1 take off or 2 let them on?"<<endl;
cin >>myAnswer;
cout <<" "<<endl;

if (myAnswer == '1'){
cout <<"You take off but one of the people throws an explosive at you and you blow up."<<endl;
cout <<"YOU DIE"<<endl;
}

else if (myAnswer == '2'){
cout <<"You let them on and you blast out of that nightmare together, to live another"<<endl;
cout <<"day.YOU WIN"<<endl;
}
}

else if (myAnswer == '1'){
cout <<"You fire the flare gun at the creature, it bursts into flames and dies..."<<endl;
Sleep (1700);
cout <<"Do you 1 continue down the hall or 2 head towards the hangar"<<endl;
cout <<" "<<endl;
cin >> myAnswer;

if (myAnswer == '1'){
Sleep (1000);
cout <<"You continue down the hall but only to find more of those creatures, and YOU DIE."<<endl;
}

else if (myAnswer == '2'){
cout <<"You head down the hall towards the hangar and you see a group of"<<endl;
cout <<"4 people waiting at a shuttle, you head over and they say they need a power conductor"<<endl;
cout <<"to fix the shuttle, luckily you have one in your utility belt since you are an engineer.You fly away and live. YOU WIN"<<endl;
}

}


else if (myAnswer == '2'){
cout <<"choice 2 - You do not pick up the flare gun, not very smart, since you don't know what you are up against, something crashes through the door and kills you. YOU DIE"<<endl;
Sleep (1700);

}
}
else
{
cout << "sorry, invalid choice"<<endl;
}
}

return 0;
}
Topic archived. No new replies allowed.