Any suggestions for mt text based game

I just started this and I want to know if anyone has any suggestions for it. Hopefully your suggestions can help me make the game.

here is all the code:

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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#include <iostream>
#include <string>
using namespace std;

int main()
{
    int newgame;
    cout << "\t\t-_-[ Kinkdoms of the Dwarf Lords ]-_-\n" << endl;

    cout << "                   ___I___ " << endl;
    cout << "                  /=  |   )\ " << endl;
    cout << "                 /.__-| __ )\ " << endl;
    cout << "                 |/ _\_/_ \| " << endl;
    cout << "                 (( __ \__)) " << endl;
    cout << "              __ ((()))))()) " << endl;
    cout << "            ,'  |()))))(((()|# `. " << endl;
    cout << "           /    |^))()))))(^|   =\ " << endl;
    cout << "          /    /^v^(())()()v^\'  .\ " << endl;
    cout << "          |__.'^v^v^))))))^v^v`.__| " << endl;
    cout << "          /_ ' \______(()_____(   | " << endl;
    cout << "     _..-'   _//_____[xxx]_____\.-| " << endl;
    cout << "    /,_#\.=-' /v^v^v^v^v^v^v^v^| _| " << endl;
    cout << "    \)|)      v^v^v^v^v^v^v^v^v| _|   " << endl;
    cout << "     ||       :v^v^v^v^v^v`.-' |#  \, " << endl;
    cout << "     ||       v^v^v^v`_/\__,--.|\_=_/ " << endl;
    cout << "     ><       :v^v____|  \_____|_ " << endl;
    cout << "  ,  ||       v^      /  \       / " << endl;
    cout << " //\_||_)\    `/_..-._\   )_...__\ " << endl;
    cout << "||   \/  #|     |_='_(     |  =_(_ " << endl;
    cout << "||  _/\_  |    /     =\    /  '  =\ " << endl;
    cout << " \\/ \/ )/ gnv |=____#|    '=....#| \n\n" << endl;

    cout << " , \-._ >._,_                            _,_.< _.-/ " << endl;
    cout << "(   )  \(-='(  YOUR GAME NOW BEGINS!!!    )`--)/  ( " << endl;
    cout << "`\-\_/-')\/'                              `\/(`-\_/-/' ` " << endl;
    cout << "<`)_--(_\_                                  _/_)--_('> " << endl;

    cin >> newgame;
    int op1;
    int population = 10;
    int money = 500;
    int level = 1;
    int farmer = 0;
    int day = 001;
    cout << "commands:" << endl;
    cout << "1 = stats" << endl;
    cout << "2 = supplies" << endl;
    cout << "3 = employment" << endl;
    cout << "4 = army" << endl;
    cout << "5 = next day" << endl;
    bool bExit = false;
do
{
    cout << "-> ";
    cin >> op1;
    switch(op1)
    {
    case 1:
        cout << "day: " << day << endl;
        cout << "level: " << level << endl;
        cout << "Money: " << money << endl;
        cout << "population: " << population << endl;
        break;
    case 2:
        cout << "you have no supplies" << endl;
        break;
    case 3:
        cout << "you have: " << farmer << "farmers employed" << endl;
        cout << "1 = employ farmer" << endl;
        int op2;
        cin >> op2;
        switch(op2)
        {
        case 1:
            cout << "you have employed 1 farmer!!" << endl;
            farmer++;
            break;
        default:
            cout << "Error- That is an Invalid input, only 1 allowed" << endl;
        }
        break;
    case 4:
        cout << "you have no solders in your army" << endl;
        break;
    case 5:
        population++;
        money = money + population * 5;
        static const int required_experience[] =
        {
            25, 40, 60, 80, 100, 120, 140, 160, 180, 200
        };

        while(population == required_experience[level])
            ++level;
        day++;
        cout << "DAY: " << day << endl;
        break;
    default:
        cout << "Error- That is an Invalid input, only 1, 2, 3, or 4 allowed" << endl;
    }
} while (!bExit);


    return 0;
}
Topic archived. No new replies allowed.