问题标题: 酷町堂:行走 活动更新 暑假快乐!!!

0
0
已解决
王子逸
王子逸
新手天翼
新手天翼

二话不说  上代码

 

#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<conio.h>
#include<Windows.h>
#include<string>
#include<ctime>
#include<stdio.h>
#include<stdlib.h>
#include<windows.h>
#include<conio.h>
#pragma GCC optimize(2)
using namespace std;
int mpf;
int du=0; 
int  z=0; 
bool jih=0;
string cheng;
struct st{
    string pi[21];
    int jl;
}pf;
string name;
double qi=100;
string ren="GD";
int s[11][36]={{8,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
               {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0},
               {0,0,0,0,0,8,8,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,8,8,8,1,1,1,8,8,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,8,8,8,8,8,8,0,0,0,0,0,0,0,0,0,0,0,8,8,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,8,8,8,0,0,0,0,0,0,4,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,0,0,0,0,8,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,8,0,0,0,0,0,0,0,0,0,8,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8},
               {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,1}};
int sf[11][36]={{8,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
               {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0},
               {0,0,0,0,0,8,8,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,8,8,8,1,1,1,8,8,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,8,8,8,8,8,8,0,0,0,0,0,0,0,0,0,0,0,8,8,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,8,8,8,0,0,0,0,0,0,4,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,0,0,0,0,8,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,8,0,0,0,0,0,0,0,0,0,8,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8},
               {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,1}};
int b[11][36]={{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
               {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,6,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,4,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}};
int bf[11][36]={{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
               {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,6,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,4,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
               {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}};
   int a[11][36]={{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
                  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
                  {0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0},
                  {0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0},
                  {0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0},
                  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0},
                  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1},
                  {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
                  {1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,0,0,0},
                  {1,1,1,1,1,1,1,1,1,8,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1},
                  {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}};
    int af[11][36]={{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
                  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
                  {0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0},
                  {0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0},
                  {0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0},
                  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0},
                  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1},
                  {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
                  {1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,0,0,0},
                  {1,1,1,1,1,1,1,1,1,8,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1},
                  {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}};
 void H()
{
    HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
    CONSOLE_CURSOR_INFO CursorInfo;
    GetConsoleCursorInfo(handle, &CursorInfo);
    CursorInfo.bVisible = false;
    SetConsoleCursorInfo(handle, &CursorInfo);
}
int gushi()
{
    ren="〓";
    system("cls");
    cout<<"\n 没错 你来了  其实行走世界原本是一片虚空 直到那个人的来到 他创造了世界\n";
    Sleep(2500);
    cout<<" 他用一个奇怪的物品  开辟了世界   他拿出来刀 打开了我们与外界的大门...\n";
    Sleep(2500);
    cout<<" 后来  我们才知道 这个是我们的生命之源 每当大门关闭 世界将万劫不复....\n";
    Sleep(2500);
    cout<<" 这是 他又会来创造世界   哦 大门之外的生物啊 他们无时无刻不在观察我...\n";
    Sleep(2500);
    cout<<" 现在 他们正看着我们的思想 像看书一样 他可能不会相信我们的存在 ......\n";
    Sleep(2500);
    cout<<" 创造我们的人 他终究会在开创一个新的世界 反复无常 多么无趣的世界啊...\n";
    Sleep(2500);
    cout<<"                                                   ----《行走见闻录》\n"; 
    Sleep(5000); 
    system("cls"); 
    return 1;
}
int zi()
{
    system("cls");
    int pfl=0;
    if(z<=5)
    {
        cheng="超级小萌新";
     } 
     else if(z<=10)
     {
        cheng="萌新玩家";
     }
     else if(z<=15)
     {
        cheng="普通玩家";
     }
     else if(z<=20)
     {
        cheng="老玩家";
     }
     else if(z<=25)
     {
        cheng="骨灰级老玩家";
     }
     else if(z<=30)
     {
        cheng="游戏忠粉";
     }
     else if(z>30)
     {
        cheng="行走 的亲密战友";
        if(pfl==0)
        {
            pf.jl++;
        pf.pi[pf.jl]="忠";
        pfl=1;
         }

     }
    cout<<"    --------------------资历-------------------\n\n";
    cout<<"\t\t\t经验:"<<z<<"\n\t\t"<<"你的称号:"<<cheng; 
    if(cheng=="行走 的亲密战友")
    {
        cout<<"\n\t已拥有皮肤:忠"; 
    }
    Sleep(3000);
    system("cls");
    return 1; 
}
int cang()
{
    int i;
    int ph;
    system("cls");
    cout<<"\t\t\t\t仓库\n\n\t\t";
    for(i=1;i<=pf.jl;i++)
    {
        cout<<i<<"."<<pf.pi[i]<<"  "; 
     } 
     cout<<i+1<<".退出 ";
     if(jih==1)
     {
        cout<<i+2<<"行走历史\n\t选择:";
        cin>>ph;
     if(ph==i+1)
     {
        system("cls");
        return 1;
     }
     if(ph==1)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==2)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==3)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==4)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==5)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==6)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==7)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } if(ph==8)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==9)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 

      if(ph==10)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==11)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==12)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
    }  
      if(ph==13)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==14)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==15)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==16)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==17)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==18)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==19)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==20)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==i+2)
      {
        gushi();
        return 1;
      }
     }
     else 
     {
        cout<<"\n\t选择:"; 

     cin>>ph;
     if(ph==i+1)
     {
        system("cls");
        return 1;
     }
     if(ph==1)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==2)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==3)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==4)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==5)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==6)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==7)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } if(ph==8)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==9)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 

      if(ph==10)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==11)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==12)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
    }  
      if(ph==13)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==14)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==15)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==16)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==17)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==18)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==19)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      if(ph==20)
     {
        cout<<"OK,穿戴完毕!";
        ren=pf.pi[ph]; 
      } 
      }
     Sleep(2000);
     system("cls");
     return 1;
}
int ce()
{
    z++;
    cout<<"\t\t\t\t获取信息\n\n\n\n\n\n";
    cout<<"\t\t\t名字(无限制):";
    cin>>name;
    cout<<"\t\t\t\tOK,注册完成" ;
    Sleep(1000);
    system("cls");
    return 1; 
}
void dui(){
    string dk; 
    system("cls") ;
    cout<<"\n\n\n\n\n\n\n\t\t\t兑换码:";
    cin>> dk;
    if(dk=="ZXBBY111"&&du==0)
    {
        du=1;
        z++;
    pf.jl++;
    pf.pi[pf.jl]="△";
        ren="△";
        qi+=500;
        cout<<"\t\t\t获得皮肤:△   \n\t\t\t金币+500";
         Sleep(3000);
         system("cls"); 
    }
    else if(du==1)
    {
        cout<<"\t\t\t兑换码已使用!!";
        Sleep(2000);
        system("cls");
    }
    else
    {
        cout<<"\t\t\t兑换码不对!!!";
        Sleep(2000);
        system("cls"); 
    }
}
                  int zhu();
