有点小长(1152行,24103个字符) 

制作不易,请勿抄袭

未完待续

简介

玩家在游戏中控制一个角色在废弃医院中进行探险和战斗。以下是这个游戏的玩法说明:

  1. 起始设置:玩家在废弃医院的房间中醒来,可以选择与旁边的熟睡人互动或离开房间。选择离开房间后,玩家获得一根木棍和一些金币,可以选择拿上木棍,开始冒险之旅。

  2. 战斗系统:玩家会遇到不同种类的丧尸,如日本丧尸、肿瘤丧尸、双剑丧尸等,可以选择攻击或逃跑。在战斗中,玩家可以选择不同的武器和护甲来提升伤害和防御能力,战斗中双方会互相造成伤害,直到一方血量降至0。

  3. 商店系统:玩家可以在游戏中的自动售卖机购买武器、护甲和血量恢复道具,金币可以在商店中使用。购买不同的装备可以提升玩家在战斗中的生存能力。

  4. 血量恢复:玩家可以在游戏中获得血袋、血瓶、血包和血箱等道具来恢复血量,不同道具恢复的血量量不同。

  5. 最终BOSS战:玩家在游戏中会遇到强大的BOSS丧尸,如死亡追踪者ex,需要与之进行决战。玩家需要在战斗中选择合适的战斗策略和装备来击败BOSS,获得游戏的胜利。

  6. 游戏胜利:当玩家成功击败最终BOSS后,游戏会通知玩家获得胜利,并展示游戏的结局。

这是一个基于文字冒险和战斗的游戏,玩家需要在游戏中不断提升自己的装备和策略,战胜各种丧尸,最终挑战强大的BOSS,体验冒险的乐趣。希望这个玩法说明能帮助您更好地理解这个游戏的玩法机制。如果您有任何疑问或需要进一步解释,请随时告诉我。

代码

