Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Text-Based-game/Gustes code/main.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28 lines (24 sloc)
1.48 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
string input; | |
cout << "It was 1875, New Mexico Territory. A man named Brant were 4 miles away of his ranch taking care of his family horses when a big explosion happened in the city.\n" <<endl; | |
cout << "He quickly went back and saw everybody screaming, houses burning and some strange creatures shooting everything around.\n" <<endl; | |
cout << "The first thing he did was start looking for his family. After 5 minutes of searching he found out that his wife and 2 of his children were dead.\n " <<endl; | |
cout << "He wanted to take revenge and when he got outside he saw that there was nothing left - no strange creatures anymore, no cowboys just him.\n" << endl; | |
cout << "Brant was devastated. The only thing that was left, was sadness and hatred for these monsters.\n " << endl; | |
cout << "Type follow to begin the journey.\n" << endl; | |
cin >> input; | |
string Yes = "follow"; | |
if (input == Yes) // If input is 'follow' then the story will continue | |
{ | |
cout << "He picked himself up and vowed to the heavens that he shall not stop until every last one of those aliens is dead.\n" << endl; | |
cout << "After scavenging the remains of his city he got ready to follow the monsters trail.\n" << endl; | |
cout << "After traveling long and hard the trail led him to Area 51.\n" << endl; | |
} | |
else | |
{ | |
cout << "You had one job... Start again...\n " << endl; | |
} | |
} |