int si()
{
    H(); 
        system("cls");
    HANDLE hstdin = GetStdHandle(STD_INPUT_HANDLE);
        HANDLE hstdout = GetStdHandle(STD_OUTPUT_HANDLE);
        int f;
    char ch;                    
    int x=2;
    int y=8;
    system("color 07");
    s[2][4]=0;
    while(1)
    {
        for(int i=0;i<=10;i++)
                {
                    for(int j=0;j<=35;j++)
                    {
                        if(s[i][j]==4)
                        {
                            cout<<"HH"; 
                          }
                        else if (s[i][j]==6)
                        {
                            cout<<" @";
                          }
                        else if(s[i][j]==1)
                        {
                          SetConsoleTextAttribute(hstdout, 0x0C);
                            cout<<"OT";
                          } 

                          else if(s[i][j]==0)
                          {
                            cout<<"  ";
                          }
                          else if(s[i][j]==9)
                          {
                            SetConsoleTextAttribute(hstdout, 0x0E);
                            cout<<ren;
                          }
                          else if(s[i][j]==8)
                          { 
                          SetConsoleTextAttribute(hstdout, 0x0F);
                            cout<<"AA"; 
                          }
                      }
                      cout<<endl; 
                }

                ch=getch();
                if(ch=='o')
                {
                    cout<<"\n\n\n\n\n\n\n\t\t\t\t自杀成功!!" ;
                    cout<<(char)7; 
                    Sleep(2000);
                    system("cls");
                    zhu(); 
                }
                if(ch=='f')
                {
                    if(f==1)
                    {
                        a[x][y-1]=0;
                    }
                    else if(f==2)
                    {
                        a[x][y+1]=0;
                    }
                    system("cls");
                }
                else if(ch=='a')
                {
                     if(b[x][y-1]==6)
                    {
                        a[2][5]=6;

                        return 1;

                    }
                     if(s[x+1][y-1]==4)
                    {
                        s[x-4][y]==9;
                        s[x][y]=0;
                        x-=4;
                        system("cls");
                    }
                    f=1;

                     if(s[x+1][y-1]==8)
                    {
                        system("cls");
                        system("color 0F");
                        cout<<"\n\n\n\n\t\t\t\t\tGame Over!\n\n\n\n\n\n\n";
                        cout<<(char)7; 
                        Sleep(2000);
                        system("cls");
                        zhu();
                        x=3;
                        y=8;
                    }
                    else if(s[x+1][y-1]==0&&s[x+1][y]!=1)
                    {
                        s[x+1][y-1]=9;
                        s[x][y]=0;
                        x++;
                        y--;
                        system("cls");
                    }
                    else if(s[x][y-1]==1&&s[x-1][y-1]!=1)
                    {
                        s[x-1][y-1]=9;
                        s[x][y]=0;
                        x--;
                        y--;
                        system("cls");
                    }
                    else if(s[x][y-1]!=1)
                    {
                    s[x][y-1]=9;
                    s[x][y]=0;
                    y--;
                    system("cls");
                    }
                    else
                    {
                        system("cls");
                    }
                }
                else if(ch=='z'&&s[x-1][y]!=1)
                {
                    if(s[x-1][y]==6)
                    {

                    }
                    s[x][y]=1;
                    s[x-1][y]=9;
                    x-=1;
                    system("cls"); 

                 } 
                else if(ch=='d')
                {
                    if(s[x+1][y+1]==4)
                    {
                        s[x-4][y]==9;
                        s[x][y]=0;
                        x-=4;
                        system("cls");
                    }
                    else if(s[x][y+1]==6)
                    {
                        return 1;
                        s[x][y]=0;
                        y+=2;
                    }
                    f=2;
                    if(s[x+1][y+1]==8)
                    {
                        system("cls");
                        system("color 0F") ;
                        cout<<"\n\n\n\n\t\t\t\t\tGame Over!\n\n\n\n\n\n\n";
                        cout<<(char)7; 
                        Sleep(2000);
                        system("cls");
                        zhu();
                        x=8;
                        y=31;
                    }
                    else if(s[x+1][y+1]==0&&s[x-1][y+1]!=1)
                    {
                        s[x+1][y+1]=9;
                        s[x][y]=0;
                        x++;
                        y++;
                        system("cls");
                     } 
                     else if(s[x][y+1]==1&&s[x-1][y+1]!=1)
                     {
                        s[x-1][y+1]=9;
                        s[x][y]=0;
                        x--;
                        y++;
                        system("cls");
                     }

                     else if(s[x][y+1]!=1)
                     {
                        s[x][y+1]=9;
                    s[x][y]=0;
                    y++;
                    system("cls");
                     }
                     else {
                        system("cls");
                     }
                }
                else if(ch=='w'&&s[x-1][y]!=1&&(s[x][y+1]||s[x][y-1]==1)) 
                {
                    if(b[x-1][y]==6)
                    {

                    }
                    s[x-1][y]=9;
                    s[x][y]=0;
                    x--;
                    system("cls");
                }
                else if(ch=='s'&&s[x+1][y]!=1&&(s[x][y+1]==1||s[x][y-1]==1||s[x+1][y-1]==1||s[x+1][y+1]==1))
                {
                    s[x+1][y]=9;
                    s[x][y]=0;
                    x++;
                    system("cls");
                } 
                else 
                {
                    system("cls");
                }
            }
        }


