Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
using namespace std;
#include "mo_ncurses.h"
#include <ncurses.h>
#include <iostream>
#include <menu.h>
#include <string>
#include "scene1.h"
#include "endScen.h"
#include "scenarios.h"
//#include "save.cpp"
//compile command = g++ main.cpp mo_ncurses.cpp scene1.cpp endScen.cpp scenarios.cpp -lncurses -lsqlite3
//install ncurses = sudo apt-get install libncurses5-dev libncursesw5-dev
//install sqlite3 = sudo apt-get install sqlite3 libsqlite3-dev
int main()
//All functions congregate here for the final game!
{
cout << string( 20, '\n' );
cout << "\n" << "Write in 'menu' to continue on with the game" << "\n";
cout << string( 20, '\n' );
bool fakeloop = true;
bool fakeloop2 = true;
while(fakeloop)
{
string input;
cin >> input;
if (input == "menu" || input == "Menu" || input == "m")
{
gamemenu menu1;
menu1.mainmenu();
fakeloop = false;
}
else
{
cout << "\n";
cout << "Writing 'menu' can't be that hard?" << "\n" << endl;
}
}
firstscene();
cout << string(10, '\n');
cout << "The 2nd Chapter" << endl;
cout << "\n";
scenarios midscene1;
midscene1.start_scenarios();
cout << string(1, '\n');
cout << "\n" << "Now that you've cleared the 2nd Chapter.Would you like to access the menu again? Yes or No" << "\n";
cout << string(1, '\n');
while(fakeloop2)
{
string input;
cin >> input;
if (input == "yes" || input == "Yes" || input == "YES" || input == "Y" || input == "yeah" || input == "Yeah" || input == "y")
{
gamemenu menu2;
menu2.mainmenu();
fakeloop2 = false;
}
if (input == "no" || input == "No" || input == "NO" || input == "N" || input == "nah" || input == "Nah" || input == "n")
{
cout << "\n";
cout << "No? oh well, see ya" << "\n" << endl;
fakeloop2 = false;
}
else
{
cout << "\n";
cout << "It's a yes or no question buddy, stop testing my code" << "\n" << endl;
}
}
cout << string(10, '\n');
cout << "Final Chapter" << endl;
cout << "\n";
Play_scene();
cout << "\n";
return 0;
}