0
已解决
王子逸
新手天翼
新手天翼
修改了金币多扣的问题
解决了 血量 体力多出来一个0的问题
增加了一个新人物
调整了乱斗模式的选择界面
修复了靠打宠物来刷金币的bug
#include<windows.h>
#include<assert.h>
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<iomanip>
#include<iostream>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<stdint.h>
#include<tgmath.h>
#include<assert.h>
#define CLS SetPos(1000,1000)
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<iomanip>
#include<iostream>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<conio.h>
#include <winable.h>
#pragma GCC optimize(2)
using namespace std;
int yg,rr,gl,alg;//鱼干、肉肉、狗粮、奥利给
bool sfy;//是否有宠物
string cwm;//宠物名
int cwhgd;//好感度上限
int hgd;//好感度.
int ccfj=1;//额外金币获取;
bool sjm;//神秘猫buff
void cls(){
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
COORD coordScreen = { 0, 0 }; // home for the cursor
SetConsoleCursorPosition( hConsole, coordScreen );
}
void HideCursor(){
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO CursorInfo;
GetConsoleCursorInfo(handle, &CursorInfo);//获取控制台光标信息
CursorInfo.bVisible = false; //隐藏控制台光标
SetConsoleCursorInfo(handle, &CursorInfo);//设置控制台光标状态
}
void console()
{
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO bInfo;
GetConsoleScreenBufferInfo(hOut, &bInfo );
SetConsoleTitle("行走·重启未来"); // 设置窗口的标题
COORD size = {110, 30};//设置窗口大小
SetConsoleScreenBufferSize(hOut,size);
SMALL_RECT rc = {0,0, 110, 30};
SetConsoleWindowInfo(hOut,true ,&rc);
}
double xuxx;
string dhy;
int shj=0;
int dlxui=100;
int mpf;
int du=0;
int z=0;
bool jih=0;
char sr;
int tl=100;
HANDLE hOut;
string cheng;
int xuxxel=100,xuxxels=100;//故事模式血量和血量上限
int gok=20;//故事模式攻击
int gq=0;//故事模式金币
int fw[10];//攻击范围
int zl;
struct st{
string pi[41];
int jl;
}pf;
struct ld{
int rw;
int sh;
int hp;
string zy;
}p[10];
string name;
bool zy=0;
long long qi=100;
string ren="GD";
int m1[11][36]={{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,1},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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1,1,1,1,1},
{1,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,1},
{1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,1},
{1,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1},
{1,0,5,0,0,0,0,1,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,6,0,1},
{1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1},
{1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,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,0,0,0,0,0,0,1,0,0,0,1},
{1,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,0,0,0,0,0,0,1},
{1,0,0,0,1,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,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 zhu();
static void SetPos(int x, int y)
{
COORD point = { x, y };//光标要设置的位置x,y
HANDLE HOutput = GetStdHandle(STD_OUTPUT_HANDLE);//使用GetStdHandle(STD_OUTPUT_HANDLE)来获取标准输出的句柄
SetConsoleCursorPosition(HOutput, point);//设置光标位置
}
int weigs(string aas)
{
for(int i=0;i<aas.size();i++)
{
cout<<aas[i];
Sleep(100);
}
return 1;
}
void color(int corcorcor){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),corcorcor);
}
int shij()
{
system("cls");
cout<<"\n\n\n\n";
cout<<" \t\t\t欢迎来到ZBQ星际导航穿梭系统中心!\n";
Sleep(2000);
cout<<" \t\t请问你要去的地方是(1.水星 2.金星 3.地球 4.火星 5.土卫二 6总空间站)" ;
int csj;
cin>>csj;
// if(csj)
}
int wei(){
int xzkk;
system("cls");
cout<<"\t\t\t\t重启未来\n\n";
Sleep(1000);
cout<<"\t\t\t 欢迎来到未来\n";
Sleep(2000);
system("cls");
weigs("和平纪元342323年,第一颗Q状离子研发成功,这意味着,人类在以后的日子里,可以横跨整个太阳系,并且只在几秒之间。3001年后,这颗人类的骄傲,突然消失,人类系统通通瘫痪,世间一片荒凉!经过D342341X调查小队的报告,我们得知,Q状离子的碎片被藏在了宇宙的各个角落,你要去寻找到碎片,拯救人类!");
Sleep(2000);
system("cls");
while(1)
{
cout<<"\n\n\n\n \t\t \t|----------------------|\n";
cout<<" \t\t\t| 1.地图 2.碎片 3.退出 |\n";
cout<<" \t\t\t|----------------------|\n";
cout<<" \t\t\t选择:";
cin>>xzkk;
if(xzkk==1)
{
shij();//宇宙地图
}
if(xzkk==2)
{
//sueip();//碎片收集
}
else
{
return 1;
}
}
return 1;
}
string dhm()
{
dhy="";
char aba;
srand(time(NULL));
stringstream ss,kk,bb,aa,gg,jj,tt;
tt<<rand()%9+1;
tt>>aba;
dhy+=aba;
ss<<rand()%9+1;
ss>>aba;
dhy+=aba;
kk<<rand()%9+1;
kk>>aba;
dhy+=aba;
aa<<rand()%9+1;
aa>>aba;
dhy+=aba;
gg<<rand()%9+1;
gg>>aba;
dhy+=aba;
return dhy;
}
int bao()
{
cout<<"\n\t\t\t\t 存档已完成,请重启程序\n";
freopen("存档.txt","w",stdout);
cout<<qi<<"\n";
cout<<pf.jl<<"\n";
for(int i=1;i<=pf.jl;i++)
{
cout<<pf.pi[i]<<"\n";
}
cout<<zl<<"\n";
cout<<z<<"\n";
cout<<name<<"\n";
cout<<mpf<<"\n";
cout<<du<<"\n";
//cout<<cheng<<"\n";
cout<<ren<<"\n";
cout<<dlxui<<"\n";
cout<<yg<<endl<<rr<<endl<<gl<<endl<<alg;
cout<<cwhgd<<endl<<cwm<<endl<<hgd<<endl<<ccfj<<endl<<sfy;
fclose(stdout);//关闭文件
return 0;
}
int blz()
{
HideCursor();
int x1=6,y1=2,x2=5,y2=32;
while(p[1].hp>0&&p[2].hp>0)
{
for(int i=0;i<=10;i++)
{
for(int j=0;j<=35;j++)
{
if(bl[i][j]==1)
{
cout<<"HH";
}
else if(bl[i][j]==5)
{
cout<<p[1].zy;
}
else if(bl[i][j]==6)
{
cout<<p[2].zy;
}
else
{
cout<<" ";
}
}
cout<<endl;
}
cout<<"\t\t\t玩家1hp:"<<p[1].hp<<" "<<"\t\t"<<"玩家2hp:"<<p[2].hp<<" "<<endl;
sr=getch();
if(sr=='w'&&bl[x1-1][y1]==0)
{
bl[x1-1][y1]=5;
bl[x1][y1]=0;
x1-=1;
}
else if(sr=='a'&&bl[x1][y1-1]==0)
{
bl[x1][y1-1]=5;
bl[x1][y1]=0;
y1-=1;
}
else if(sr=='s'&&bl[x1+1][y1]==0)
{
bl[x1+1][y1]=5;
bl[x1][y1]=0;
x1+=1;
}
else if(sr=='d'&&bl[x1][y1+1]==0)
{
bl[x1][y1+1]=5;
bl[x1][y1]=0;
y1+=1;
}
else if(sr=='i'&&bl[x2-1][y2]==0)
{
bl[x2-1][y2]=6;
bl[x2][y2]=0;
x2-=1;
}
else if(sr=='j'&&bl[x2][y2-1]==0)
{
bl[x2][y2-1]=6;
bl[x2][y2]=0;
y2-=1;
}
else if(sr=='k'&&bl[x2+1][y2]==0)
{
bl[x2+1][y2]=6;
bl[x2][y2]=0;
x2+=1;
}
else if(sr=='l'&&bl[x2][y2+1]==0)
{
bl[x2][y2+1]=6;
bl[x2][y2]=0;
y2+=1;
}
if(sr=='m'&&fw[2]==0&&(x1==x2||y1==y2))
{
p[1].hp-=p[2].sh;
}
if(sr=='m'&&fw[2]>=sqrt(abs(x1-x2)*abs(x1-x2)+abs(y1-y2)*abs(y1-y2)))
{
p[1].hp-=p[2].sh;
}
if(sr=='z'&&fw[1]==0&&(x1==x2||y1==y2))
{
p[2].hp-=p[1].sh;
}
if(sr=='z'&&fw[1]>=sqrt(abs(x1-x2)*abs(x1-x2)+abs(y1-y2)*abs(y1-y2)))
{
p[2].hp-=p[1].sh;
}
cls();
}
if(p[1].hp<=0)
{
system("cls");
cout<<"\n\n\n\n\n\t\t\t玩家2胜利";
Sleep(1111);
system("cls");
return 1;
}
else
{
system("cls");
cout<<"\n\n\n\n\n\t\t\t玩家1胜利";
Sleep(1111);
system("cls");
return 1;
}
return 1;
}
int slz()
{
int x1=4,y1=2,x2=4,y2=33;
HideCursor();
while(p[1].hp>0&&p[2].hp>0)
{
for(int i=0;i<=10;i++)
{
for(int j=0;j<=35;j++)
{
if(sl[i][j]==1)
{
cout<<"HH";
}
else if(sl[i][j]==5)
{
cout<<p[1].zy;
}
else if(sl[i][j]==6)
{
cout<<p[2].zy;
}
else
{
cout<<" ";
}
}
cout<<endl;
}
cout<<"\t\t\t玩家1hp:"<<p[1].hp<<" "<<"\t\t"<<"玩家2hp:"<<p[2].hp<<" "<<endl;
sr=getch();
if(sr=='w'&&sl[x1-1][y1]==0)
{
sl[x1-1][y1]=5;
sl[x1][y1]=0;
x1-=1;
}
else if(sr=='a'&&sl[x1][y1-1]==0)
{
sl[x1][y1-1]=5;
sl[x1][y1]=0;
y1-=1;
}
else if(sr=='s'&&sl[x1+1][y1]==0)
{
sl[x1+1][y1]=5;
sl[x1][y1]=0;
x1+=1;
}
else if(sr=='d'&&sl[x1][y1+1]==0)
{
sl[x1][y1+1]=5;
sl[x1][y1]=0;
y1+=1;
}
else if(sr=='i'&&sl[x2-1][y2]==0)
{
sl[x2-1][y2]=6;
sl[x2][y2]=0;
x2-=1;
}
else if(sr=='j'&&sl[x2][y2-1]==0)
{
sl[x2][y2-1]=6;
sl[x2][y2]=0;
y2-=1;
}
else if(sr=='k'&&sl[x2+1][y2]==0)
{
sl[x2+1][y2]=6;
sl[x2][y2]=0;
x2+=1;
}
else if(sr=='l'&&sl[x2][y2+1]==0)
{
sl[x2][y2+1]=6;
sl[x2][y2]=0;
y2+=1;
}
if(sr=='m'&&fw[2]==0&&(x1==x2||y1==y2))
{
p[1].hp-=p[2].sh;
}
if(sr=='m'&&fw[2]>=sqrt(abs(x1-x2)*abs(x1-x2)+abs(y1-y2)*abs(y1-y2)))
{
p[1].hp-=p[2].sh;
}
if(sr=='z'&&fw[1]==0&&(x1==x2||y1==y2))
{
p[2].hp-=p[1].sh;
}
else if(sr=='z'&&fw[1]>=sqrt(abs(x1-x2)*abs(x1-x2)+abs(y1-y2)*abs(y1-y2)))
{
p[2].hp-=p[1].sh;
}
cls();
}
if(p[1].hp<=0)
{
system("cls");
cout<<"\n\n\n\n\n\t\t\t玩家2胜利";
Sleep(1111);
system("cls");
return 1;
}
else
{
system("cls");
cout<<"\n\n\n\n\n\t\t\t玩家1胜利";
Sleep(1111);
system("cls");
return 1;
}
return 1;
}
int ld1()
{
int dt;
system("cls");
cout<<"\t\t\t人物选择\n\n";
cout<<"\t\t\t\t玩家1:\n\t\t\t\t 1.射手(对大范围造成小部分伤害) \n \t\t\t\t 2.刺客(对小范围造成大量伤害) \n \t\t\t\t 3.坦克(极高的血量) \n\t\t\t\t 4.机器人(对同一行,列造成巨额伤害)\n";
cin>>p[1].rw;
if(p[1].rw==1)
{
p[1].zy="射";
fw[1]=4;
p[1].hp=100;
p[1].sh=5;
}
else if(p[1].rw==2)
{
p[1].zy="H ";
p[1].hp=100;
p[1].sh=20;
fw[1]=2;
}
else if(p[1].rw==3)
{
p[1].zy="盾";
p[1].hp=300;
p[1].sh=7;
fw[1]=2;
}
else
{
p[1].zy="≌";
p[1].hp=60;
p[1].sh=80;
fw[1]=0;
}
cout<<"\t\t\t\t玩家2:\n\t\t\t\t 1.射手(对大范围造成小部分伤害) \n \t\t\t\t 2.刺客(对小范围造成大量伤害) \n \t\t\t\t 3.坦克(极高的血量) \n\t\t\t\t 4.机器人(对同一行,列造成巨额伤害)\n";
cin>>p[2].rw;
if(p[2].rw==1)
{
p[2].zy="射";
fw[2]=4;
p[2].hp=100;
p[2].sh=5;
}
else if(p[2].rw==2)
{
p[2].zy="H ";
p[2].hp=100;
p[2].sh=20;
fw[2]=2;
}
else if(p[2].rw==3)
{
p[2].zy="盾";
p[2].hp=300;
p[2].sh=7;
fw[2]=2;
}
else
{
p[2].zy="≌" ;
p[2].hp=60;
p[2].sh=80;
fw[2]=0;
}
system("cls");
cout<<"\n\n\n\n\n\n\t玩家1控制:w,a,s,d 玩家2控制:i,j,k,l\n";
cout<<"\t\t玩家1:z键攻击 玩家2:m键攻击\n";
Sleep(7000);
system("cls");
cout<<"\n\n\n\n\n\n\t\t地图:1.壁垒攻守 2.森林寻敌";
cin>>dt;
system("cls");
for(int i=1;i<=4;i++)
{
cout<<"\n\n\n\n\n\n\n\n\t\t\t\t载入中";
for(int j=1;j<=3;j++)
{
cout<<".";
Sleep(200);
}
system("cls");
}
for(int i=0;i<=10;i++)
{
for(int j=0;j<=35;j++)
{
bl[i][j]=blf[i][j];
sl[i][j]=slf[i][j];
}
}
if(dt==1)
{
system("cls");
blz();
}
else if(dt==2)
{
system("cls");
slz();
}
return 1;
}
int gs()
{
system("cls");
cout<<"\n\n\t\t\t\t古树贡献榜(前5)\n\n";
cout<<"\t\t\t1.王文博\n\t\t\t2.邓涵睿\n\t\t\t3.沈峻宇\n\t\t\t4.余彦文\n\t\t\t5.曹博扬\n\t\t\t特别贡献:沙宸安\n";
cout<< "\n\t\t\t\t探索榜\n\t\t\t1.张恩泽\n";
system("pause");
return 1;
}
int gus()
{
system("cls");
int xz;
while(1)
{
cout<<" \t\t\t乱斗模式(多人)\n\n";
cout<<"\t\t[---------------------------------]\n";
cout<<"\t\t[ 1.双人 2.三人 3.古树 4.退出 ]\n";
cout<<"\t\t[---------------------------------]\n";
cout<<"\t\t\t您的选择:";
cin>>xz;
if(xz==1)
{
ld1();
}
if(xz==2)
{
cout<<"\n\t\t\t\t\t未开封";
Sleep(1500);
}
if(xz==3)
{
gs();
}
if(xz==4)
{
system("cls");
return 1;
}
system("cls");
}
return 1;
}
void H1()
{
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO CursorInfo;
GetConsoleCursorInfo(handle, &CursorInfo);
CursorInfo.bVisible = 1;
SetConsoleCursorInfo(handle, &CursorInfo);
}
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 dnjh()
{
cout<<"\n\n\n\n\t\t\t修改完后数据将重置 \n\t\t\t你想要的修改的金币数量(200000~-200000):";
cin>>qi;
if(qi>=200000)
{
qi=200000;
}
else if(qi<=-200000)
{
qi=-200000;
}
cwhgd=0;sfy=0;cwm="";
hgd=0;
cout<<"重置完成!";
system("cls");
zhu();
}
int cong()//宠物系统
{
srand(time(NULL));
while(1)
{
system("cls");
cout<<"\n\n\n\n\n\n\t\t\t欢迎来到宠物系统!\n";
if(sfy==0)
{
cout<<"请领养一个宠物:1.摇钱树(产出大量金币) 2.神秘猫(我也不知道能干什么) 3.作者的电脑(我劝你别费钱了)\n\t\t\t\t你的选择:";
int cuxuz;
cin>>cuxuz;
if(cuxuz==1)
{
sfy=1;
cwm="摇钱树";
cwhgd=10000;
}
if(cuxuz==2)
{
sfy=1;
cwm="神秘猫";
cwhgd=20000;
}
if(cuxuz==3)
{
sfy=1;
cwm="电脑(作者的)";
cwhgd=60000;
}
system("cls");
}
int sswww;
sswww=rand()%4+1;
string zt[5]={" ","饥饿","生气","开心","休息"};
cout<<"\n\n\n\n\n\n\t\t你的宠物:"<<cwm<<" 状态:"<<zt[sswww]<<"\n";
cout<<"\t\t\t好感度:"<<hgd<<"/"<<cwhgd;
if(cwhgd==10000)
{
if(hgd>=10000)
{
cout<<"\n\t\t\t\t已激活 摇钱树\n";
ccfj=3;
Sleep(2000);
cwhgd=0;sfy=0;cwm="";
hgd=0;
system("cls");
zhu();
}
}
if(cwhgd==20000&&hgd>=20000)
{
cout<<"\n\t\t\t\t已激活 神秘猫(随机增加金币!)\n";
sjm=1;
Sleep(2000);
cwhgd=0;sfy=0;cwm="";
hgd=0;
system("cls");
zhu();
}
if(cwhgd==60000&&hgd>=60000)
{
cout<<"\n\t\t\t\t已激活 作者的电脑(修改参数)\n";
dnjh();//激活电脑;
}
cout<<"\n\t\t\t1.喂养宠物 2.打宠物 3.带他出去遛弯 4.退出";
cout<<"\n\t\t选择:";
int cwxz;
cin>>cwxz;
if(cwxz==1)
{
system("cls");
cout<<"\n\n\n\n\n\n\t\t\t你有鱼干"<<yg<<"份 肉肉"<<rr<<"份 狗粮"<<gl<<"份 奥利给"<<alg<<"份";
cout<<"\n\t\t\t你要喂宠物(1.鱼干 2.肉肉 3.狗粮 4.奥利给)1份?";
int weis;
cin>>weis;
if(weis==1)
{
if(yg>=1)
{
yg-=1;
cout<<"\t\t\t好感度+100";
hgd+=100;
Sleep(1000);
}
else
{
cout<<"你为了你的宠物一口空气......";
Sleep(1500);
}
}
if(weis==2)
{
if(rr>=1)
{
rr-=1;
cout<<"\t\t\t好感度+300";
hgd+=300;
Sleep(1000);
}
else
{
cout<<"你为了你的宠物一口空气......";
Sleep(1500);
}
}
if(weis==3)
{
if(gl>=1)
{
gl-=1;
cout<<"\t\t\t好感度1000";
hgd+=1000;
Sleep(1000);
}
else
{
cout<<"你为了你的宠物一口空气......";
Sleep(1500);
}
}
if(weis==4)
{
if(alg>=1)
{
alg-=1;
int kkkka=rand()%9900+100;
cout<<"\t\t\t好感度+"<<kkkka;
hgd+=kkkka;
Sleep(1000);
}
else
{
cout<<"你喂了你的宠物一口空气......";
Sleep(1500);
}
}
}
if(cwxz==2)
{
if(hgd<0)
{
cout<<"\n\t\t\t你的宠物离家出走了,你为了找到他 消耗了1000金币";
qi-=1000;
Sleep(1400);
}
else
{
cout<<"\n\t\t\t你怕是有毛病 好感度-1000,金币+100";
hgd-=1000;
qi+=100;
Sleep(1400);
}
}
if(cwxz==3)
{
if(sswww==1||sswww==4)
{
cout<<"\n\t\t\t你的宠物很烦你 =_=";
Sleep(1000);
}
else
{
cout<<"\n\t\t\t你与宠物的好感度增加了20";
hgd+=20;
Sleep(1000);
}
}
else
{
system("cls");
return 1;
}
system("cls");
}
}
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]<<" ";
if(i==13)
cout<<endl;
}
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;
}
void hua()
{
system("color 70");
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\t\t源自极昼游戏工坊创建者\n";Sleep(1500);
cout<<"\t\t\t\t\t纯属虚构 本人原创\n";Sleep(1500);
cout<<"\t\t\t\t\t详情请见洛谷团队\n";Sleep(1500);
cout<<"\t\t\t\t 未来时代 是 行走 的13.1.02版本\n";Sleep(1500);
cout<<"\t\t\t\t为了大家的体验效果 请打开英文输入法\n";Sleep(1500);
cout<<"\t\t\t\t输入数据时核对一下 输入数字时不能有英文\n";Sleep(1500);
cout<<"\t\t\t\t360找到你的时候麻烦通过一下,程序可能被当成病毒了!\n";Sleep(2000);
cout<<"\t\t\t\t行走官方欢迎您游玩此游戏 谢谢!"; Sleep(5000);
system("cls");
system("color 07");
}
int ce()
{
int x=::MessageBox(NULL, TEXT(" 未来时代,开启!\n 科技无双"), TEXT("新版本!"), 0);
printf("%d\n", x);
z++;
hua();
cout<<"\t\t\t\t存档许可\n\n\n\n\n\n";
cout<<"\t\t\t 1.旧的存档 2.新的世界\n";
int cus1;
cin>>cus1;
system("cls");
if(cus1==1)
{
ifstream fin("存档.txt"); //输入重定向,输入数据将从in.txt文件中读取
fin>>qi;
fin>>pf.jl;
for(int i=1;i<=pf.jl;i++)
{
fin>>pf.pi[i];
}
fin>>zl;
fin>>z;
fin>>name;
fin>>mpf;
fin>>du;
//cin>>cheng;
fin>>ren;
fin>>dlxui;
fin>>yg>>rr>>gl>>alg;
fin>>cwhgd>>cwm>>hgd>>ccfj>>sfy;
fin.close();//关闭文件
system("cls");
return 1;
}
else
{
cout<<"\t\t\t\t获取信息\n\n\n\n\n\n";
cout<<"\t\t\t名字(无限制):";
cin>>name;
if(name=="张恩泽"||name=="zhangenze")
{
qi=4000;
z+=3;
pf.jl++;
pf.pi[pf.jl]="±";
ren="±";
}
else if(name=="XA-KF"||name=="xa-kf")
{
qi=10000;
z+=100;
pf.jl++;
pf.pi[pf.jl]="∞";
ren="∞";
cout<<"\n\t\t\t\t欢迎回来 沙宸安\n";
Sleep(1000);
}
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==dhy&&du==0)
{
du=1;
qi+=500;
cout<<"\t\t\t获得皮肤:";
srand(time(NULL));
int jgy;
jgy=rand()%5+1;
if(jgy==1)
{
cout<<"€";
z++;
pf.jl++;
pf.pi[pf.jl]="€";
ren="€";
}
else if(jgy==2)
{
cout<<"※";
z++;
pf.jl++;
pf.pi[pf.jl]="※";
ren="※";
}
else if(jgy==3)
{
cout<<"¢";
z++;
pf.jl++;
pf.pi[pf.jl]="¢";
ren="¢";
}
else if(jgy==4)
{
cout<<"£";
z++;
pf.jl++;
pf.pi[pf.jl]="£";
ren="£";
}
else
{
cout<<"¤";
z++;
pf.jl++;
pf.pi[pf.jl]="¤";
ren="¤";
}
cout<<"\n\t\t\t金币+500";
dhy="";
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;
}
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;
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--;
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--;
cls();
}
else if(s[x][y-1]!=1)
{
s[x][y-1]=9;
s[x][y]=0;
y--;
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;
cls();
}
else if(ch=='d')
{
if(s[x+1][y+1]==4)
{
s[x-4][y]==9;
s[x][y]=0;
x-=4;
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++;
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++;
cls();
}
else if(s[x][y+1]!=1)
{
s[x][y+1]=9;
s[x][y]=0;
y++;
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--;
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++;
cls();
}
else
{
system("cls");
}
}
}
int huo()
{
int jia;
int kk;
int zho;
int xuxxx;
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>>xuxxx;
if(xuxxx==1)
{
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<50)
{
cout<<"\t\t\t金币不够了哦!!!" ;
}
else
{
cout<<"\t\t\t没有中奖哦!!";
}
qi-=50;
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)
{
srand(time(NULL));
jia=rand()%15+1;
if(qi<60)
{
cout<<"\t\t金币不够了哦!!";
Sleep(1000);
}
else if(jia==3)
{
z++;
cout<<"\t\t啊啊啊,无情,兑换码是:";
cout<<dhm();
du=0;
Sleep(6000);
}
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);
}
qi-=60;
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)
{
int sxzy;
cout<<"\t\t 重启未来!\n";
cout<<"\t\t助力活动 \n";
cout<<" 规则:投入的金币数量决定助力值(1-10000)多了没效果\n";
cout<<"\t\t\t1.开始 2.退出\n";
cin>>sxzy;
int n,k;
if(sxzy==1)
{
cout<<"你都入的金币数量:";
cin>>n;
if(qi-n<0)
{
cout<<"\t\t\t没钱啦!";
Sleep(1000);
system("cls");
}
else
{
cout<<"\t\t\t助力成功!";
zl+=n;
cout<<"剩余助力值:"<<10000-zl;
qi-=n;
if(10000-zl<=0)
{
cout<<"助力完成!获得未来重启专属限定皮肤!▓技能 空间波动(身后的方块会变形)";
pf.jl++;
pf.pi[pf.jl]="▓";
Sleep(2000);
}
Sleep(2000);
system("cls");
}
}
else
{
system("cls");
return 1;
}
}
}
else if(h==5)
{
return 1;
}
}
return 1;
}
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.皮肤:め 价格500(闪烁之光)\n";
cout<<"\t\t10.皮肤:自定义 价格700\n";
cout<<"\t\t11.体力*100 价格10\n";
cout<<"\t\t12.体力*200 价格19\n";
cout<<"\t\t13.体力*500 价格49\n";
cout<<"\t\t14.体力*1000 价格90\n";
cout<<"\t\t15.宠物零食 鱼干 价格100\n";
cout<<"\t\t16.宠物零食 肉肉 价格200\n";
cout<<"\t\t17.宠物零食 狗粮!价格300\n";
cout<<"\t\t18.宠物零食 奥利给 价格500\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>=500)
{
z++;
ren="め";
qi-=500;
pf.jl++;
pf.pi[pf.jl]=ren;
}
else if(jj==9&&qi<500)
{
cout<<"没钱买什么皮肤?";
Sleep(1900);
}
if(jj==10&&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==10&&qi<700)
{
cout<<"没钱买什么皮肤?";
Sleep(1900);
}
if(jj==11&&qi>=10)
{
tl+=100;
}
else if(jj==11&&qi<10)
{
cout<<"没钱买什么体力?";
Sleep(1900);
}
if(jj==12&&qi>=19)
{
tl+=200;
qi-=19;
}
else if(jj==12&&qi<19)
{
cout<<"没钱买什么体力?";
Sleep(1900);
}
if(jj==13&&qi>=49)
{
tl+=500;
qi-=49;
}
else if(jj==13&&qi<49)
{
cout<<"没钱买什么体力?";
Sleep(1900);
}
if(jj==14&&qi>=90)
{
tl+=1000;
qi-=90;
}
else if(jj==14&&qi<90)
{
cout<<"没钱买什么体力?";
Sleep(1900);
}
if(jj==15&&qi>=100)
{
yg+=1;
qi-=100;
}
else if(jj==15&&qi<100)
{
cout<<"没钱也想养宠物?";
Sleep(1900);
}
if(jj==16&&qi>=200)
{
rr+=1;
qi-=200;
}
else if(jj==16&&qi<200)
{
cout<<"没钱也想养宠物?";
Sleep(1900);
}
if(jj==17&&qi>=300)
{
gl+=1;
qi-=300;
}
else if(jj==16&&qi<300)
{
cout<<"没钱也想养宠物?";
Sleep(1900);
}
if(jj==18&&qi>=500)
{
alg+=1;
qi-=400;
}
else if(jj==18&&qi<500)
{
cout<<"没钱也想养宠物?";
Sleep(1900);
}
if(jj==0)
{
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*ccfj;
if(sjm)
{
srand(time(NULL));
int qish=rand()%990+10;
qi+=qish;
}
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<<"体力值为0时就死了,体力可在商城中购买!!!\n";
Sleep(3000);
cout<<"神域不消耗体力,因为活动的是灵魂!!!\n";
Sleep(2500);
cout<<"版权所有,未经允许不得盗版,例:迷你世界盗版MC\n";
Sleep(6000);
system("cls");
}
int tia();
void sj1()
{
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;
}
cout<<"\t体力值:"<<tl<<" ";
ch=getch();
tl--;
/*if(shj%200==0&&zy!=1)
{
SetConsoleTextAttribute(hOut, BACKGROUND_RED |BACKGROUND_GREEN |BACKGROUND_BLUE |BACKGROUND_INTENSITY);
zy=1;
}
else if(shj%200==0&&zy!=0)
{
system("color 80");
zy=0;
}*/
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(tl<=0)
{
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;
}
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;
}
cls();
}
else if(ch=='a')
{
if(tl<=0)
{
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;
}
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--;
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--;
cls();
}
else if(a[x][y-1]!=1&&a[x][y-1]!=8)
{
a[x][y-1]=9;
a[x][y]=0;
y--;
cls();
}
else
{
system("cls");
}
}
else if(ch=='z'&&a[x-1][y]!=1)
{
if(tl<=0)
{
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;
}
if(a[x-1][y]==6)
{
tia();
y++;
}
a[x][y]=1;
a[x-1][y]=9;
x-=1;
cls();
}
else if(ch=='d')
{
if(tl<=0)
{
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;
}
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++;
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++;
cls();
}
else if(a[x][y+1]!=1)
{
a[x][y+1]=9;
a[x][y]=0;
y++;
cls();
}
else {
system("cls");
}
}
else if(ch=='w'&&a[x-1][y]!=1&&(a[x][y+1]||a[x][y-1]==1))
{
if(tl<=0)
{
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;
}
if(a[x-1][y]==6)
{
tia();
}
a[x-1][y]=9;
a[x][y]=0;
x--;
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))
{
if(tl<=0)
{
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;
}
a[x+1][y]=9;
a[x][y]=0;
x++;
cls();
}
else
{
system("cls");
}
shj++;
}
}
int zhu()
{
xuxx=100;
while(1)
{
if(ren=="死")
{
system("color 07");
cout<<"\n\n\n\n|-------------------------------------------------------------------------------------------------|\n";
cout<<"| 1.新游戏 2.规则 3.商城 4.活动 5.死域 6.兑换码 7.仓库 8.资历 9.乱斗模式 10.未来 11.保存 12.宠物 |\n";
cout<<"| 作者——王子逸|\n";
cout<<"|-------------------------------------------------------------------------------------------------|\n\t\t选择:";
H1();
cin>>xuxx;
if(xuxx==1)
{
system("cls");
suo();
H();
sj1();
}
else if(xuxx==2)
{
system("cls");
gui();
}
else if(xuxx==3)
{
sh();
}
else if(xuxx==4)
{
huo();
}
else if(xuxx==5)
{
for(int i=0;i<=10;i++)
{
for(int j=0;j<=35;j++)
{
s[i][j]=sf[i][j];
}
}
H();
si();
}
else if(xuxx==6)
{
dui();
}
else if(xuxx==7)
{
cang();
}
else if(xuxx==8)
{
zi();
}
else if(xuxx==9)
{
gus();
}
else if(xuxx==10)
{
wei();
}
else if(xuxx==11)
{
bao();
}
if(xuxx==12)
{
cong();
}
else
{
system("cls");
}
}
else{
system("color 07");
cout<<"\n\n\n\n\t|---------------------------------------------------------------------------------------------------|\n";
cout<<"\t| 1.新游戏 2.规则 3.商城 4.活动 5.兑换码 6.仓库 7.资历 8.乱斗模式 9.未来 10.保存 11.宠物|\n";
cout<<"\t| 作者——永恒白昼(王子逸) |\n";
cout<<"\t|---------------------------------------------------------------------------------------------------|\n\t\t选择:";
H1();
cin>>xuxx;
if(xuxx==1)
{
system("cls");
suo();
H();
sj1();
}
else if(xuxx==2)
{
system("cls");
gui();
}
else if(xuxx==3)
{
sh();
}
else if(xuxx==4)
{
huo();
}
else if(xuxx==5)
{
dui();
}
else if(xuxx==6)
{
cang();
}
else if(xuxx==7)
{
zi();
}
else if(xuxx==8)
{
gus();
}
else if(xuxx==9)
{
wei();
}
else if(xuxx==10)
{
bao();
}
if(xuxx==11)
{
cong();
}
else
{
system("cls");
}
}
}
}
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;
}
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;
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--;
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--;
cls();
}
else if(b[x][y-1]!=1)
{
b[x][y-1]=9;
b[x][y]=0;
y--;
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;
cls();
}
else if(ch=='d')
{
if(b[x+1][y+1]==4)
{
b[x-4][y]==9;
b[x][y]=0;
x-=4;
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++;
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++;
cls();
}
else if(b[x][y+1]!=1)
{
b[x][y+1]=9;
b[x][y]=0;
y++;
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--;
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++;
cls();
}
else
{
system("cls");
}
}
}
int main()
{
console();
hOut = GetStdHandle(STD_OUTPUT_HANDLE);
pf.jl=1;
H();
pf.pi[1]="GD";
ce();
zhu();
return 0;
}
王子逸在2021-05-31 18:54:55追加了内容
行走该版本的EXE文件下载点这里!
王子逸在2021-05-31 20:27:03追加了内容
公告:3人乱斗已经在修改与测试阶段了!,你们期待的3人乱斗很快就可以完工啦!>_<