int huo()
{
    int jia;
    int kk;
    int zho;
    int xux;
    int h;
    system("cls"); 
    while(1)
    {
        cout<<"\t\t\t\t活动\n\n\n";
        cout<<"\t1.王者之师活动   2.金币翻翻翻活动   3.行走史册活动    4.暑假活动  5.退出";
        cin>>h;
        system("cls");
        if(h==1)
        {
            while(1)
            {
            cout<<"\t\t\t王者之师皮肤活动!!!\n";
    cout<<"\t\t\t花费50金币进行一次抽奖!!\n";
    cout<<"\t\t有几率获得王者之师皮肤:□(来自王者的怒号)\n";
    cout<<"\t\t\t1.开始抽奖  2.退出\n\n你的选择:";
    cin>>xux;
    if(xux==1)
    {
        qi-=50;
        srand(time(NULL));
        zho=rand()%12+1;
        if(zho==2)
        {pf.jl++;
        pf.pi[pf.jl]="□";
            cout<<"\t\t"<<name<<"欧皇啊!!!获得皮肤!!! □";
            ren="□";
            z++;
        }
        else if(zho==1||zho==3||zho==4)
        {
            cout<<"\t\t\t获得70金币";
            qi+=70; 
            z++;
        }
            else if(qi<60)
    {
        cout<<"\t\t\t金币不够了哦!!!" ; 

    }
        else 
        {
            cout<<"\t\t\t没有中奖哦!!";
        }

        Sleep(1500);
        system("cls");  
    }

    else
    {
        system("cls"); 
        break;
    }

            }
        }
        else if(h==2)
        {
            while(1)
            {
            cout<<"\t\t欢迎来到金币翻翻翻!!!(60金币1次)\n\n";
            cout<<"\t\t  有几率抽到皮肤兑换码哦!!!(15分1)\n";
            cout<<"\t\t  还可以翻倍金币!!!\n";
            cout<<"\t\t  1.开始    2.退出\n" ;
            cout<<"\t\t选择:";
            cin>>kk;
             if(kk==1)
             {
                qi-=60;
                srand(time(NULL));
                jia=rand()%15+1;
                if(qi<60)
                 {
                    cout<<"\t\t金币不够了哦!!";
                    Sleep(1000);
                 }
                else if(jia==3)
                {
                    z++;
                    cout<<"\t\t啊啊啊,无情,兑换码是:ZXBBY111"; 
                    Sleep(3000); 
                 }
                 else if(jia==4||jia==5||jia==6)
                 {
                    z++;
                    cout<<"\t\t666金币翻2倍";
                    qi*=2;
                    Sleep(1000); 
                 }
                 else if(jia==2)
                 {
                    z++;
                    pf.jl++;
                    pf.pi[pf.jl]="█";
                    cout<<"\t\t获得皮肤:█(数据加载错误)";
                    ren="█";
                     Sleep(2000); 
                 }
                 else
                 {
                    cout<<"\t\t哈哈,"<<name<<"你没有抽到啊!!";
                    Sleep(1000); 
                 }
                 system("cls");
             }
             else
             {
                system("cls");
                break;
             }

            }

        }
        else if(h==3)
        {
            while(1)
            {
                cout<<"\t\t欢迎来到行走史册\n";
                cout<<"\t这里抽到的皮肤可以了解行走世界的历史哦\n";
                cout<<"\t另外这个属于史诗级皮肤,超级难抽(50金币一次) 但很有趣(18/1)\n";
                cout<<"\t    1.抽奖  2退出   选择:";
                int yt,jig;
                cin>>yt;
                if(yt==1)
                {
                    srand(time(NULL));
                    jig=rand()%18+1;
                    if(qi<50)
                    {
                        cout<<"\t你的金币不够了\n";
                    }
                    else if(jig==3)
                    {
                        z++;
                        pf.jl++;
                        pf.pi[pf.jl]="〓";
                        cout<<"\t你有资格看到历史。。。获取皮肤:〓\n";
                        ren="〓";
                        qi-=50;
                        jih=1;
                    }
                    else if(jig==1||jig==2||jig==4||jig==5||jig==6||jig==7||jig==8)
                    {
                        z++;
                        cout<<"\t金币+99......\n";
                        qi+=99;
                    }
                    else 
                    {
                        z++;
                        cout<<"\t你什么都没有抽到...\n";
                        qi-=50; 
                    }
                    Sleep(1000);
                    system("cls");
                } 
                else 
                {
                    system("cls");
                    break;
                }
            }
         } 
         else if(h==4)
                {
                    while(1)
                    {
                        cout<<"\t\t\t暑假活动来了(30金币)\n\n";
                        cout<<"\t\t 皮肤:※抽奖获取 \n" ;
                        cout<<"\t\t 金币1000待你抽  \n";
                        cout<<"\t\t1.抽奖   2.退出";
                        int du;
                        int duj;
                        cin>>du;
                        if(du==1)
                        {
                            srand(time(NULL));
                            duj=rand()%10+1;
                            if(duj==1||duj==2)
                            {
                                z++;
                                pf.jl++;
                                pf.pi[pf.jl]="※";
                                cout<<"\t暑假快乐!!!获取皮肤:※\n";
                                ren="※";
                                qi-=30;
                                jih=1;
                            }

                            else if(duj==3||duj==5||duj==6)
                            {
                                z++;
                                cout<<"\t金币+1000";
                                qi+=1000;
                             }
                             else
                             {
                                cout<<"\t你什么都没抽到..."; 
                              } 

                              Sleep(1000);
                              system("cls");
                         }
                         else 
                         {
                            system("cls");
                            break;
                         }
                    }
                 }
    else if(h==5)
            {
                break;
            }
    }


}
int sh(){
string zidi;
    int jj;
    system("cls");
    cout<<"\t\t\t\t商城\n\n";
    cout<<"\t\t尊贵的"<<name<<"     您有金币:"<<qi<<endl; 
    cout<<"\t\t1.皮肤:QW  价格100(QwQ~呜)\n"; 
    cout<<"\t\t2.皮肤:MC  价格150(MC万岁)\n";
    cout<<"\t\t3.皮肤:OT  价格200(方块人)\n";
    cout<<"\t\t4.皮肤: .  价格250(小不点)\n";
    cout<<"\t\t5.皮肤:VC  价格300(dev c++)\n";
    cout<<"\t\t6.皮肤:死  价格350(挡我者死)\n";  
    cout<<"\t\t7.皮肤:学  价格350(学海无涯)\n"; 
    cout<<"\t\t8.皮肤:V8  价格400(来自VIP的光芒)\n"; 
    cout<<"\t\t9.皮肤:自定义  价格700\n"; 
    cout<<"\t\t0.退出\n";
    cin>>jj;
    if(jj==1&&qi>=100)
    {
        z++;
        pf.jl++;
                    pf.pi[pf.jl]="QW";
        qi-=100;
        ren="QW"; 
    }
    else if(jj==1&&qi<100)
    {
        cout<<"没钱买什么皮肤?";
        Sleep(1900);
    }
     if(jj==2&&qi>=150)
    {z++;
        pf.jl++;
                    pf.pi[pf.jl]="MC";
        qi-=150;
        ren="MC";
    }
    else if(jj==2&&qi<150)
    {
        cout<<"没钱买什么皮肤?";
        Sleep(1900); 
    }
     if(jj==3&&qi>=200)
    {
        z++;
        pf.jl++;
                    pf.pi[pf.jl]="OT";
        qi-=200;
        ren="OT";
    }
    else if(jj==3&&qi<200)
    {
        cout<<"没钱买什么皮肤?";
        Sleep(1900); 
    }
    if(jj==4&&qi>=250)
    {
        z++;
        pf.jl++;
                    pf.pi[pf.jl]=" .";
        qi-=250;
        ren=" .";
    }
    else if(jj==4&&qi<250)
    {
        cout<<"没钱买什么皮肤?";
        Sleep(1900); 
    }
    if(jj==5&&qi>=300)
    {
        z++;
        pf.jl++;
                    pf.pi[pf.jl]="VC";
        qi-=250;
        ren="VC";
    }
    else if(jj==5&&qi<300)
    {
        cout<<"没钱买什么皮肤?";
        Sleep(1900); 
    }
    if(jj==6&&qi>=350)
    {
        z+=2;
        pf.jl++;
                    pf.pi[pf.jl]="死";
        qi-=350;
        ren="死";
    }
    else if(jj==6&&qi<350)
    {
        cout<<"没钱买什么皮肤?";
        Sleep(1900); 
    }
    if(jj==7&&qi>=350)
    {
        z+=2;
        pf.jl++;
                    pf.pi[pf.jl]="学";
        qi-=350;
        ren="学";
    }
    else if(jj==7&&qi<350)
    {
        cout<<"没钱买什么皮肤?";
        Sleep(1900); 
    }
    if(jj==8&&qi>=400)
    {
        z++;
        pf.jl++;
                    pf.pi[pf.jl]="V8";
        qi-=400;
        ren="V8"; 
    }
    else if(jj==8&&qi<400)
    {
        cout<<"没钱买什么皮肤?";
        Sleep(1900);
    }
    if(jj==9&&qi>=700)
    {
        z+=3;
        cout<<"自定义:";
        cin>>zidi;
        ren[1]=zidi[1];
        ren[0]=zidi[0];
        qi-=700;
        pf.jl++;
        pf.pi[pf.jl]=ren;
    }
    else if(jj==9&&qi<700)
    {
        cout<<"没钱买什么皮肤?";
        Sleep(1900); 
    }
     if(jj==9)
    {
        system("cls");
        return 1;

     } 
    system("cls");
}
int suo()
{

    string ya="a键向左移动,d键向右移动,w爬墙,s下墙,z键在脚下放方块,f键打掉面前的方块";
    cout<<"\n\n\n\n\n\n\n\n\t\t";
    for(int i=0;i<ya.size();i++)
    {
        cout<<ya[i];
        Sleep(130);
     }
     for(int i=0;i<=10;i++)
     {
        for(int j=0;j<=35;j++)
        {
            a[i][j]=af[i][j];
            b[i][j]=bf[i][j];
            s[i][j]=sf[i][j];
         }
     }
     qi+=50;
     z++;
     cout<<"\n\n\t\t\t"; 
     cout<<"加载中...";
     cout<<"\n\t\t\t";
     for(int i=1;i<=10;i++)
     {
        cout<<"■"; 
        Sleep(500); 
      } 
     Sleep(1000);
     system("cls");
}
    void gui(){
        z++;
        cout<<"@"<<name<<"规则是:\n";
        Sleep(700); 
    cout<<"a键向左走,d键向右走\n";
    Sleep(1500);
    cout<<"w键爬墙,s键下墙\n";
    Sleep(1500);
    cout<<"f键挖掉面前的方块\n";
    Sleep(1500);
    cout<<"z键在脚下垫方块\n";
    Sleep(1500);
    cout<<"有主世界和神域两个世界,神域里一个是肉体,一个是灵魂\n";
    Sleep(3000);
    cout<<"每玩一局会获得50金币\n";
    Sleep(1500); 
    cout<<"活动中可以获得大量金币,有几率获得兑换码!!!\n";
    Sleep(2500);
    cout<<"部分皮肤拥有皮肤特有领域的新世界!!\n" ;
    Sleep(1500);
    cout<<"如果死不掉 就按o键 会自杀!\n";
    Sleep(1500); 
    cout<<"打开程序前看看有没有关闭上一个程序,不然会报错\n";
    Sleep(2500); 
    cout<<"历史要在仓库里查看哦\n";
    Sleep(1500); 
    cout<<"版权所有,未经允许不得盗版,例:迷你世界盗版MC\n";
    Sleep(6000);
    system("cls"); 
}
int zhu()
{

    while(1){
    int xu;
    if(ren=="死")
    {
        cout<<"\n\n\n\n\t|------------------------------------------------------------------------------------|\n";
    cout<<"\t|    1.新游戏        2.规则     3.商城   4.活动  5.死域   6.兑换码   7.仓库  8.资历  |\n";
    cout<<"\t|                                                                      作者——王子逸|\n";
    cout<<"\t|------------------------------------------------------------------------------------|\n\t\t选择:";
    cin>>xu;
    if(xu==1)
    {
        system("cls");
        suo(); 
        return 1;
    }
    else if(xu==2)
    {
        system("cls");
        gui(); 
    }
    else if(xu==3)
    {
        sh();
     }  
     else if(xu==4)
     {
        huo();
     }
     else if(xu==5)
     {
        for(int i=0;i<=10;i++)
         {
            for(int j=0;j<=35;j++)
            {
                s[i][j]=sf[i][j];
             }
          } 
        si();
      } 
      else if(xu==6)
      {
        dui();
       }
       else if(xu==7)
       {
        cang();
        } 
        else if(xu==8)
        {
            zi();
        }
     } 
    else{
        cout<<"\n\n\n\n\t   |-------------------------------------------------------------------------------|\n";
    cout<<"\t   |    1.新游戏        2.规则     3.商城   4.活动  5.兑换码    6.仓库   7.资历    |\n";
    cout<<"\t   |                                                       作者——永恒白昼(王子逸)|\n";
    cout<<"\t   |-------------------------------------------------------------------------------|\n\t\t选择:";
    cin>>xu;
    if(xu==1)
    {
        system("cls");
        suo(); 
        return 1;
    }
    else if(xu==2)
    {
        system("cls");
        gui(); 
    }
    else if(xu==3)
    {
        sh();
     }  
     else if(xu==4)
     {
        huo();
     }
     else if(xu==5)
     {
        dui();
      } 
      else if(xu==6)
      {
        cang();
       } 
       else if(xu==7)
       {
        zi();
        }  
    } 

    }
}
int tia()
{
    H();
    system("cls");
    HANDLE hstdin = GetStdHandle(STD_INPUT_HANDLE);
        HANDLE hstdout = GetStdHandle(STD_OUTPUT_HANDLE);
        int f;
    char ch;                    
    int x=3;
    int y=8;
    system("color 07");
    b[2][4]=0;
    while(1)
    {
        for(int i=0;i<=10;i++)
                {
                    for(int j=0;j<=35;j++)
                    {
                        if(b[i][j]==4)
                        {
                            cout<<"HH"; 
                          }
                        else if (b[i][j]==6)
                        {
                            cout<<" @";
                          }
                        else if(b[i][j]==1)
                        {
                          SetConsoleTextAttribute(hstdout, 0x0C); 
                            cout<<"OT";
                          } 

                          else if(b[i][j]==0)
                          {
                            cout<<"  ";
                          }
                          else if(b[i][j]==9)
                          {
                            SetConsoleTextAttribute(hstdout, 0x0E);
                            cout<<ren;
                          }
                          else if(b[i][j]==8)
                          { 
                          SetConsoleTextAttribute(hstdout, 0x0F);
                            cout<<"AA"; 
                          }
                      }
                      cout<<endl; 
                }

                ch=getch();
                if(ch=='o')
                {
                    cout<<"\n\n\n\n\n\n\n\t\t\t\t天界不可自杀" ;
                    Sleep(2000);
                    system("cls");
                }
                if(ch=='f')
                {
                    if(f==1)
                    {
                        b[x][y-1]=0;
                    }
                    else if(f==2)
                    {
                        b[x][y+1]=0;
                    }
                    system("cls");
                }
                else if(ch=='a')
                {
                     if(b[x][y-1]==6)
                    {
                        a[2][5]=6;

                        return 1;

                    }
                     if(b[x+1][y-1]==4)
                    {
                        b[x-4][y]==9;
                        b[x][y]=0;
                        x-=4;
                        system("cls");
                    }
                    f=1;

                     if(b[x+1][y-1]==8)
                    {
                        system("cls");
                        system("color 0F");
                        cout<<"\n\n\n\n\t\t\t\t\tGame Over!\n\n\n\n\n\n\n";
                        cout<<(char)7; 
                        Sleep(2000);
                        system("cls");
                        zhu();
                        x=3;
                        y=8;
                    }
                    else if(b[x+1][y-1]==0&&b[x+1][y]!=1)
                    {
                        b[x+1][y-1]=9;
                        b[x][y]=0;
                        x++;
                        y--;
                        system("cls");
                    }
                    else if(b[x][y-1]==1&&b[x-1][y-1]!=1)
                    {
                        b[x-1][y-1]=9;
                        b[x][y]=0;
                        x--;
                        y--;
                        system("cls");
                    }
                    else if(b[x][y-1]!=1)
                    {
                    b[x][y-1]=9;
                    b[x][y]=0;
                    y--;
                    system("cls");
                    }
                    else
                    {
                        system("cls");
                    }
                }
                else if(ch=='z'&&b[x-1][y]!=1)
                {
                    if(b[x-1][y]==6)
                    {
                        tia();
                    }
                    b[x][y]=1;
                    b[x-1][y]=9;
                    x-=1;
                    system("cls"); 

                 } 
                else if(ch=='d')
                {
                    if(b[x+1][y+1]==4)
                    {
                        b[x-4][y]==9;
                        b[x][y]=0;
                        x-=4;
                        system("cls");
                    }
                    else if(b[x][y+1]==6)
                    {
                        return 1;
                        b[x][y]=0;
                        y+=2;
                    }
                    f=2;
                    if(b[x+1][y+1]==8)
                    {
                        system("cls");
                        system("color 0F") ;
                        cout<<"\n\n\n\n\t\t\t\t\tGame Over!\n\n\n\n\n\n\n";
                        cout<<(char)7; 
                        Sleep(2000);
                        system("cls");
                        zhu();
                        x=8;
                        y=31;
                    }
                    else if(b[x+1][y+1]==0&&b[x-1][y+1]!=1)
                    {
                        b[x+1][y+1]=9;
                        b[x][y]=0;
                        x++;
                        y++;
                        system("cls");
                     } 
                     else if(b[x][y+1]==1&&b[x-1][y+1]!=1)
                     {
                        b[x-1][y+1]=9;
                        b[x][y]=0;
                        x--;
                        y++;
                        system("cls");
                     }

                     else if(b[x][y+1]!=1)
                     {
                        b[x][y+1]=9;
                    b[x][y]=0;
                    y++;
                    system("cls");
                     }
                     else {
                        system("cls");
                     }
                }
                else if(ch=='w'&&b[x-1][y]!=1&&(b[x][y+1]||b[x][y-1]==1)) 
                {
                    if(b[x-1][y]==6)
                    {
                        tia();
                    }
                    b[x-1][y]=9;
                    b[x][y]=0;
                    x--;
                    system("cls");
                }
                else if(ch=='s'&&b[x+1][y]!=1&&(b[x][y+1]==1||b[x][y-1]==1||b[x+1][y-1]==1||b[x+1][y+1]==1))
                {
                    b[x+1][y]=9;
                    b[x][y]=0;
                    x++;
                    system("cls");
                } 
                else 
                {
                    system("cls");
                }
            }
        }
