// scrolling puzzle shooter.cpp // alpha v.0.001 // coded by Ozric Hayter #include "stdafx.h" #include "iostream" #include "stdlib.h" using namespace std; void show_menu(); void show_game(); void show_options(); void show_credits(); int _tmain(int argc, _TCHAR* argv[]) { show_menu(); return 0; } void show_menu() { int choice; cout << endl << endl << "\t- - - - - - - - - - - - - - - - - - - - - - - - - -" << endl << endl << "\t Welcome to Scrolling Puzzle Shooter alpha v0.001" << endl << endl << "\t- - - - - - - - - - - - - - - - - - - - - - - - - -" << endl << endl << "\tChoose a number then press return to select from the menu\n\n" << "\t1: Start Game\n" << "\t2: Options\n" << "\t3: Credits\n\n" << "\tChoice: "; do { cin >> choice; }while ( (choice != 1) && (choice != 2) && (choice != 3) ); switch(choice) { case 1: system("CLS"); show_game(); break; case 2: system("CLS"); show_options(); break; case 3: system("CLS"); show_credits(); break; default: break; } } void show_game() { char user_press; cout << "\n\tGame would now begin\n\n" << "Press M then return to go back to main menu"; do { cin >> user_press; }while ((user_press != 'm') && (user_press != 'M') ); show_menu(); } void show_options() { cout << "\n\tOptions would be here\n\n"; } void show_credits() { cout << "\n\tCredits would be here\n\n"; }