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,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
};
int High[500];
int mhigh[100];
//0可通行 1墙 2宝藏 3陷阱
int mm[40][40];
const char sd[]={' ','#','B','X'};
const char ch[]={' ','#','B','F','S','H','R'};
int teea;
void Getrmap(float a,int k)
{
cls();
for(int i=1;i<=90;i++)
{
gotoxy((101-mhigh[i]),i);
cout<<"-";
}
}
void run()
{
float mh=0.0;
int i,j,k=1,l=1,r=90,time=0;
for(i=5;i<=450;i++)
if (rand()%((High[i-1]/15+1))||High[i-1]>=50)
High[i]=random(0,High[i-1])%100;
else
High[i]=High[i-1]+1;
for(i=l,j=1;i<=r;i++,j++)
mhigh[j]=High[i];
Getrmap(0.0,1);
while(k<=450)
{
char a='?';
if (kbhit())
a=getch();
gotoxy(60,50);
cout<<(k/450.0)*100.0<<"%\t\t\t"<<(float)time/20.0<<"s\t\t\tH:"<<mh<<"\t\t\t";
time++;
switch(a)
{
case 'a':if (k>1&&mhigh[(k+1)%90-2]<=mh)k--;break;
case 'd':if (k<450&&mhigh[(k+1)%90]<=mh)k++;break;
case ' ':if (abs(mh)==mhigh[(k+1)%90-1])mh+=1.5;break;
case 'e':return;
}
if (k%90==0)
{
k++;
l=k+1;
r=l+90;
for(i=l,j=1;i<=r;i++,j++)
mhigh[j]=High[i];
Getrmap(mh,(k+1)%90-1);
}
if (mh-0.4>mhigh[(k+1)%90-1])
mh-=0.4;
else
mh=mhigh[(k+1)%90-1];
gotoxy(100-mh,(k+1)%90-1);
cout<<"O";
Sleep(50);
gotoxy(100-mh,(k+1)%90-1);
cout<<" ";
if (k>=450)
break;
}
gotoxy(0,50);
cout<<"恭喜你到达了终点!";
Sleep(2000);
gs();
cout<<"奖品:";
k=random(4,6);
j=random(2,30);
cout<<fsn[k]<<'*'<<j;
fost[k]+=j;
k=random(10000,500000);
j=random(5000,80000);
cout<<' '<<"XP*"<<k<<" money*"<<j;
things[1]+=k;
things[7]+=j;
gs();
Getmap();
}
void SD()
{
use(75);
int i,j,k,n,m,a,b;
cout<<"生成地图中...";
while(1)
{
for(i=0;i<40;i++)
memset(mm[i],0,sizeof(mm));
for(i=0;i<40;i++)
mm[0][i]=1,mm[i][0]=1,mm[i][39]=1,mm[39][i]=1;
switch(things[21])
{
case 1:m=random(50,87);break;
case 2:m=random(74,91);break;
case 3:m=random(85,123);break;
case 4:m=random(115,163);break;
}
for(i=1;i<=m;i++)
{
do
{
j=random(1,39);
k=random(1,39);
}
while(mm[j][k]!=0);
mm[j][k]=3;
}
int q=random(330,580);
for(i=1;i<=q;i++)
{
do
{
j=random(1,39);
k=random(1,39);
}
while(mm[j][k]!=0);
mm[j][k]=1;
}
do
{
j=random(1,39);
k=random(1,39);
}
while(mm[j][k]!=0||(j==1||k==1));
mm[j][k]=2;
a=j,b=k;
teea=1;
break;
}
cls();
for(i=0;i<40;i++)
{
for(j=0;j<40;j++)
{
color(7);
if (mm[i][j]==2)
color(0);
printf("%c",sd[mm[i][j]]);
}
printf("\n");
}
int x=1,y=1,zd=5;
bool find=1;
while(find)
{
gotoxy(x,y);
cout<<"o";
char l=_getch();
if (l=='w'||l=='s'||l=='a'||l=='d')
{
gotoxy(x,y);
cout<<" ";
}
switch(l)
{
case 'w':if (x>1&&mm[x-1][y]!=1) x--;break;
case 's':if (x<40&&mm[x+1][y]!=1)x++;break;
case 'a':if (y>1&&mm[x][y-1]!=1)y--;break;
case 'd':if (y<40&&mm[x][y+1]!=1)y++;break;
case 'q':if (zd)
{
for(i=x-1;i<=x+1;i++)
for(j=y-1;j<=y+1;j++)
if (mm[i][j]==1||mm[i][j]==3)
{
mm[i][j]=0;
gotoxy(i,j);
cout<<" ";
}
zd--;
}
break;
case 'e':cls();return;
}
switch(mm[x][y])
{
case 2:
{
int c,d;
c=rand()%3+4;
d=rand()%15+5;
printf("恭喜你找到了宝藏!获得:%s*%d",fsn[c].c_str(),d);
fost[c]+=d;
c=rand()%10000+1000;
d=rand()%8000+500;
cout<<' '<<"XP*"<<c<<" money*"<<d;
things[1]+=c;
things[7]+=d;
find=false;
break;
}
case 3:
{
happened+=(name+"在探索神殿时踩中陷阱/");
Die();
return;
}
}
gotoxy(43,0);
cout<<"B 宝藏 o你 #墙 X陷阱\n";
cout<<"WASD移动,E退出,Q使用炸弹\n";
cout<<"炸弹剩余:"<<zd<<endl;
printf("你(%d,%d) 宝藏(%d,%d)",x,y,a,b);
}
gs();
Getmap();
}
void Divinity()
{
use(76);
int a,b;
int i,j,k;
int n,m;
int x=1,y=1;
Getmap();
while(1)
{
gotoxy(x,y);
cout<<"o";
char l=_getch();
if (l=='w'||l=='s'||l=='a'||l=='d')
{
gotoxy(x,y);
cout<<" ";
}
switch(l)
{
case 'w':if (x>1&&dm[x-1][y]!=1) x--;break;
case 's':if (x<44&&dm[x+1][y]!=1)x++;break;
case 'a':if (y>1&&dm[x][y-1]!=1)y--;break;
case 'd':if (y<110&&dm[x][y+1]!=1)y++;break;
}
switch(dm[x][y])
{
case 2:if ((MessageBox(NULL,TEXT("确定返回主世界吗?"),TEXT("传送NPC"),MB_YESNO)==IDYES))return;break;
case 4:if ((MessageBox(NULL,TEXT("确定前往星墓吗?"),TEXT("传送NPC"),MB_YESNO)==IDYES))hole();break;
case 5:if ((MessageBox(NULL,TEXT("是否获取帮助?"),TEXT("HELP"),MB_YESNO)==IDYES))help();break;
}
}
}
void Getmap()
{
use(77);
gotoxy(0,0);
int i,j;
for(i=0;i<44;i++)
{
for(j=0;j<110;j++)
{
printf("%c",ch[dm[i][j]]);
}
printf("\n");
}
}
int WAR()
{
use(78);
int mh=things[5]*random(16,30),ma=things[5],mc=things[6];
int sah=0,aa=things[9]*random(2,4),ac=things[9]*random(1,2),bn=0;
int time=0,sh;
int x,y,x1,y1;
x=1,y=1;
x1=1,y1=5;
int cs=0;
int ae=0,aad=0;
while(mh>0&&time<=90)
{
cls();
int X=aa,Y=ac;
aa*=(1+bn*5);
ac*=(1+bn*3);
color(0);
cs++;
gotoxy(0,0);
cout<<"伤害:"<<sah<<"\t狂暴层数:"<<bn<<"\t剩余时间:"<<90-time<<"s\t剩余血量:"<<mh<<"AIENERGY:"<<ae<<"\n";
cout<<"======================================================\n";
char l='l';
if (kbhit())
l=getch();
gotoxy(x,y);
color(4);
cout<<"♀";
gotoxy(x1,y1);
color(7);
cout<<"♀";
color(0);
switch(l)
{
case 'w':if (x>2)x--;break;
case 'a':if (y>2)y--;break;
case 's':if (x<40)x++;break;
case 'd':if (y<80)y++;break;
case ' ':
if (x-x1<=5&&x1-x<=5&&y-y1<=5&&y1-y<=5)
{
sh=ma-ac;
gotoxy(x1-2,y1);
cout<<'-'<<sh;
sah+=sh;
gotoxy(x-1,y);
cout<<'+'<<sh*0.2;
sh*=0.2;
mh+=sh;
int dc=random(15,32);
ae+=dc,aad+=dc;
}
}
if (rand()%2)
x1+=(x>x1);
else
y1+=(y>y1);
if (rand()%2)
{
if (x-x1<=5&&x1-x<=5&&y-y1<=5&&y1-y<=5)
{
sh=aa-mc;
gotoxy(x-2,y);
cout<<'-'<<sh;
mh-=sh;
}
}
if (sah/10000>bn)
bn++;
if (ae>=1000)
{
gotoxy(40,35);
cout<<"湮灭枷锁";
sh=aa*2;
float ls=random(30,70)/100.0;
if (aad<300)
sh*=(1+ls);
else
sh*=(1+ls*5);
ae*=(1-ls);
gotoxy(x-2,y);
cout<<'-'<<sh;
Sleep(500);
mh-=sh;
ae=0;
}
if (cs%10==0)
{
time++;
if (time%8==0)
{
gotoxy(40,35);
cout<<"黑域之旅";
gotoxy(x-1,y-2);
color(3);
cout<<"()";
gotoxy(x,y);
cout<<" ";
color(4);
Sleep(1000);
x=random(x-4,x+4);
y=random(y-4,y+4);
gotoxy(x,y);
cout<<"♀";
sh=aa*2;
if (aad>=1000)
sh*=1.5;
gotoxy(x-2,y);
cout<<'-'<<sh;
mh-=sh;
color(4);
}
if (time%10==0)
{
gotoxy(40,35);
cout<<"异界怒雷";
gotoxy(x-5,y-2);
cout<<"()";
gotoxy(x-4,y);
cout<<"|";
gotoxy(x-3,y);
cout<<"|";
gotoxy(x-2,y);
cout<<"|";
gotoxy(x-1,y);
cout<<"|";
gotoxy(x,y);
cout<<"|";
gotoxy(x+1,y);
cout<<"|";
gotoxy(x+2,y);
cout<<"|";
gotoxy(x+3,y);
cout<<"|";
gotoxy(x+4,y);
cout<<"|";
gotoxy(x+5,y-2);
cout<<"()";
gotoxy(x,y-7);
cout<<"()";
gotoxy(x,y-2);
cout<<"-";
gotoxy(x,y-1);
cout<<"-";
gotoxy(x,y);
cout<<"-";
gotoxy(x,y+1);
cout<<"-";
gotoxy(x,y+2);
cout<<"-";
gotoxy(x,y+3);
cout<<"()";
sh=aa*2.4;
Sleep(450);
gotoxy(x-2,y);
cout<<"-"<<sh;
if (aad>=2000)
ma*=0.96;
mh-=sh;
}
}
Sleep(23);
aa=X,ac=Y;
}
return sah;
}
void hole()
{
use(79);
cls();
cout<<"星墓守门人技能(根据伤害发放奖励)\n";
cout<<"湮灭枷锁:用湮灭能量对敌人造成200%攻击伤害并损失30~70%能量,自身每损失1%能量,伤害提高1%\n";
cout<<"黑域之旅:打开亚空间之门将敌人传送至星墓,一秒后从空中落下造成160%攻击伤害并短暂眩晕\n";
cout<<"异界怒雷:从多道亚空间之门中召唤怒雷,造成220%攻击水平伤害\n";
cout<<"邪神之眼:当能量累计恢复300/1000/2000时睁开一只邪神之眼,第一只眼使“湮灭枷锁”的伤害提高改为5%,第二只眼使“黑域之旅”的伤害提高50%,第三只眼使被“异界怒雷”命中的敌人降低4%攻击\n\n";
cout<<"狂暴:每受到一定伤害,叠加一层能力效果\n";
cout<<"复制之躯:开场时自身的血量无限,等级同敌人一样\n";
cout<<"异界控制:敌人的技能全部无效(吸血鬼之牙除外)\n\n\n";
cout<<"你:吸血鬼之牙:吸血+20%\n";
gs();
long long n=WAR();
int money=n*0.008;
int XP=n*0.009;
int kw=n*0.0001,kW=random(4,6);
cout<<"获得:"<<fsn[kW]<<'*'<<kw<<' '<<"钱*"<<money<<" 经验*"<<XP;
Sleep(3000);
things[7]+=money,things[1]+=XP;
fost[kW]+=kw;
gs();
Getmap();
return;
}
void help()
{
use(80);
cls();
cout<<"wasd移动(你是'o'),以下为各种符号代表的东西\n";
cout<<"# 墙,不可以通过\n";
cout<<"B 返回点\n";
cout<<"F 出生点\n";
cout<<"S 星墓\n";
cout<<"H 帮助\n";
gs();
Getmap();
}
void delp()
{
use(81);
cls();
cout<<"wasd移动(你是'o'),以下为各种符号代表的东西\n";
cout<<"# 墙,不可以通过\n";
cout<<"B 返回点\n";
cout<<"F 出生点\n";
cout<<"S 神殿\n";
cout<<"R 登山跑酷\n";
cout<<"H 帮助\n";
gs();
Getmap();
}
void Hell()
{
use(82);
int a,b;
int i,j,k;
int n,m;
int x=1,y=1;
Getmap();
while(1)
{
gotoxy(x,y);
cout<<"o";
char l=_getch();
if (l=='w'||l=='s'||l=='a'||l=='d')
{
gotoxy(x,y);
cout<<" ";
}
switch(l)
{
case 'w':if (x>1&&dm[x-1][y]!=1) x--;break;
case 's':if (x<44&&dm[x+1][y]!=1)x++;break;
case 'a':if (y>1&&dm[x][y-1]!=1)y--;break;
case 'd':if (y<110&&dm[x][y+1]!=1)y++;break;
}
switch(dm[x][y])
{
case 2:if ((MessageBox(NULL,TEXT("确定返回主世界吗?"),TEXT("传送NPC"),MB_YESNO)==IDYES))return;break;
case 4:if ((MessageBox(NULL,TEXT("确定前往神殿吗?"),TEXT("传送NPC"),MB_YESNO)==IDYES))SD();break;
case 5:if ((MessageBox(NULL,TEXT("是否获取帮助?"),TEXT("HELP"),MB_YESNO)==IDYES))help();break;
case 6:if ((MessageBox(NULL,TEXT("确定前往登山跑酷吗?"),TEXT("传送NPC"),MB_YESNO)==IDYES))run();Getmap();break;
}
}
}
bool dalie()
{
use(51);
cls();
int n,i,j,k,m=6;
int x=25,y=25,x1=5,y1=5;
while(1)
{
cout<<"按k键射击,wasd控制\n";
cout<<"你还有"<<m<<"发子弹\n";
char l=' ';
if (kbhit())
l=getch();
switch(l)
{
case 'w':x-=random(2,5);break;
case 's':x+=random(2,5);break;
case 'a':y-=random(2,5);break;
case 'd':y+=random(2,5);break;
case 'k':m--;if (x==x1&&y==y1||x-1==x1&&y1==y||x+1==x1&&y==y)return 1;
default:break;
}
if (m<=0)
return 0;
srand(time(0));
if (m!=3||(m==3&&rand()%10==7))
n=rand()%4+1;
switch(n)
{
case 1:x1-=random(1,3);break;
case 2:x1+=random(2,4);break;
case 3:y1-=random(1,3);break;
case 4:y1+=random(2,4);break;
}
gotoxy(x,y-3);
cout<<"-- ·--";
gotoxy(x-1,y);
cout<<"|";
gotoxy(x-2,y);
cout<<"|";
gotoxy(x+1,y);
cout<<"|";
gotoxy(x+2,y);
cout<<"|";
gotoxy(x1-1,y1);
cout<<"---";
gotoxy(x1,y1);
cout<<"| |";
gotoxy(x1+1,y1);
cout<<"---";
if (x>40)
x=40;
if (y>50)
y=50;
if (x1>40)
x1=40;
if (y1>40)
y1=40;
if (x<5)
x=5;
if (y<5)
y=5;
if (x1<5)
x1=5;
if (y1<5)
y1=5;
Sleep(20);
cls();
}
return 1;
}
const int map[][3][3]=
{
{
1,1,1,
1,1,1,
1,1,1,
},
{
0,-1,-1,
-1,-1,-1,
-1,-1,-1,
},
{
1,-1,-1,
1,-1,-1,
-1,-1,-1,
},
{
-2,-2,-2,
-2,-2,-2,
-2,-2,-2,
},
{
24,-1,-1,
-1,-1,-1,
-1,-1,-1,
},
{
25,-1,-1,
-1,-1,-1,
-1,-1,-1,
},
{
26,-1,-1,
-1,-1,-1,
-1,-1,-1,
},
{
1,1,1,
-1,2,-1,
-1,2,-1,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2,-1,
},
{
24,25,26,
-1,2,-1,
-1,2,-1,
},
{
26,25,-1,
24,2,-1,
-1,2,-1,
},
{
31,31,31,
31,-1,31,
-1,-1,-1,
},
{
28,-1,28,
28,28,28,
28,28,28,
},
{
29,29,29,
29,-1,29,
29,-1,29,
},
{
-1,-1,-1,
38,-1,38,
38,-1,38,
},
{
-1,43,-1,
-1,43,-1,
-1,2,-1,
},
{
44,44,44,
-1,2,-1,
-1,2,-1,
},
{
45,45,-1,
45,2,-1,
-1,2,-1,
},
{
-1,56,-1,
26,55,26,
-1,54,-1,
},
{
3,3,3,
3,3,3,
3,3,3,
},
{
24,24,24,
26,56,26,
56,54,56,
},
{
-1,-1,-1,
6,6,4,
-1,-1,-1,
},
人生之路代码6
最新推荐文章于 2024-08-02 10:25:30 发布