int main()
{
    pf.jl=1; 
    H();
    pf.pi[1]="GD";
    ce(); 
    zhu(); 
HANDLE hstdin = GetStdHandle(STD_INPUT_HANDLE);
                            HANDLE hstdout = GetStdHandle(STD_OUTPUT_HANDLE);
    system("color 04");
    int x=8,y=31;
    char ch;
    int f;

                  while(1)
                  {
                for(int i=0;i<=10;i++)
                {
                    for(int j=0;j<=35;j++)
                    {
                        if (a[i][j]==6)
                        {
                            cout<<" @";
                          }
                        else if(a[i][j]==1)
                        {
                          SetConsoleTextAttribute(hstdout, 0x0C);
                            cout<<"OT";
                          } 

                          else if(a[i][j]==0)
                          {
                            cout<<"  ";
                          }
                          else if(a[i][j]==9)
                          {
                            SetConsoleTextAttribute(hstdout, 0x0E);
                            cout<<ren;
                          }
                          else if(a[i][j]==8)
                          { 
                          SetConsoleTextAttribute(hstdout, 0x0F);
                            cout<<"AA"; 
                          }
                      }
                      cout<<endl; 
                }
                ch=getch();
                if(ch=='o')
                {
                    cout<<"\n\n\n\n\n\n\n\t\t\t\t自杀成功!!" ;
                    cout<<(char)7; 
                    Sleep(2000);
                    system("cls");
                    x=8;
                    y=31;
                    zhu();

                }
                if(ch=='f')
                {
                    if(f==1&&a[x][y-1]==1)
                    {
                        a[x][y-1]=0;
                    }
                    else if(f==2&&a[x][y+1]==1)
                    {
                        a[x][y+1]=0;
                    }
                    system("cls");
                }
                else if(ch=='a')
                {
                    if(a[x][y-1]==6)
                    {
                        tia();
                        y++;
                    }
                    f=1;
                    if(a[x+1][y-1]==8)
                    {
                        system("cls");
                        system("color 0F");
                        cout<<"\n\n\n\n\t\t\t\t\tGame Over!\n\n\n\n\n\n\n";
                        cout<<(char)7; 
                        Sleep(2000);
                        system("cls");
                        zhu();
                        x=8;
                        y=31;
                    }
                    else if(a[x+1][y-1]==0&&a[x+1][y]!=1)
                    {
                        a[x+1][y-1]=9;
                        a[x][y]=0;
                        x++;
                        y--;
                        system("cls");
                    }
                    else if(a[x][y-1]==1&&a[x-1][y-1]!=1)
                    {
                        a[x-1][y-1]=9;
                        a[x][y]=0;
                        x--;
                        y--;
                        system("cls");
                    }
                    else if(a[x][y-1]!=1&&a[x][y-1]!=8)
                    {
                    a[x][y-1]=9;
                    a[x][y]=0;
                    y--;
                    system("cls");
                    }
                    else
                    {
                        system("cls");
                    }
                }
                else if(ch=='z'&&a[x-1][y]!=1)
                {
                    if(a[x-1][y]==6)
                    {
                        tia();
                        y++;
                    }
                    a[x][y]=1;
                    a[x-1][y]=9;
                    x-=1;
                    system("cls"); 

                 } 
                else if(ch=='d')
                {
                    if(a[x][y+1]==6)
                    {
                        tia();
                        a[x][y]=0;
                        y+=2;
                    }
                    f=2;
                    if(a[x+1][y+1]==8)
                    {
                        system("cls");
                        system("color 0F") ;
                        cout<<"\n\n\n\n\t\t\t\t\tGame Over!\n\n\n\n\n\n\n";
                        cout<<(char)7; 
                        Sleep(2000);
                        system("cls");
                        zhu();
                        x=8;
                        y=31;
                    }
                    else if(a[x+1][y+1]==0&&a[x-1][y+1]!=1)
                    {
                        a[x+1][y+1]=9;
                        a[x][y]=0;
                        x++;
                        y++;
                        system("cls");
                     } 
                     else if(a[x][y+1]==1&&a[x-1][y+1]!=1)
                     {
                        a[x-1][y+1]=9;
                        a[x][y]=0;
                        x--;
                        y++;
                        system("cls");
                     }

                     else if(a[x][y+1]!=1)
                     {
                        a[x][y+1]=9;
                    a[x][y]=0;
                    y++;
                    system("cls");
                     }
                     else {
                        system("cls");
                     }

                }
                else if(ch=='w'&&a[x-1][y]!=1&&(a[x][y+1]||a[x][y-1]==1)) 
                {
                    if(a[x-1][y]==6)
                    {
                        tia();
                    }
                    a[x-1][y]=9;
                    a[x][y]=0;
                    x--;
                    system("cls");
                }
                else if(ch=='s'&&a[x+1][y]!=1&&(a[x][y+1]==1||a[x][y-1]==1||a[x+1][y-1]==1||a[x+1][y+1]==1))
                {
                    a[x+1][y]=9;
                    a[x][y]=0;
                    x++;
                    system("cls");
                } 
                else 
                {
                    system("cls");
                }
                }
                return 0;
}

 

                                    暑假·快乐   行走作者祝大家获得皮肤:※ 

                                    另外 作者做跑酷地图了!!!!  


