mirror of
https://github.com/krislamo/Trololo
synced 2024-09-19 20:20:36 +00:00
Kris Lamoureux
58c3b4e4f2
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.
34 lines
551 B
C++
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;
|
|
}
|