#include <bits/stdc++.h>
#include <windows.h>
#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
#define random(a,b) (rand()%(b-a+1)+a)
using namespace std;
int au=10;
int xue=100;
int wuqi[9] = {2,4,5,7,9,9,12,14,16};
string wuqi_name[9]= {"手","木棍","铁管","菜刀","消防斧","铁锤","《蝴蝶刀》","《古剑》","《《天狼双节棍》》"};
int wu=0;
int fangjv[6] = {0,2,4,6,10,13};
string fang_name[9]= {"白衣","厚重羽绒服","警用防弹衣","军用防弹衣","防爆服","《《狼牌战斗服》》"};
int fa=0;
int jxue[4] = {16,34,50,100};
string jxue_nmae[4]= {"血袋","血瓶","血包","血箱"};
int jx;
void sc(string text, int shi) {
	for (int i=0; i<text.size(); i++) {//侵权必究
		cout<<text[i];
		Sleep(shi);
	}
	return;
}
void zangboII() {
	srand((unsigned)time(NULL));
	int c;
	int sui=random(1,3);
	string text;
	int dx=25;
	if(sui==1) {

		text="你遇到了一个日本丧尸";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;
		cout<<"1.攻击 2.逃跑"<<endl;

		cin>>c;
		cout<<endl;
		system("pause") ;
		system("cls");
		if(c==1) {
			int x=xue;
			cout<<"获得血脉加持buff"<<endl;
			cout<<"获得抗战精神buff"<<endl;
			cout<<"获得血脉觉醒buff"<<endl;
			cout<<"获得祖宗疆土buff"<<endl;
			cout<<"获得力量buff"<<endl;
			cout<<"获得速度buff"<<endl;
			cout<<"获得幸运buff"<<endl;

			cout<<"获得领域buff"<<endl<<endl<<endl;
			while(1) {
				cout<<"你对它造成了"<<wuqi[wu]+3+3+3+3+3+3<<"点伤害。"<<endl;
				dx-=wuqi[wu];
				if(dx<=0) {
					cout<<"他没了";//侵权必究
					cout<<"你获得了"<<25<<"金币"<<endl;
					au+=25;
					break;//侵权必究
				}
				cout<<"你受了"<<max(1,10-fangjv[fa])<<"点伤害。"<<endl;
				xue-=max(1,10-fangjv[fa]);//侵权必究
				cout<<"<<祖宗保佑>>   血+5"<<endl;
				xue+5;
				if(xue<=0) {
					cout<<"你没了";
					break;
				}
			}
			system("pause");
			system("cls");//侵权必究
		} else {
			sui=random(1,3);
			if(sui==3) {
				cout<<"逃跑不是太成功   -10血"<<endl;
				system("pause");
				system("cls");//侵权必究
				xue-=10;
			} else {
				cout<<"逃跑成功"<<endl;
				system("pause");
				system("cls");//侵权必究
			}
		}
	} else if(sui==2) {

		int dx=4;
		text="你遇到了一个肉瘤丧尸";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;
		cout<<"1.攻击 2.逃跑"<<endl;
		cin>>c;
		cout<<endl;
		system("pause") ;
		system("cls");
		if(c==1) {
			int x=xue;
			while(1) {
				cout<<"你对它造成了"<<wuqi[wu]<<"点伤害。"<<endl;
				dx-=wuqi[wu];
				if(dx<=0) {
					cout<<"他爆炸了";//侵权必究
					int zha=random(3,14);
					cout<<"你受到了"<<zha<<"点伤害"<<endl;
					xue-=zha;
					cout<<"你获得了"<<34<<"金币"<<endl;
					au+=34;
					break;//侵权必究
				}
				cout<<"你受了"<<max(1,10-fangjv[fa])<<"点伤害。"<<endl;
				xue-=max(1,10-fangjv[fa]);//侵权必究
				if(xue<=0) {
					cout<<"你没了";
					break;
				}
			}
			system("pause");
			system("cls");//侵权必究
		} else {
			sui=random(1,3);
			if(sui==3) {
				cout<<"逃跑不是太成功   -10血"<<endl;
				system("pause");
				system("cls");//侵权必究
				xue-=10;
			} else {
				cout<<"逃跑成功"<<endl;
				system("pause");
				system("cls");//侵权必究
			}
		}
	} else {
		int dx=10;
		text="你遇到了一个双剑丧尸";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;
		cout<<"1.攻击 2.逃跑"<<endl;
		cin>>c;
		cout<<endl;
		system("pause") ;
		system("cls");
		if(c==1) {
			int x=xue;
			while(1) {
				cout<<"你对它造成了"<<wuqi[wu]<<"点伤害。"<<endl;
				dx-=wuqi[wu];
				if(dx<=0) {
					cout<<"他没了";//侵权必究
					cout<<"你获得了"<<16<<"金币"<<endl;
					cout<<"你获得了铁锤"<<endl;
					cout<<"1.拿上"<<endl;
					cin>>c;
					cout<<endl;
					system("pause") ;
					system("cls");
					if(c==1) {
						wu=4;
					}
					au+=16;
					break;//侵权必究
				}
				cout<<"你受了"<<max(1,2-fangjv[fa])<<"点伤害。"<<endl;
				xue-=max(1,2-fangjv[fa]);//侵权必究
				if(xue<=0) {
					cout<<"你没了";
					break;
				}
			}
			system("pause");
			system("cls");//侵权必究
		} else {
			sui=random(1,3);
			if(sui==3) {
				cout<<"逃跑不是太成功   -10血"<<endl;
				system("pause");
				system("cls");//侵权必究
				xue-=10;
			} else {
				cout<<"逃跑成功"<<endl;
				system("pause");
				system("cls");//侵权必究
			}
		}
	}
}
void zangboIII() {
	srand((unsigned)time(NULL));
	int c;
	int sui=random(1,3);
	string text;
	int dx=34;
	if(sui==1) {

		text="你遇到了一个暴君丧尸";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;
		cout<<"1.攻击 2.逃跑"<<endl;

		cin>>c;
		cout<<endl;
		system("pause") ;
		system("cls");
		if(c==1) {
			int x=xue;
			cout<<"获得能量加持buff"<<endl;
			cout<<"获得抗战精神buff"<<endl;
			cout<<"获得反抗buff"<<endl;
			cout<<"获得幸运buff"<<endl;

			while(1) {
				cout<<"你对它造成了"<<wuqi[wu]+3+3+3+3<<"点伤害。"<<endl;
				dx-=wuqi[wu];
				if(dx<=0) {
					cout<<"他没了";//侵权必究
					cout<<"你获得了"<<34<<"金币"<<endl;
					au+=34;
					break;//侵权必究
				}
				cout<<"你受了"<<max(1,16-fangjv[fa])<<"点伤害。"<<endl;
				xue-=max(1,16-fangjv[fa]);//侵权必究
				cout<<"<<能量补充>>   血+8"<<endl;
				xue+8;
				if(xue<=0) {
					cout<<"你没了";
					break;
				}
			}
			system("pause");
			system("cls");//侵权必究
		} else {
			sui=random(1,3);
			if(sui==3) {
				cout<<"逃跑不是太成功   -10血"<<endl;
				system("pause");
				system("cls");//侵权必究
				xue-=10;
			} else {
				cout<<"逃跑成功"<<endl;
				system("pause");
				system("cls");//侵权必究
			}
		}
	} else if(sui==2) {

		int dx=4;
		text="你遇到了一个V型变异丧尸实验体ex";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;
		cout<<"1.攻击 2.逃跑"<<endl;
		cin>>c;
		cout<<endl;
		system("pause") ;
		system("cls");
		if(c==1) {
			int x=xue;
			while(1) {
				cout<<"你对它造成了"<<wuqi[wu]<<"点伤害。"<<endl;
				dx-=wuqi[wu];
				if(dx<=0) {
					cout<<"他消逝了";//侵权必究
					int zha=random(3,5);
					cout<<"你受到了"<<zha<<"点伤害"<<endl;
					xue-=zha;
					cout<<"你获得了"<<45<<"金币"<<endl;
					au+=45;
					break;//侵权必究
				}
				cout<<"你受了"<<max(1,16-fangjv[fa])<<"点伤害。"<<endl;
				xue-=max(1,16-fangjv[fa]);//侵权必究
				if(xue<=0) {
					cout<<"你没了";
					break;
				}
			}
			system("pause");
			system("cls");//侵权必究
		} else {
			sui=random(1,3);
			if(sui==3) {
				cout<<"逃跑不是太成功   -10血"<<endl;
				system("pause");
				system("cls");//侵权必究
				xue-=10;
			} else {
				cout<<"逃跑成功"<<endl;
				system("pause");
				system("cls");//侵权必究
			}
		}
	} else {
		int dx=10;
		text="你遇到了一个领主丧尸";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;
		cout<<"1.攻击 2.逃跑"<<endl;
		cin>>c;
		cout<<endl;
		system("pause") ;
		system("cls");
		if(c==1) {
			int x=xue;
			while(1) {
				cout<<"你对它造成了"<<wuqi[wu]<<"点伤害。"<<endl;
				dx-=wuqi[wu];
				if(dx<=0) {
					cout<<"他没了";//侵权必究
					cout<<"你获得了"<<20<<"金币"<<endl;
					cout<<"你获得了《蝴蝶刀》"<<endl;
					cout<<"1.拿上"<<endl;
					cin>>c;
					cout<<endl;
					system("pause") ;
					system("cls");
					if(c==1) {
						wu=5;
					}
					au+=20;
					break;//侵权必究
				}
				cout<<"你受了"<<max(1,16-fangjv[fa])<<"点伤害。"<<endl;
				xue-=max(1,16-fangjv[fa]);//侵权必究
				if(xue<=0) {
					cout<<"你没了";
					break;
				}
			}
			system("pause");
			system("cls");//侵权必究
		} else {
			sui=random(1,3);
			if(sui==3) {
				cout<<"逃跑不是太成功   -10血"<<endl;
				system("pause");
				system("cls");//侵权必究
				xue-=10;
			} else {
				cout<<"逃跑成功"<<endl;
				system("pause");
				system("cls");//侵权必究
			}
		}
	}
}
void zangbo() {
	srand((unsigned)time(NULL));
	int c;
	int sui=random(1,3);
	string text;
	int dx=5;
	if(sui==1) {

		text="你遇到了一个丧尸";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;
		cout<<"1.攻击 2.逃跑"<<endl;
		cin>>c;
		cout<<endl;
		system("pause") ;
		system("cls");
		if(c==1) {
			int x=xue;
			while(1) {
				cout<<"你对它造成了"<<wuqi[wu]<<"点伤害。"<<endl;
				dx-=wuqi[wu];
				if(dx<=0) {
					cout<<"他没了";//侵权必究
					cout<<"你获得了"<<10<<"金币"<<endl;
					au+=10;
					break;//侵权必究
				}
				cout<<"你受了"<<max(1,2-fangjv[fa])<<"点伤害。"<<endl;
				xue-=max(1,2-fangjv[fa]);//侵权必究
				if(xue<=0) {
					cout<<"你没了";
					break;
				}
			}
			system("pause");
			system("cls");//侵权必究
		} else {
			sui=random(1,3);
			if(sui==3) {
				cout<<"逃跑不是太成功   -10血"<<endl;
				system("pause");
				system("cls");//侵权必究
				xue-=10;
			} else {
				cout<<"逃跑成功"<<endl;
				system("pause");
				system("cls");//侵权必究
			}
		}
	} else if(sui==2) {

		int dx=4;
		text="你遇到了一个自爆丧尸";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;
		cout<<"1.攻击 2.逃跑"<<endl;
		cin>>c;
		cout<<endl;
		system("pause") ;
		system("cls");
		if(c==1) {
			int x=xue;
			while(1) {
				cout<<"你对它造成了"<<wuqi[wu]<<"点伤害。"<<endl;
				dx-=wuqi[wu];
				if(dx<=0) {
					cout<<"他爆炸了";//侵权必究
					int zha=random(2,14);
					cout<<"你受到了"<<zha<<"点伤害"<<endl;
					xue-=zha;
					cout<<"你获得了"<<15<<"金币"<<endl;
					au+=15;
					break;//侵权必究
				}
				cout<<"你受了"<<max(1,2-fangjv[fa])<<"点伤害。"<<endl;
				xue-=max(1,2-fangjv[fa]);//侵权必究
				if(xue<=0) {
					cout<<"你没了";
					break;
				}
			}
			system("pause");
			system("cls");//侵权必究
		} else {
			sui=random(1,3);
			if(sui==3) {
				cout<<"逃跑不是太成功   -10血"<<endl;
				system("pause");
				system("cls");//侵权必究
				xue-=10;
			} else {
				cout<<"逃跑成功"<<endl;
				system("pause");
				system("cls");//侵权必究
			}
		}
	} else {
		int dx=10;
		text="你遇到了一个钢盔丧尸";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;
		cout<<"1.攻击 2.逃跑"<<endl;
		cin>>c;
		cout<<endl;
		system("pause") ;
		system("cls");
		if(c==1) {
			int x=xue;
			while(1) {
				cout<<"你对它造成了"<<wuqi[wu]<<"点伤害。"<<endl;
				dx-=wuqi[wu];
				if(dx<=0) {
					cout<<"他没了";//侵权必究
					cout<<"你获得了"<<10<<"金币"<<endl;
					cout<<"你获得了警用防弹衣"<<endl;
					cout<<"1.拿上"<<endl;
					cin>>c;
					cout<<endl;
					system("pause") ;
					system("cls");
					if(c==1) {
						fa=2;
					}
					au+=10;
					break;//侵权必究
				}
				cout<<"你受了"<<max(1,2-fangjv[fa])<<"点伤害。"<<endl;
				xue-=max(1,2-fangjv[fa]);//侵权必究
				if(xue<=0) {
					cout<<"你没了";
					break;
				}
			}
			system("pause");
			system("cls");//侵权必究
		} else {
			sui=random(1,3);
			if(sui==3) {
				cout<<"逃跑不是太成功   -10血"<<endl;
				system("pause");
				system("cls");//侵权必究
				xue-=10;
			} else {
				cout<<"逃跑成功"<<endl;
				system("pause");
				system("cls");//侵权必究
			}
		}
	}
}
void supply() {
	srand((unsigned)time(NULL));
	string text;
	int c=random(1,4);
	if(c<=1) {
		text="你获得了一个血袋      +16血";
		sc(text,25);
		xue+=16;
	} else if(c<=2) {
		text="你获得了一个血瓶      +34血";
		sc(text,25);
		xue+=34;
	} else if(c<=3) {
		text="你获得了一个血包      +50血";
		sc(text,25);
		xue+=50;
	} else {
		text="你获得了一个血箱      +100血";
		sc(text,25);
		xue+=100;
	}
}
void start() {
	srand((unsigned)time(NULL));
	cout<<"血量:"<<xue<<endl<<endl;
	cout<<"武器:"<<wuqi_name[wu]<<endl;
	cout<<"伤害:"<<wuqi[wu]<<endl<<endl;
	cout<<"护甲:"<<fang_name[fa]<<endl;
	cout<<"护甲值:"<<fangjv[fa]<<endl<<endl;
	cout<<"金币:"<<au<<endl<<endl;
}
int main() {
	srand((unsigned)time(NULL));
	string text;
	text="你醒了,发现你身处在一个废弃医院的一个房间里,旁边有张纸条:游戏开始...";
	sc(text,25);
	cout<<endl;
	system("pause") ;
	system("cls");
	text="你发现了你旁边还有一位正在熟睡的人(鬼)。。。";
	sc(text,25);
	cout<<endl<<endl<<endl<<endl<<endl;
	cout<<"1.沙了他     2.离开房间"<<endl;
	int c;
	cin>>c;
	cout<<endl;
	system("pause") ;
	system("cls");
	if(c==2) {
		text="你离开了房间,感觉到身后有些异样,你转过身来,那熟睡的人站在你面前,拿着一根木棍把你杀了";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;

		system("pause") ;
		system("cls");
		text="你死了...";
		sc(text,50);
		cout<<endl<<endl<<endl<<endl<<endl;

		system("pause") ;
		system("cls");
		return 0;
	}
	text="你获得了一根木棍,和5金币";
	au+=5;
	sc(text,25);
	cout<<endl<<endl<<endl<<endl<<endl;
	cout<<"1.拿上木棍"<<endl;
	cin>>c;
	cout<<endl;
	system("pause") ;
	system("cls");
	if(c==1) {
		wu=1;
	}
	system("pause") ;
	system("cls");
	text="你离开了房间...";
	sc(text,25);
	cout<<endl<<endl<<endl<<endl<<endl;

	system("pause") ;
	system("cls");

	zangbo();

	system("pause") ;
	system("cls");
	if(xue<=0) {
		cout<<"你死了"<<endl;


		system("pause") ;
		return 0;
	}
	start();

	system("pause") ;
	system("cls");

	text="你来到了走廊";
	sc(text,25);
	cout<<endl;
	text="1.翻翻垃圾桶      2.翻翻文件柜";
	sc(text,25);
	cout<<endl;
	cin>>c;
	if(c==1) {
		text="你找到了一个血袋和一点金币";
		sc(text,25);
		cout<<endl<<"金币+10   血+16"<<endl;
		au+=10;
		xue+=16;
	} else {
		text="你找到了一则线索";
		sc(text,25);
		cout<<endl;

		system("pause") ;
		system("cls");
		cout<<"  _____      ___________________________"<<endl;
		cout<<" \\     /____|                          /"<<endl;
		cout<<" |                                     "<<endl;
		cout<<" /   这 个#$它本身*就是?个 巨 大&阴谋  |"<<endl;
		cout<<" \\             ___      前人的留言 ____/"<<endl;
		cout<<" /_____/\\____\\  /______/\\/\\/\\____/"<<endl;

		system("pause") ;
		system("cls");
	}
	start();
	system("pause") ;
	system("cls");
	text="你发现了一部电梯,你走了进去,只有三层楼的按键,其它的按键似乎都坏掉了。。。";
	sc(text,25);
	cout<<endl;
	cout<<"1.34层     2.地下仓库     3.14层"<<endl;
	cin>>c;

	system("pause") ;
	system("cls");
	if(c==1) {
		text="你来到了34层...";
		sc(text,25);
		cout<<endl;
		system("pause") ;
		system("cls");
		text="电梯门开了,眼前出现了三个破烂不堪的大字:试炼厅。。。";
		sc(text,25);
		cout<<endl;
		system("pause") ;
		system("cls");
		text="你继续往前走,来到了一处自动售卖机";
		sc(text,25);
		cout<<endl;
		system("pause") ;
		system("cls");
		start();
		cout<<endl<<endl;
		cout<<"1.菜刀(34¥)"<<endl;
		cout<<"2.厚重羽绒服(16¥)" <<endl;
		cout<<"3.血袋(16¥)"<<endl;
		cout<<"4.不买"<<endl;
		cin>>c;
		if(c==1&&au>=34) {
			wu=3;
			au-=34;
			cout<<"购买成功"<<endl;

			system("pause") ;
			system("cls");
		}
		if(c==2&&au>=16) {
			fa=1;
			au-=34;
			cout<<"购买成功"<<endl;

			system("pause") ;
			system("cls");
		}
		if(c==3&&au>=16) {
			xue+=16;
			au-=16;
			cout<<"购买成功"<<endl;

			system("pause") ;
			system("cls");
		}
		start();
		system("pause") ;
		system("cls");
		cout<<"继续..."<<endl;
		system("pause") ;
		system("cls");
		zangbo();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangbo();
		system("pause") ;
		system("cls");
		zangbo();
		system("pause") ;
		system("cls");
		zangbo();
		system("pause") ;
		system("cls");
		zangbo();
		system("pause") ;
		system("cls");
		text="你经历了一场恶战...你发现了奖励!";
		sc(text,25);
		cout<<endl;
		supply();
		cout<<endl;
		supply();
		cout<<endl;
		supply();
		cout<<endl;
		system("pause") ;
		system("cls");
		start();
		system("pause") ;
		system("cls");
		text="你继续往前走,又来到了一处自动售卖机";
		sc(text,25);
		cout<<endl;
		system("pause") ;
		system("cls");
		start();
		cout<<endl<<endl;
		c=1;
		while(c!=4) {

			cout<<"1.消防斧(40¥)"<<endl;
			cout<<"2.军用防弹衣(40¥)" <<endl;
			cout<<"3.血瓶(20¥)"<<endl;
			cout<<"4.不买"<<endl;
			cin>>c;
			if(c==1&&au>=40) {
				wu=4;
				au-=40;
				cout<<"购买成功"<<endl;

				system("pause") ;
				system("cls");
			}
			if(c==2&&au>=40) {
				fa=3;
				au-=40;
				cout<<"购买成功"<<endl;

				system("pause") ;
				system("cls");
			}
			if(c==3&&au>=20) {
				xue+=34;
				au-=20;
				cout<<"购买成功"<<endl;

				system("pause") ;
				system("cls");
			}
			start();
			system("pause") ;
			system("cls");
		}
		cout<<"继续..."<<endl;
		system("pause") ;
		system("cls");
		zangboII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		text="你经历了一场恶战...你发现了奖励!";
		sc(text,25);
		cout<<endl;
		supply();
		cout<<endl;
		supply();
		cout<<endl;
		supply();
		cout<<endl;
		supply();
		cout<<endl;
		supply();
		cout<<endl;
		system("pause") ;
		system("cls");
		start();
		system("pause") ;
		system("cls");
		text="你继续往前走,又来到了一处自动售卖机";
		sc(text,25);
		cout<<endl;
		system("pause") ;
		system("cls");
		start();
		cout<<endl<<endl;
		c=1;
		while(c!=4) {

			cout<<"1.消防斧(40¥)"<<endl;
			cout<<"2.防爆服(50¥)" <<endl;
			cout<<"3.血包(34¥)"<<endl;
			cout<<"4.不买"<<endl;
			cin>>c;
			if(c==1&&au>=40) {
				wu=4;
				au-=40;
				cout<<"购买成功"<<endl;

				system("pause") ;
				system("cls");
			}
			if(c==2&&au>=50) {
				fa=4;
				au-=50;
				cout<<"购买成功"<<endl;

				system("pause") ;
				system("cls");
			}
			if(c==3&&au>=34) {
				xue+=50;
				au-=34;
				cout<<"购买成功"<<endl;

				system("pause") ;
				system("cls");
			}
			start();
			system("pause") ;
			system("cls");
		}
		cout<<"继续..."<<endl;
		system("pause") ;
		system("cls");
		zangboIII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboIII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboIII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboIII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboIII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboIII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboIII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		zangboIII();
		if(xue<=0) {
			return 0;
		}
		system("pause") ;
		system("cls");
		text="你经历了一场恶战...你发现了奖励!";
		sc(text,25);
		cout<<endl;
		supply();
		cout<<endl;
		supply();
		cout<<endl;
		supply();
		cout<<endl;
		supply();
		cout<<endl;
		supply();
		cout<<endl;
		system("pause") ;
		system("cls");
		start();
		system("pause") ;
		system("cls");
		text="你继续往前走,又来到了一处自动售卖机";
		sc(text,25);
		cout<<endl;
		system("pause") ;
		system("cls");
		start();
		cout<<endl<<endl;
		c=1;
		while(c!=4) {

			cout<<"1.《古剑》(50¥)"<<endl;
			cout<<"2.《《狼牌战斗服》》(60¥)" <<endl;
			cout<<"3.血箱(40¥)"<<endl;
			cout<<"4.不买"<<endl;
			cin>>c;
			if(c==1&&au>=50) {
				wu=7;
				au-=50;
				cout<<"购买成功"<<endl;

				system("pause") ;
				system("cls");
			}
			if(c==2&&au>=60) {
				fa=5;
				au-=60;
				cout<<"购买成功"<<endl;

				system("pause") ;
				system("cls");
			}
			if(c==3&&au>=40) {
				xue+=100;
				au-=40;
				cout<<"购买成功"<<endl;

				system("pause") ;
				system("cls");
			}
			start();
			system("pause") ;
			system("cls");
		}
		cout<<"继续,准备最终大战吧..."<<endl;
		system("pause") ;
		system("cls");
		int dx=340;
		text="你遇到了一个死亡追踪者ex(原力初生)";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;
		cout<<"1.攻击 2.逃跑"<<endl;
		cin>>c;
		cout<<endl;
		system("pause") ;
		system("cls");
		if(c==1) {
			int x=xue;
			while(1) {
				cout<<"你对它造成了"<<wuqi[wu]<<"点伤害。"<<endl;
				dx-=wuqi[wu];
				if(dx<=0) {
					cout<<"他没了";//侵权必究
					cout<<"你获得了"<<160<<"金币"<<endl;
					cout<<"你获得了《《天狼双节棍》》"<<endl;
					cout<<"1.拿上"<<endl;
					cin>>c;
					cout<<endl;
					system("pause") ;
					system("cls");
					if(c==1) {
						wu=8;
					}
					au+=160;
					break;//侵权必究
				}
				cout<<"你受了"<<max(1,50-fangjv[fa])<<"点伤害。"<<endl;
				xue-=max(1,50-fangjv[fa]);//侵权必究
				if(xue<=0) {
					cout<<"你没了";
					system("pause");
					system("cls");//侵权必究
					return 0;
				}
			}
			system("pause");
			system("cls");//侵权必究
		} else {
			cout<<"逃跑不成功   你死了"<<endl;
			system("pause");
			system("cls");//侵权必究
			return 0;
		}


		system("pause");
		system("cls");//侵权必究
		start();
		system("pause");
		system("cls");//侵权必究
		cout<<"加油";
		dx=500;
		text="死亡追踪者ex(原力初生)进化成了深渊死亡追踪者ex(黑暗撕裂)";
		sc(text,25);
		cout<<endl<<endl<<endl<<endl<<endl;
		cout<<"1.攻击 2.逃跑"<<endl;
		cin>>c;
		cout<<endl;
		system("pause") ;
		system("cls");
		if(c==1) {
			int x=xue;
			while(1) {
				cout<<"你对它造成了"<<wuqi[wu]<<"点伤害。"<<endl;
				dx-=wuqi[wu];
				if(dx<=0) {
					cout<<"他没了";//侵权必究
					cout<<"你获得了"<<340<<"金币"<<endl;
					cout<<"你胜利了"<<endl;
					au+=160;
					text="深渊死亡追踪者ex(黑暗撕裂)开始上下翻滚";
					sc(text,25);
					cout<<endl;
					text=",不断冒出黑烟,它开始咆哮,那声音令人恐慌,他开始慢慢变小,终于,它死了。。。";
					sc(text,25);
					cout<<endl;
					
					system("pause");
					system("cls");//侵权必究
					text="终于,它死了。。。";
					sc(text,50);
					cout<<endl;

					system("pause");
					system("cls");//侵权必究
					cout<<"你赢了..."<<endl;

					system("pause");
					system("cls");//侵权必究
					return 0;
					break;//侵权必究
				}
				cout<<"你受了"<<max(1,60-fangjv[fa])<<"点伤害。"<<endl;
				xue-=max(1,60-fangjv[fa]);//侵权必究
				if(xue<=0) {
					cout<<"你没了";
					system("pause");
					system("cls");//侵权必究
					return 0;
				}
			}
			system("pause");
			system("cls");//侵权必究
			
		} else {
			cout<<"逃跑不成功   你死了"<<endl;
			system("pause");
			system("cls");//侵权必究
			return 0;
		}
	} else if(c==2) {

		/*text="你进去后电梯开始剧烈的摇晃,灯光闪烁,警报声四起,开始有白烟从缝里冒出,呲呲作响,你摔倒在地,电梯发出要散架的声音。。。啪电梯四分五裂。。。";
		sc(text,25);
		cout<<endl;
		system("pause") ;
		system("cls");
		text="你死了";
		sc(text,25);
		return 0;
		*/
		//cout<<endl;

		text="你来到了地下仓库...";
		sc(text,25);
		cout<<endl;
	} else {
		text="你进去后电梯开始剧烈的摇晃,灯光闪烁,警报声四起,开始有白烟从缝里冒出,呲呲作响,你摔倒在地,电梯发出要散架的声音。。。啪电梯四分五裂。。。";
		sc(text,25);
		cout<<endl;
		system("pause") ;
		system("cls");
		text="你死了";
		sc(text,25);
		return 0;
		cout<<endl;
	}

	return 0;
}

























/*
武器
 0    1   2    3      4     5       6            7             8
手  木棍 铁管 菜刀 消防斧 铁锤   《蝴蝶刀》  《古剑》 《《天狼双节棍》》
2    4     5    7     9    9         12          14          16

防具
0       1              2          3        4          5
白衣  厚重羽绒服  警用防弹衣 军用防弹衣 防爆服   《《狼牌战斗服》》
0          2          7          16        20            34

血袋   血瓶   血包   血箱
 16      34     50     100

 肿瘤丧尸  会炸   伤害2~14不等
 丧尸
 铠甲丧尸  防4
 日本僵尸    血脉加持  自己+4伤


















































*/

2.0预告

1.更新第二条路线

2.更新新的敌人

3.更新新的武器

4.更新新的防具

5.修复BUG

6.添加彩蛋

敬请期待...

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