Repository navigation
Expand file tree
/
Copy pathmenu.cpp
More file actions
67 lines (59 loc) · 1.75 KB
/
Copy pathmenu.cpp
File metadata and controls
67 lines (59 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include <iostream>
#include <string>
using namespace std;
int main()
{
string title = "RESTER";
string newGame = "New Game";
string loadGame = "Load Game";
string exitGame = "Exit Game";
string onlinePVP = "Online PVP";
string systemSpecs = "System Specs";
string testNetCode = "Test Net Code";
// ASCII art logo
cout << " _______ _____ " << endl;
cout << " /_ __/ | / / | " << endl;
cout << " / / |/ / /| | " << endl;
cout << " / / |_/ ___ | " << endl;
cout << "/_/ /_/ |_| " << endl << endl;
// Title
cout << "Welcome to " << title << "!" << endl << endl;
// Menu options
cout << "Please select an option:" << endl;
cout << "1. " << newGame << endl;
cout << "2. " << loadGame << endl;
cout << "3. " << exitGame << endl;
cout << "4. " << onlinePVP << endl;
cout << "5. " << systemSpecs << endl;
cout << "6. " << testNetCode << endl;
// User input
int option;
cout << endl << "Enter option number: ";
cin >> option;
// Option selection
switch (option)
{
case 1:
cout << "Starting a new game..." << endl;
break;
case 2:
cout << "Loading a saved game..." << endl;
break;
case 3:
cout << "Exiting the game..." << endl;
break;
case 4:
cout << "Connecting to online PVP..." << endl;
break;
case 5:
cout << "Displaying system specifications..." << endl;
break;
case 6:
cout << "Testing network code..." << endl;
break;
default:
cout << "Invalid option selected. Please try again." << endl;
break;
}
return 0;
}