0
已采纳
曹博扬
曹博扬
初级天翼
初级天翼

好玩

但可以加一个弹框

你找一下

我以前给你发过代码

但是……

暑假作业……

有400面啊!!!

 

0
刘英杰
刘英杰
新手天翼
新手天翼

跑酷地图

估计将会成为《行走》的核心

因为只有跑酷才能让这个游戏有可玩性(doge)

另外,我回答完这条信息就资深守护了

庆祝一下?

0
0
潘晨皓
潘晨皓
高级天翼
高级天翼

暑假快乐!!!

不过作业也是多的恶心!!!

好好玩!放松了一下心情,真香

0
李瑞曦
李瑞曦
高级天翼
高级天翼

呜呜呜,

你们的暑假都那么快乐;

我却不同,

暑假作业都多得要死,还不能玩平板、不能睡懒觉,

一大堆补习班要上!

哪里快乐???!!!

【哭】😭

                  ------------------------------------------------------------------------------------------------------------------------

 

忘记说正事了:游戏挺好玩的,跑酷地图在哪里?发布出来呗!

0
0
0
尤博扬
尤博扬
初级光能
初级光能

不错啊,又更新了,不过活动还是有一点少,地图不错!

0
吴庞茂旭
吴庞茂旭
资深光能
资深光能

太长了吧!让你瞧瞧我未完工的计算器:

//网址:https://pan.baidu.com/s/1s2vJmHjBINWwM6X9MYq2SQ
//提取码:ynr9 

吴庞茂旭在2020-07-05 14:50:10追加了内容

问个问题:我要是想重复玩一个账号咋办?

吴庞茂旭在2020-07-05 14:51:59追加了内容

想想你也怪可怜的,颜色代码那么长。哎,还是给你个颜色函数吧,好好理解,自己试试。

void color(int a)//颜色函数
{
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);
}

 

0
包涵宇
包涵宇
中级天翼
中级天翼

439行

 else if(du==1)

改为

else if(dk=="ZXBBY111"&&du==1)

PS:大佬666!!!

0
0
我要回答