#include <iostream>
#include <windows.h>
usingnamespace std;
int main()
{
cout << "Goblin Siege" << endl;
system("Pause");
cout << "You live in the town of Aragoth. Aragoth goes under siege \n"
<< "on a daily basis \n";
char rdy = 'b';
while (rdy != 'y' && 'Y')
{
cout << "It you your sole duty to fight off the Goblin hordes, are you ready \n"
<< "for this task? (y/n) \n";
cin >> rdy;
system("CLS"); //Resource heavy, but the only practical way.
if (rdy == 'y' && 'Y')
{
cout << string(4, '\n');
cout << string(4, '\t');
cout << "BEHOLD!";
Sleep(500);
cout << " .";
Sleep(500);
cout << " .";
Sleep(500);
cout << " .";
Sleep(500);
cout << " .";
Sleep(500);
cout << " .";
Sleep(500);
cout << " .";
Sleep(500);
system("CLS");
//////////////////////////////////////////////
int x = 0;
cout << string(4, '\n');
cout << string(1, '\t');
cout << string('x', '\b') << "The Sword of Aragothia.. Forged in the flames of \n"
<< string(1, '\t') << string('x', '\b') << "The Mountain of Orgoth, hewn with the finest metals of the North \n"
<< string(1, '\t') << string('x', '\b') << "by the Orcs of the Crystal of Toramorre";
for (int x = 0; x > 9; x++)
{
Sleep(500);
}
///////////////////////////////////////////////////////
system("Pause");
}
else
{
cout << "Will you not defend your country from the onslaught of \n"
<< "goblins that lay before thee? If thou hast the courage to defend \n"
<< "input the letter 'y', whatever that means.";
}
}
return 0;
}
I'm trying to make the text move to the left at half a second intervals just for dramatic effect.