1
0
mirror of https://github.com/krislamo/Trololo synced 2024-09-19 20:20:36 +00:00
Trololo/main.cpp

34 lines
551 B
C++
Raw Normal View History

#include "main.h"
2012-10-24 11:46:45 +00:00
using namespace std;
2012-10-24 11:46:45 +00:00
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;
2012-10-24 11:46:45 +00:00
}
SDL_FreeSurface(screen);
return 0;
2012-10-24 11:46:45 +00:00
}