1
0
mirror of https://github.com/krislamo/Trololo synced 2024-09-19 20:20:36 +00:00
Trololo/main.cpp
Kris Lamoureux 58c3b4e4f2 Function MainMenu_survey() fixed logically
Debugging showed that MainMenu_survey() in the core.cpp file under scrns had issues.

They are fixed and can be verified by uncommenting lines with //debugline at the end. Rendering for the MainMenu is not yet implemented.
2013-01-11 11:40:49 -08:00

34 lines
551 B
C++

#include "main.h"
using namespace std;
int main(int argc, char* args[])
{
SDL_Surface *screen;
// Display main menu
screen = scrns::MainMenu();
// Main menu option return
int menu_option;
menu_option = scrns::MainMenu_survey();
switch(menu_option)
{
case 1:
// User wants to start a new game
cout << "Starting new game..." << endl;
break;
case 2:
// User wants to exit the game
break;
default:
cout << "Fatal Error: Main Menu option given was unknown." << endl;
}
SDL_FreeSurface(screen);
return 0;
}