Skip to content
Permalink
Browse files
Update Game Start
  • Loading branch information
marti233 committed Feb 25, 2019
1 parent ce76158 commit 1bde1db85a15d4969010c3178e4dbb43a9d7599a
Showing 1 changed file with 37 additions and 2 deletions.
@@ -56,7 +56,42 @@ retry:
system("cls");
switch (choiceOne_Path)
{
case 1: std::cout << "" << std::endl;

case 1: std::cout << "" << std::endl;

case 2: std::cout << "\n!!!----------------------Chapter Two: Surviving after the Attack----------------------!!!" << std::endl;
std::cout << "Chief: We need to build a tent to stay the night and collect some food..hmm..fruits is a good idea" << std::endl;
std::cout << "\nYou: Which one you want me to do?" << std::endl;
std::cout << "Chief: Choose, do what you prefer, I'll do the other one" << std::endl;

}
int choiceTwo2_Path;
std::cout << "#Which task are you going to do?" << std::endl;
std::cout << "\t >> Enter '1' to collect food" << std::endl;
std::cout << "\t >> Enter '2' to make a tent" << std::endl;
retry:
std::cout << "\nEnter your choice ";
std::cin >> choiceTwo2_Path;
if (choiceOne_Path == 1)
{
std::cout << "You:I will take some food" << std::endl;
std::cout << "\nChief:That's fine, I'll make the tent" << std::endl;
system("PAUSE");
return 0;
}
else if (choiceTwo2_Path == 2)
{
std::cout << "You:I'll do the tent, I believe I'm better doing it rather than pick up food" << std::endl;
std::cout << "\nChief:That's fine, see you in a couple of minutes then" << std::endl;
system("PAUSE");
return 0;
}
else
{
std::cout << "You're doing it wrong hero! Press either '1' or '2', that's all!" << std::endl;
goto retry;
}
}
}


//link to the website i was using as a basis https://levelskip.com/classic/Make-a-Text-Based-Game

0 comments on commit 1bde1db

Please sign in to comment.