#include "library.h"
using namespace std;
void main()
{
cout << "\n\nWelcome to Dark Blade!\n";
cout << "programmed by Louis Gonzalez\n\n";
cout << "An Evil Demon Creature Known As The Wraith Lord Has Taken Control Of The\nWorld. He Controls A Vast Army Of Evil Creatures Who Kill People For Fun. You Must Rise\nAgainst The Wraith Lord And Kill All His Minions.\n\n";
Wait();
Crossroads();
cout << "\n\nThank You For Playing Dark Blade! Please Play Again Soon.\n\n";
}
#include "library.h"
bool glcomplete = false;
bool fcomplete = false;
bool scomplete = false;
bool gcomplete = false;
bool ccomplete = false;
bool Crossroads()
{
int choice = 0;
while (choice != 10)
{
cout << "You Stand At The Center Of Several Roads Going Off In Many Dirrections.\n";
cout << "There Is A Small Town Behind You Full Of Shops And People.\n\n";
cout << "Which Path Do You Choose?\n";
cout << "1: Town\n";
cout << "2: Summoning Portal\n";
if (!glcomplete)
cout << "3: Grasslands Road (Quest)\n";
if (glcomplete && !fcomplete)
cout << "4: Forest Road (Quest)\n";
if (fcomplete && !scomplete)
cout << "5: Swamp Road (Quest)\n";
if (scomplete && !gcomplete)
cout << "6: Graveyard Road (Quest)\n";
if (gcomplete && !ccomplete)
cout << "7: Castle Road (Quest)\n";
cout << "10: Exit Game\n";
cout << ">";
cin >> choice;
switch (choice)
{
case 1:
{
Town();
break;
}
case 2:
{
//summoportal();
break;
}
case 3:
{
//Grasslands();
break;
}
case 4:
{
//if (glcomplete && !fcomplete)
//Forest();
break;
}
case 5:
{
//if (fcomplete && !scomplete)
//Swamp();
break;
}
case 6:
{
//if (scomplete && !gcomplete)
//Graveyard();
break;
}
case 7:
{
//if (gcomplete && !ccomplete)
//Castle();
break;
}
}
}
return true;
}
#include "library.h"
bool Town()
{
int choice = 0;
while (choice != -1)
{
cout << "You are Walking Into A Town.\n";
cout << "All Around You There Are People Going About Their Daily Lives.\n";
cout << "To Your Left You Spot An Inn And To Your Right You Spot The Armory And An Item Shop\n\n";
Wait();
cout << endl;
cout << "what would you like to do?\n";
cout << "1: Enter INN\n";
cout << "2: Enter Armory\n";
cout << "3: Enter Item Shop\n";
cout << "4: Check Stats\n";
cout << "5: Leave Town\n";
cout << ">";
cin >> choice;
switch (choice)
{case 1:
{
//Inn();
break;
}
case 2:
{
//Armory();
break;
}
case 3:
{
//itemshop();
break;
}
case 4:
{
//stats();
break;
}
}
}
return true;
}
#include "library.h"
bool Battle()
{
return true;
}
#include "library.h"
void Wait()
{
cout << "Press Enter to continue\n";
cin.ignore(1);
}
That is my code and it says error LNK2001 while I build it
help me