问题标题: 小李工作室: 逃离实验室(c++)

1
1
已解决
李奕歌
李奕歌
初级天翼
初级天翼
#include"bits/stdc++.h"
#include"windows.h"
using namespace std;
void print(string s){
    cout<<s;
}
void cls(){
    system("cls");
}
void sleep(int n){
    Sleep(n);
}
string name;
int key;
int main(){
//    createConsole("文本游戏");  
    int gj=5,fang=3,xue=20,wu=0;
    print("    **           **         \n");
    print("    **        ********           \n");
    print("    **         ******         \n");
    print("  ******      ** ** **    \n");
    print(" ** ** **    **  **  **       \n");
    print("**  **  **  ** ****** **      \n");
    print("    **   **     ****      \n");
    print(" ** **           **       \n");
    print("  ****         ****       \n");
    print("    小李工作室     ");
    print("荣誉出品");
    sleep(5000);
    cls(); 
    print("游戏即将开始,请确保音量打开,网络连接成功");
    sleep(5000); 
    cls();
    print("精彩回顾\n");
    print("???????    ");
    sleep(4000); 
    cls();
    print("游戏即将开始,请输入你的姓名:\n");
    cin>>name;
    cout<<name<<",";
    print("请输入你的密码(一个六位数):\n");
    cin>>key;
    if(key<100000||key>999999){
        print("?\n你s了");
        return 0; 
    } 
    sleep(1000); 
    cls();
    print("...");
    sleep(500); 
    print("...");
    sleep(500); 
    for(int i;i<=30;i++){
        print("~ ");
        sleep(550);
    }
    cls();
    string name1;
    int key1;
    while(1){
        print("逃离恐怖实验室现在开始,请输入你的账号(名字)和密码,(换行输入)\n");
        cin>>name1;
        getchar();
        cin>>key1;
        if(name1==name&&key1!=key){
            print("密码错误!\n请重新输入一遍");
            cls();
        } 
        else if(name1!=name){
            print("账号错误!!!\n请重新输入一遍");
            cls();
        }
        else{
            print("登录成功!");
            break;
        }
    }
    cls(); 
    cout<<name;
    print("警官,你好!");
    sleep(1000);
    print("\n你现在要调查这个废弃的实验室"); 
    sleep(1000);
    print("\nbest wishes to you");
    sleep(7000);
    cls();
    print("      伏拉夫牌GPS      \n");
    print("                 世界NO.1     \n");
    print(" ---------------------------                    \n");
    print(" |********************     | \n");
    print(" | *    别尔特        *    | \n");
    print(" |  *       实验室    *    |   \n");
    print(" |   *********         *   |   \n");
    print(" |           ***********   |  \n");
    print(" |  你                     |  \n");          
    print(" |                         |   \n");
    print(" |-------------------------|   \n");
    sleep(1000);
    print("看来");
    sleep(500);
    print("一切");
    sleep(500);
    print("正常");
    sleep(5000);
    cls();
    print("      伏拉夫牌GPS      \n");
    print("                 世界NO.1     \n");
    print(" ---------------------------                    \n");
    print(" |********************     | \n");
    print(" | *    别尔特        *    | \n");
    print(" |  *       实验室    *    |   \n");
    print(" |   *********         *   |   \n");
    print(" |           ***********   |  \n");
    print(" |  你        cxk          |  \n");          
    print(" |                         |   \n");
    print(" |-------------------------|   \n");
    print("???");
    sleep(2500);
    cls();
    print("      伏拉夫牌GPS      \n");
    print("                 世界NO.1     \n");
    print(" ---------------------------                    \n");
    print(" |********************     | \n");
    print(" | *    别尔特        *    | \n");
    print(" |  *       实验室    *    |   \n");
    print(" |   *********         *   |   \n");
    print(" |           ***********   |  \n");
    print(" |  你        cxk          |  \n");          
    print(" |                         |   \n");
    print(" |-------------------------|   \n");
    print("cxk:**你太美");
    sleep(2500);
    cls(); 
    print("      伏拉夫牌GPS      \n");
    print("                 世界NO.1     \n");
    print(" ---------------------------                    \n");
    print(" |********************     | \n");
    print(" | *    别尔特        *    | \n");
    print(" |  *       实验室    *    |   \n");
    print(" |   *********         *   |   \n");
    print(" |           ***********   |  \n");
    print(" |  你        cxk          |  \n");          
    print(" |                         |   \n");
    print(" |-------------------------|   \n");
    print("你:艹\n");
    sleep(2500);

    print("1.淦就完了 2.自杀 3.逃跑\n");
    int fafa;
    cin>>fafa;
    if(fafa==1){
        cls();
        print("      伏拉夫牌GPS      \n");
        print("                 世界NO.1     \n");
        print(" ---------------------------                    \n");
        print(" |********************     | \n");
        print(" | *    别尔特        *    | \n");
        print(" |  *       实验室    *    |   \n");
        print(" |   *********         *   |   \n");
        print(" |           ***********   |  \n");
        print(" |  你        cxk          |  \n");          
        print(" |                         |   \n");
        print(" |-------------------------|   \n");
        print("你:淦就完了!!!奥利给!!!");
        sleep(2500);
        cls();
        print("      伏拉夫牌GPS      \n");
        print("                 世界NO.1     \n");
        print(" ---------------------------                    \n");
        print(" |********************     | \n");
        print(" | *    别尔特        *    | \n");
        print(" |  *       实验室    *    |   \n");
        print(" |   *********         *   |   \n");
        print(" |           ***********   |  \n");
        print(" |  你   ###**你光波###cxk |  \n");          
        print(" |                         |   \n");
        print(" |-------------------------|   \n");
        print(" 你:???");
        sleep(2500); 
        cls();
        print("      伏拉夫牌GPS      \n");
        print("                 世界NO.1     \n");
        print(" ---------------------------                    \n");
        print(" |********************     | \n");
        print(" | *    别尔特        *    | \n");
        print(" |  *       实验室    *    |   \n");
        print(" |   *********         *   |   \n");
        print(" |           ***********   |  \n");
        print(" |  你###**你光波###   cxk |  \n");          
        print(" |                         |   \n");
        print(" |-------------------------|   \n");
        print("                                ");  
        sleep(1000);
        cls();
        print("      伏拉夫牌GPS      \n");
        print("                 世界NO.1     \n");
        print(" ---------------------------                    \n");
        print(" |********************     | \n");
        print(" | *    别尔特        *    | \n");
        print(" |  *       实验室    *    |   \n");
        print(" |   *********         *   |   \n");
        print(" |   ^       ***********   |  \n");
        print(" |  ###**你光波###     cxk |  \n");          
        print(" |   **                    |   \n");
        print(" |-------------------------|   \n");
        print("      k         o                          ");
        sleep(5000);
        print("** 2星\n**因:**你光波\nwewewewewewewewe");    
    } 
    if(fafa==2){
        sleep(2500);
        cls(); 
        print("      伏拉夫牌GPS      \n");
        print("                 世界NO.1     \n");
        print(" ---------------------------                    \n");
        print(" |********************     | \n");
        print(" | *    别尔特        *    | \n");
        print(" |  *       实验室    *    |   \n");
        print(" |   *********         *   |   \n");
        print(" |           ***********   |  \n");
        print(" |    你      cxk          |  \n");          
        print(" |   黑人                  |   \n");
        print(" |-------------------------|   \n");
        print("           \n");
        sleep(1000);
        cls(); 
        print("      伏拉夫牌GPS      \n");
        print("                 世界NO.1     \n");
        print(" ---------------------------                    \n");
        print(" |********************     | \n");
        print(" | *    别尔特        *    | \n");
        print(" |  *       实验室    *    |   \n");
        print(" |   *********         *   |   \n");
        print(" | ********  ***********   |  \n");
        print(" | ********       cxk      |  \n");          
        print(" |  黑人                   |   \n");
        print(" |-------------------------|   \n");
        print("           \n");
        sleep(1000);
        cls(); 
        print("      伏拉夫牌GPS      \n");
        print("                 世界NO.1     \n");
        print(" ---------------------------                    \n");
        print(" |********************     | \n");
        print(" | *    别尔特        *    | \n");
        print(" |  *       实验室    *    |   \n");
        print(" |   *********         *   |   \n");
        print(" |****       ***********   |  \n");
        print(" |****             cxk     |  \n");          
        print(" |人                       |   \n");
        print(" |-------------------------|   \n");
        sleep(1000);
        cls(); 
        print("      伏拉夫牌GPS      \n");
        print("                 世界NO.1     \n");
        print(" ---------------------------                    \n");
        print(" |********************     | \n");
        print(" | *    别尔特        *    | \n");
        print(" |  *       实验室    *    |   \n");
        print(" |   *********         *   |   \n");
        print(" |           ***********   |  \n");
        print(" | k    o            cxk   |  \n");          
        print(" |                         |   \n");
        print(" |-------------------------|   \n");
        sleep(7000);
        print("* 1星\n**因:自杀\nwewewewewewewewe");    

        return 0;   
    }
    if(fafa==3){
        sleep(2500);
        cls(); 
        print("      伏拉夫牌GPS      \n");
        print("                 世界NO.1     \n");
        print(" ---------------------------                    \n");
        print(" |********************     | \n");
        print(" | *    别尔特        *    | \n");
        print(" |  *        实验室    *   |   \n");
        print(" |   *********         *   |   \n");
        print(" |           ***********   |  \n");
        print(" | 你           cxk        |  \n");          
        print(" |                         |   \n");
        print(" |-------------------------|   \n");
        print(" 你:跑啊!!!          \n");
        sleep(2500);
        cls(); 
        print("      伏拉夫牌GPS      \n");
        print("                 世界NO.1     \n");
        print(" ---------------------------                    \n");
        print(" |        ********         | \n");
        print(" |       * 别尔特*         | \n");
        print(" |        * 实验室*        |   \n");
        print(" |         ********        |   \n");
        print(" |                         |  \n");
        print(" | 你                      |  \n");          
        print(" |                         |   \n");
        print(" |-------------------------|   \n");
        print("   cxk不见了。        \n");
        sleep(2500);
        cls(); 
        print("      伏拉夫牌GPS      \n");
        print("                 世界NO.1     \n");
        print(" ---------------------------                    \n");
        print(" |        ********         | \n");
        print(" |       * 别尔特*         | \n");
        print(" |        * 实验室*        |   \n");
        print(" |         ********        |   \n");
        print(" |老八                     |  \n");
        print(" | 你                      |  \n");          
        print(" |                         |   \n");
        print(" |-------------------------|   \n");
        print("老八:一日三餐没烦恼,就吃老八秘制小汉堡。兄弟来一个!\n "); 
        sleep(2500);
        print("1.来个 2.不来\n");
        int laobast;
        cin>>laobast;
        if(laobast==1){
            sleep(2500);
            cls(); 
            print("      伏拉夫牌GPS      \n");
            print(" (#代表小憨包)                世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |        ********         | \n");
            print(" |       * 别尔特*         | \n");
            print(" | 老八   * 实验室*        |   \n");
            print(" | ##        ********      |   \n");
            print(" |####                     |  \n");
            print(" |# 你#                    |  \n");          
            print(" |#####                    |   \n");
            print(" |-------------------------|   \n"); 
            cls();
            print("*** 3星\n**因:被小汉堡噎**\nwewewewewewewewe");
            return 0; 
        }
        else{
            sleep(2500);
            cls(); 
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |        ********         | \n");
            print(" |       * 别尔特*         | \n");
            print(" |        * 实验室*        |   \n");
            print(" |         ********        |   \n");
            print(" |老八                     |  \n");
            print(" | 你                      |  \n");          
            print(" |                         |   \n");
            print(" |-------------------------|   \n");
            print(" 老八:不来?去s吧!!!       \n");
            sleep(1000);
            cls(); 
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |        ********         | \n");
            print(" |       * 别尔特*         | \n");
            print(" |        * 实验室*        |   \n");
            print(" |       你 ********       |   \n");
            print(" |      老八               |  \n");
            print(" |                         |  \n");          
            print(" |                         |   \n");
            print(" |-------------------------|   \n");
            print(" 老八:不来?去s吧!!!       \n");
            cls();
            sleep(5000);
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走|         | \n");
            print(" ||     | ???  |  |???????? |   \n");
            print(" || 生化|      |  |---------|   \n");
            print(" ||  室 |------|  |仓库|仓库|  \n");
            print(" ||     |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            print("你:我tm在哪?       \n");
            sleep(2000); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走|         | \n");
            print(" ||     | ???  |  |???????? |   \n");
            print(" || 生化|      |你|---------|   \n");
            print(" ||  室 |------|  |仓库|仓库|  \n");
            print(" ||     |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            sleep(2000); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走|         | \n");
            print(" ||     | ???  |  |???????? |   \n");
            print(" || 生化|      |  |---------|   \n");
            print(" ||  室 |------|  |仓库|仓库|  \n");
            print(" ||     |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            print("你:我该去哪呢?");
            sleep(1500);
            print("\n1.仓库1 2.仓库2 3.地下室\n");
            int jing;
            cin>>jing;
            if(jing==3){
                sleep(2000); 
                cls();
                print("      伏拉夫牌GPS      \n");
                print("                 世界NO.1     \n");
                print(" ---------------------------                    \n");
                print(" |1f     |------------------| \n");
                print(" |_______|     |走|         | \n");
                print(" ||     | ???  |  |???????? |   \n");
                print(" || 生化|      |  |---------|   \n");
                print(" ||  室 |------|  |仓库|仓库|  \n");
                print(" ||     |地你室|廊| 1  | 2  |  \n");          
                print(" ||_____|______|__|_________|   \n");
                print(" |--------------------------|   \n");
                sleep(2000); 
                cls();
                print("      伏拉夫牌GPS      \n");
                print("                 世界NO.1     \n");
                print(" ---------------------------                    \n");
                print(" |-1f    |------------------| \n");
                print(" |_______|                  | \n");
                print(" ||                         |   \n");
                print(" ||    你  cxk              |   \n");
                print(" ||                         |  \n");
                print(" ||                         |  \n");          
                print(" ||_________________________|   \n");
                print(" |--------------------------|   \n");
                sleep(2000); 
                cls();
                print("      伏拉夫牌GPS      \n");
                print("                 世界NO.1     \n");
                print(" ---------------------------                    \n");
                print(" |-1f    |------------------| \n");
                print(" |_______|                  | \n");
                print(" ||   **你                  |   \n");
                print(" || # 太美*     cxk         |   \n");
                print(" ||    你                   |  \n");
                print(" ||  k     o                |  \n");          
                print(" ||_________________________|   \n");
                print(" |--------------------------|   \n");
                cls();
                print("**** 4星\n**因:cxk\nwewewewewewewewe"); 
                return 0;
            }
            if(jing==1){    
                sleep(2000); 
                cls();
                print("      伏拉夫牌GPS      \n");
                print("                 世界NO.1     \n");
                print(" ---------------------------                    \n");
                print(" |1f     |------------------| \n");
                print(" |_______|     |走|         | \n");
                print(" ||     | ???  |  |???????? |   \n");
                print(" || 生化|      |  |---------|   \n");
                print(" ||  室 |------|  |仓库|仓库|  \n");
                print(" ||     |地下室|廊| 1你| 2  |  \n");          
                print(" ||_____|______|__|_________|   \n");
                print(" |--------------------------|   \n");
                print("你看到了一张纸。");
                cls();
                sleep(1300);
                print("哈哈。你能做出下面的题m?\n");   
                print("1.  3^2=                        \n");
                print("2.  淦的音节 1.gan 2.han                    \n");
                print("3.  你是猪吗 1.是 2.不是                  \n");
                print("4.  4+4=               \n");
                int mn,mb,mv,mc;
                cin>>mn>>mb>>mv>>mc;
                if(mn!=9||mb!=1||mv!=1||mc!=8){
                    while(1){
                        print("k   o\n你已进入循环体\n只有输入正确的数字才能逃脱\n");
                        int bs,rr;
                        bs=key-2559;
                        cin>>rr;
                        if(rr==bs) break;
                        else print("错"); 
                    }
                }
                else{
                    print("恭喜你获得:");
                    if(key%11==0&&key%10==0&&key%3==0){
                        print("**斯加特琳");
                        gj=gj*5;
                        fang=fang*5;
                        xue=xue-5;  
                        wu=1;
                    } 
                    else if(key%11==0&&(key%10==0||key%3==0)){
                        print("青铜加特琳");
                        gj=gj*4;
                        fang=fang*3;
                        xue=xue-3;
                        wu=2;   
                    }
                    else if((key%11==0||key%10==0)&&key%3==0){
                        print("普通加特琳");
                        gj=gj*3;
                        fang=fang+2;
                        xue-=1;
                        wu=3;   
                    }
                    else if(key%11==0||key%10==0||key%3==0){
                        print("**斯夹子");
                        gj=gj*6;
                        fang=fang+9;
                        xue=xue-12;
                        wu=4;   
                    }
                    else if(key%10==0&&key%3==0){
                        print("轻夹子");
                        gj=gj+5;
                        fang=fang+5;
                        xue=xue+5;  
                        wu=5;
                    }
                    else{
                        print("炸弹");
                        gj=gj+3;
                        fang=fang+3;
                        xue=xue+3;
                        wu=6;   
                    }
                    print("\n1.去仓库2\n");
                    sleep(5000); 
                } 
            }
            sleep(2000); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走|         | \n");
            print(" ||     | 大门 |  | 研究室  |   \n");
            print(" || 生化|      |  |---------|   \n");
            print(" ||你室 |------|  |仓库|仓库|  \n");
            print(" ||     |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            print("");
            if(wu==0){
                print("恭喜你获得:");
                if(key%11==0&&key%10==0&&key%3==0){
                print("**斯枪");
                gj*=4; 
                fang+=3;
                xue-=3; 
                wu=7;
            } 
            else if(key%11==0&&(key%10==0||key%3==0)){
                print("青铜枪");
                gj*=3;
                fang+=2;
                xue-=2; 
                wu=8;
            }
            else if((key%11==0||key%10==0)&&key%3==0){
                print("普通枪");
                gj*=2;
                fang+=1;
                xue-=0;
                wu=9;   
            }
            else if(key%11==0||key%10==0||key%3==0){
                print("**斯炸弹");
                gj*=5;
                fang+=7;
                xue-=10;
                wu=10;  
            }
            else if(key%10==0&&key%3==0){
                print("轻夹子");
                gj+=5;
                fang+=5;
                xue+=5; 
                wu=11;
            }
            else{
                print("炸弹");
                gj+=3;
                fang+=3;
                xue+=3;
                wu=12;  
            }
            }
            else{

            }
            print("\n");
            sleep(2000); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走|         | \n");
            print(" ||     | 大门 |  | 研究室  |   \n");
            print(" || 生化|      |  |---------|   \n");
            print(" ||  室 |------|  |仓库|仓库|  \n");
            print(" ||     |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            print("你:我该去哪呢?\n");
            print("1.生化室 2.研究室\n");
            int laobard;
            cin>>laobard;
            if(laobard==1){
            sleep(2000); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走|         | \n");
            print(" ||     | 大门 |  |研究室   |   \n");
            print(" || 生化|      |  |---------|   \n");
            print(" ||  室 |------|  |仓库|仓库|  \n");
            print(" || 你  |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            print("生化室里有一张床,还有一个桌子,上面有杯果汁。");
            sleep(1000);
            print("1.查看床 2.喝果汁\n");
            int mana;
            cin>>mana;
            if(mana==2){
                print("\n你中毒身亡了。");
                sleep(1600);
                cls();
                print("*** 3星\n**因:好吃\nwewewewewewewewe"); 
                return 0; 
            } 
            sleep(2000); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走|         | \n");
            print(" ||     | 大门 |  |研究室   |   \n");
            print(" || cxk |      |  |---------|   \n");
            print(" ||     |------|  |仓库|仓库|  \n");
            print(" || 你  |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            print("你(大吃亿斤):艹(床上面居然是cxk)\n");
            print("cxk:几你太美");
            sleep(4000);
            cls();
            int cgjf=2,cff=2,cxf=25,csh,wsh;
            while(1){
                wsh=gj-cff;
                csh=cgjf-fang;
                print("    a 你          b cxk\n"); 

                print("  血量:");
                cout<<xue;
                print("  血量:  ");
                cout<<cxf;
                print("  \n");
                print(" 攻击力:");
                cout<<gj;
                print("  攻击力:");
                cout<<cgjf;
                print("  \n");
                print(" 防御力:");
                cout<<fang;
                print("防御力:");
                cout<<cff;
                print("   \n");
                sleep(4000);
                cxf-=wsh;
                xue-=csh;
                print("我方发起了攻击,对对方产生了");
                cout<<gj;
                print("伤害,对方还剩");
                cout<<cxf;
                print("\n对方发起进攻,我们还剩");
                cout<<xue;
                sleep(4000);
                if(xue<=0){
                    print("\n你**了");
                    sleep(4000);
                    cls();
                    print("**** 4星\n**因:cxk\nwewewewewewewewe"); 
                    break;
                    return 0;
                }
                if(cxf<=0){
                    print("\n胜利了!!!\n");
                    xue+=20;
                    gj+=5;
                    fang+=3;
                    sleep(4000);
                    break;
                } 
                gj++;
                cls();
            }
            }
            sleep(2000); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走| 你  老八| \n");
            print(" ||     | 大门 |  | 研究室  |   \n");
            print(" || 生化|      |  |---------|   \n");
            print(" ||  室 |------|  |仓库|仓库|  \n");
            print(" ||     |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            print("你:老八?又是你!\n老八:敢跟我打一架吗?\n你:来就来,谁怕谁\n");
            sleep(4000); 
            int lgjf=5,lff=5,lxf=50,lsh,wshi;
            while(1){
                wshi=gj-lff;
                lsh=lgjf-fang;
                print("    a 你          b 老八\n"); 
                print("  血量:"); 
                cout<<xue;
                print("血量:  ");
                cout<<lxf<<"   \n";

                print(" 攻击力:");
                cout<<gj;
                print(" 攻击力:");
                cout<<lgjf<<"  \n";

                print(" 防御力:");
                cout<<fang;
                print(" 防御力:");
                cout<<lff;
                sleep(1000);
                lxf-=wshi;
                xue-=lsh;
                cout<<"我方发起了攻击,对对方产生了"<<gj<<"伤害,对方还剩"<<lxf<<"\n对方发起进攻,使用了小汉堡,我们还剩"<<xue;
                sleep(1000);
                if(xue<=0){
                    print("\n你**了");
                    sleep(1900);
                    cls();
                    print("**** 4星\n**因:老八\nwewewewewewewewe"); 
                    break;
                    return 0;
                }
                if(lxf<=0){
                    print("\n胜利了!!!\n");
                    xue+=20;
                    gj+=5;
                    fang+=3;
                    sleep(1900);
                    break;
                } 
                gj++;
                cls();
            }
            sleep(2000); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走| 你  老八| \n");
            print(" ||     | 大门 |  | 研究室  |   \n");
            print(" || 生化|      |  |---------|   \n");
            print(" ||  室 |------|  |仓库|仓库|  \n");
            print(" ||     |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            print("老八:你太牛13了,我打不过,溜了溜了");
            sleep(1900); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走| 你  老八| \n");
            print(" ||     | 大门 |  | 研究室  |   \n");
            print(" || 生化|      |  |---------|   \n");
            print(" ||  室 |------|  |仓库|仓库|  \n");
            print(" ||     |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            print("你:知道就好,快**!");
            sleep(1900); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走| 你      | \n");
            print(" ||     | 大门 |  | 研究室  |   \n");
            print(" || 生化|      |  |---------|   \n");
            print(" ||  室 |------|  |仓库|仓库|  \n");
            print(" ||     |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            print("你:知道就好,快**!");
            sleep(1900); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______|     |走| 你      | \n");
            print(" ||     | 大门 |  | 研究室  |   \n");
            print(" || 生化|      |  |---------|   \n");
            print(" ||  室 |------|  |仓库|仓库|  \n");
            print(" ||     |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            print("1.去大门\n");
            int wq;
            cin>>wq;
            sleep(1900); 
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |1f     |------------------| \n");
            print(" |_______| 你  |走|         | \n");
            print(" ||     | 大门 |  | 研究室  |   \n");
            print(" || 生化|      |  |---------|   \n");
            print(" ||  室 |------|  |仓库|仓库|  \n");
            print(" ||     |地下室|廊| 1  | 2  |  \n");          
            print(" ||_____|______|__|_________|   \n");
            print(" |--------------------------|   \n");
            sleep(5000);
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |********************     | \n");
            print(" | *    别尔特        *    | \n");
            print(" |  *       实验室    *    |   \n");
            print(" |   *********         *   |   \n");
            print(" |      你   ***********   |  \n");
            print(" |                         |  \n");          
            print(" |                         |   \n");
            print(" |-------------------------|   \n");
            print("正道的光照到了大地上…………");
            sleep(1900);
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |********************     | \n");
            print(" | *    别尔特        *    | \n");
            print(" |  *       实验室    *    |   \n");
            print(" |   *********         *   |   \n");
            print(" | 你        ***********   |  \n");
            print(" |          Bosscxk        |  \n");          
            print(" |                         |   \n");
            print(" |-------------------------|   \n");
            print("???"); 
            sleep(1900);
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |********************     | \n");
            print(" | *    别尔特        *    | \n");
            print(" |  *       实验室    *    |   \n");
            print(" |   *********         *   |   \n");
            print(" | 你        ***********   |  \n");
            print(" |          Bosscxk        |  \n");          
            print(" |                         |   \n");
            print(" |-------------------------|   \n");
            print("你:快跑"); 
            sleep(1900);
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |********************     | \n");
            print(" | *       酒店      * 你  | \n");
            print(" |  *                 *    |   \n");
            print(" |   *********        *    |   \n");
            print(" |         ***********     |  \n");
            print(" |                         |  \n");          
            print(" |                         |   \n");
            print(" |-------------------------|   \n");
            print("你:快跑"); 
            sleep(1900);
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |********************     | \n");
            print(" | *       酒店      * 你  | \n");
            print(" |  *                 *    |   \n");
            print(" |   *********        *    |   \n");
            print(" |         ***********     |  \n");
            print(" |                         |  \n");          
            print(" |                         |   \n");
            print(" |-------------------------|   \n");
            print("你:太阳已经下山了,先在这住一会吧!");
            sleep(1900);
            cls();
            print("      伏拉夫牌GPS      \n");
            print("                 世界NO.1     \n");
            print(" ---------------------------                    \n");
            print(" |********************     | \n");
            print(" | *       酒店   你  *    | \n");
            print(" |  *          ??? *    |   \n");
            print(" |   *********        *    |   \n");
            print(" |         ***********     |  \n");
            print(" |                         |  \n");          
            print(" |                         |   \n");
            print(" |-------------------------|   \n");
            print("你:太阳已经下山了,先在这住一会吧!");
            sleep(1900);
            print("\n敬请期待,下集\n");
            sleep(1200);
            print("逃离恐怖酒店");
            sleep(1900);
            cls();
            print("片尾部分     \n");
            print("  本游戏由李熙尧   创作 \n");
            print("  本游戏由李奕歌   投资 \n");
            print("  本游戏由李熙尧   编程 \n"); 
            print("  本游戏由李熙尧   整理 \n"); 
        }
        return 0;   
    } 
}

 


0
已采纳
李宜和
李宜和
高级启示者
高级启示者

好玩,点赞过了

0
我要回答