您的位置:首页 > 汽车 > 时评 > C++小游戏 合集

C++小游戏 合集

2024/12/25 2:26:50 来源:https://blog.csdn.net/huaxuanwu1111/article/details/136219734  浏览:    关键词:C++小游戏 合集

生化危机

#include<conio.h>
#include<string.h>
#include<stdio.h>
#include<stdlib.h>
#include<windows.h>
#include<time.h>
#include<direct.h>
int n,round,gold=0;
bool f1,f2,f3,dead=false,PC_64Bit;
char str[4];
struct node1
{int hp;int maxhp;int exp;int atk;int def;int food;
}steve;
struct node2
{int hp;int maxhp;int atk;int def;int exp;int lev;int poisonous_atk;int poisonous_round;int Self_detonate_atk;bool nodie;bool poisonous;bool Self_detonate;
}zombie;
void help()
{system("cls");getchar();MessageBox(NULL,TEXT("1.下回合如果僵尸攻击你,则你不会收到中毒伤害,只会收到主伤害\n2.你不会对僵尸造成伤害\n按任意键继续"),TEXT("防毒技能"),MB_ICONINFORMATION);system("cls");return;
}
struct Quickly
{int Quick_speed;int Quick_round;int Quick_zombie;
}Quick;
void SetColor(unsigned short ForeColor,unsigned short BackGroundColor)
{HANDLE hCon=GetStdHandle(STD_OUTPUT_HANDLE);SetConsoleTextAttribute(hCon,(ForeColor%16)|(BackGroundColor%16*16));
}
void ERR_1()
{MessageBox(NULL,TEXT("ERR1:金币不足!"),TEXT("ERROR"),MB_ICONWARNING);return;
}
bool Bit64()
{if(sizeof(void*)==4) return false;else if(sizeof(void*)==8) return true;return false; 
}
void Level_1()
{steve.atk=10;steve.hp=50;steve.maxhp=50;steve.exp=0;steve.def=1;system("cls");printf("第一章 起源");Sleep(2000);system("cls");getchar();//生化危机1.0修复 printf("8月21日,你出差到H市回来,感觉哪里都是空荡荡的");getchar();system("cls");printf("你坐上去往公司的地铁,却发现地铁里没有人(反科学,地铁会自动开动)");getchar();system("cls");printf("早上7:00,地铁里空荡荡的,但在平时,地铁上几乎是人挤人");getchar();system("cls");printf("你:真奇怪,为什么今天地铁上没有人?");getchar();system("cls");printf("8:00,你进了公司,发现里面根本就没人,并且公司漆黑一片");getchar();system("cls");printf("你借着手机屏幕的亮光找到了电梯,并找到了你的办公室");getchar();system("cls");printf("你:咋真么黑还没有人开灯啊");getchar();system("cls");printf("你(大喊):有人吗!有人倒是说句话啊!");getchar();system("cls");printf("然而,走廊空空荡荡的,没有一个人");getchar();system("cls");printf("你:哎,还是先把灯打开,在想办法吧");getchar();system("cls");printf("按下开关,走廊的灯眨眼间亮了");getchar();system("cls");printf("忽然,一只手搭在了你的背后!");getchar();system("cls");printf("你:啊!你是什么人!别过来!");getchar();system("cls");printf("呃~~~~~~");getchar();system("cls");printf("按任意键开始战斗");getchar();zombie.hp=30;zombie.atk=6;zombie.def=0;zombie.exp=8;zombie.lev=1;zombie.nodie=true;system("cls");printf("敌人信息:\n");printf("敌人:普通僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){printf("敌人:普通僵尸 等级%d\n",zombie.lev);printf("你的血量:%d    僵尸血量:%d\n",steve.hp,zombie.hp);printf("武器:\n");printf("1| 普通攻击 10伤害 攻速1\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);Sleep(1000);system("cls");}system("cls");if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}if(zombie.hp<=0){printf("恭喜击杀[%d级普通僵尸]\n",zombie.lev);printf("获得经验:%d\n",zombie.exp);steve.exp+=zombie.exp;printf("2秒后继续\n");Sleep(2000);}getchar();system("cls");printf("你杀死僵尸后,在走廊尽头出现了一群僵尸!");getchar();system("cls");printf("1| 躲进你的办公室\n2| 和它们拼了!\n");scanf("%d",&n);if(n==2){system("cls");printf("由于你寡不敌众,你的体力渐渐不支,最终倒在了僵尸脚下\n");Sleep(2000);printf("5秒后退出游戏");Sleep(5000);return;}system("cls");printf("外面的喊声渐渐远去,你缓缓地走出了办公室");getchar();getchar(); system("cls");printf("这是你才发现,僵尸的数量远比你想想的要多!");getchar();system("cls");printf("第一章 起源 完\n");printf("恭喜完成第一章,奖励金币60");gold+=60;Sleep(2000);system("cls");return;
}
void Level_2()
{system("cls");f1=false;f2=false;f3=false;steve.def=1;steve.exp=8;steve.atk=30;steve.maxhp=50;steve.hp=40;printf("第二章 逃离计划");Sleep(2000);system("cls");printf("地点-公司14层 时间10:00");getchar();system("cls");printf("你站在空荡荡的走廊里,望着楼梯口的方向");getchar();system("cls");printf("你:这样下去也不是办法啊,迟早要被僵尸打死");getchar();system("cls");printf("你:还是找找有什么东西吧");getchar();system("cls");while(1){printf("提示:在周围探索(建议把所有地点找一遍)\n");printf("1| 走廊墙角下的箱子\n");printf("2| 药盒\n");printf("3| 你的办公室\n");printf("4| 离开\n");scanf("%d",&n);if(n==1){system("cls");if(f1) printf("这里已经没有特别的东西了");else{printf("获得[铁棍],伤害+20");steve.atk+=20; f1=true; }}if(n==2){system("cls");if(f2) printf("这里已经没有特别的东西了");else{printf("获得[碘伏],血量+10");steve.hp+=10;f2=true; } }if(n==3){system("cls");if(f3) printf("这里已经没有特别的东西了");else{printf("获得[你的公文包]");f3=true; }}if(n==4) break;Sleep(2000);system("cls");}getchar();system("cls");printf("你:好了,东西都收拾好了,该下去了,下面一定有很多僵尸");getchar();system("cls");printf("前方高能!你在楼梯口遇到一只僵尸!");getchar();system("cls");printf("按任意键开始战斗");getchar();zombie.hp=90;zombie.atk=11;zombie.def=5;zombie.exp=24;zombie.lev=3;zombie.nodie=true;system("cls");round=1;printf("敌人信息:\n");printf("敌人:普通僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){printf("敌人:普通僵尸 等级%d\n",zombie.lev);printf("你的血量:%d 僵尸血量:%d\n",steve.hp,zombie.hp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 铁棍 55伤害,攻速2\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);if(zombie.hp<=0) break;}else if(n==2){if(!f1) printf("你未获得此道具"); else if(round%2==1){printf("你对僵尸造成了%d伤害\n",55-zombie.def);zombie.hp=zombie.hp-(55-zombie.def);if(zombie.hp<=0) break;}else printf("攻击冷却中\n"); }else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);Sleep(1000);round++;system("cls");}system("cls");if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}if(zombie.hp<=0){printf("恭喜击杀[%d级普通僵尸]\n",zombie.lev);printf("获得经验:%d\n",zombie.exp);steve.exp+=zombie.exp;printf("2秒后继续\n");Sleep(2000);}system("cls");printf("呵呵不错嘛^_^,能闯到这里,这里有一些小礼物给你");getchar();getchar();system("cls");printf("1| 血量上限增加至75\n");steve.maxhp=75;getchar();system("cls");printf("2| 血量补满");steve.hp=steve.maxhp;getchar();system("cls");printf("好了一路顺风,拜拜^_^");getchar();system("cls");printf("按任意键查看属性");getchar();system("cls");printf("血量:%d/%d\n",steve.hp,steve.maxhp);printf("伤害:%d\n",steve.atk);printf("防御:%d\n",steve.def);printf("经验:%d\n",steve.exp);getchar();system("cls");printf("地点:公司12层,仓库\n时间:12:00");getchar();system("cls");printf("你:还是找找有没有别的东西吧");getchar();system("cls");printf("提示:在周围探索");getchar();system("cls");f1=false;f2=false;f3=false;while(1){printf("提示:在周围探索(建议把所有地点找一遍)\n");printf("1| 休息室\n");printf("2| 药剂室\n");printf("3| 货架\n");printf("4| 离开\n");scanf("%d",&n);if(n==1){system("cls");if(f1) printf("这里已经没有特别的东西了");else{printf("获得[雨衣],防御+9");steve.def+=9;f1=true; } }if(n==2){system("cls");if(f2) printf("这里已经没有特别的东西了");else{printf("获得[硫酸瓶]x3,伤害+40");steve.atk+=40;f2=true;} }if(n==3){system("cls");if(f3) printf("这里已经没有特别的东西了");else{printf("获得[带钉子的木板],伤害+30");steve.atk+=30;f3=true; }}if(n==4) break;Sleep(2000);system("cls");}system("cls");printf("咚!!当!!!");getchar();getchar();system("cls");printf("呃~~~~~~");getchar();system("cls");printf("按任意键开始战斗");getchar();system("cls");round=1;zombie.atk=20;zombie.hp=800;zombie.def=20;zombie.exp=80;zombie.lev=7;printf("敌人信息:\n");printf("敌人:普通僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");int remain=3;while(steve.hp>0 && zombie.hp>0){printf("敌人:普通僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d 僵尸血量:%d\n",steve.hp,steve.maxhp,zombie.hp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 铁棍 80伤害,攻速1\n");printf("3| 带钉子的木板 100伤害 攻速2\n");printf("4| 硫酸瓶 240伤害 攻速1\n");printf("小提示:药剂类武器无视僵尸防御值\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);if(zombie.hp<=0) break;}else if(n==2){printf("你对僵尸造成了%d伤害\n",60-zombie.def);zombie.hp=zombie.hp-(60-zombie.def);if(zombie.hp<=0) break;}else if(n==3){if(!f3) printf("你尚未获得此道具\n"); else if(round%2==1){printf("你对僵尸造成了%d点伤害\n",90-zombie.def);zombie.hp=zombie.hp-(90-zombie.def);if(zombie.hp<=0) break;}else printf("攻击冷却中\n"); }else if(n==4){if(!f2) printf("你尚未获得此道具\n");else if(remain==0) printf("你已用完此道具\n");else{printf("你对僵尸造成了240点伤害\n");zombie.hp-=240;remain--;if(zombie.hp<=0) break;}}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;printf("僵尸对你造成了%d点伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);Sleep(1000);round++;system("cls");}system("cls");if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}if(zombie.hp<=0){printf("恭喜击杀[%d级普通僵尸]\n",zombie.lev);printf("获得经验:%d\n",zombie.exp);steve.exp+=zombie.exp;printf("2秒后继续\n");Sleep(2000);}system("cls");printf("第二章 逃离计划 完\n");printf("恭喜完成第二章,奖励金币250");gold+=250;Sleep(2000);system("cls");return;
}
void steve_vs_zombie()
{system("cls");steve.def=10;steve.maxhp=75;steve.hp=45;steve.exp=112;zombie.atk=20;zombie.def=30;zombie.hp=300;zombie.lev=4;zombie.exp=36;if(f1) steve.atk=120;else steve.atk=100;printf("敌人信息:\n");printf("敌人:普通僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){printf("敌人:普通僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d 僵尸血量:%d\n",steve.hp,steve.maxhp,zombie.hp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 铁棍 100伤害,攻速1\n");printf("3| 带钉子的木板 150伤害 攻速2\n");printf("4| 锥子 120伤害 攻速1\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);if(zombie.hp<=0) break;}else if(n==2){printf("你对僵尸造成了%d伤害\n",100-zombie.def);zombie.hp=zombie.hp-(100-zombie.def);if(zombie.hp<=0) break;}else if(n==3){if(round%2==1){printf("你对僵尸造成了%d点伤害\n",150-zombie.def);zombie.hp=zombie.hp-(150-zombie.def);if(zombie.hp<=0) break;}else printf("攻击冷却中\n"); }else if(n==4){if(!f1) printf("你尚未获得此道具\n");else{printf("你对僵尸造成了%d点伤害\n",120-zombie.def);zombie.hp=zombie.hp-(120-zombie.def);if(zombie.hp<=0) break;}}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;printf("僵尸对你造成了%d点伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);if(steve.hp<=0){dead=true;return;}Sleep(1000);round++;system("cls");}system("cls");return;
}
void Level_3_1()
{system("cls");printf("地点:公司8层\n时间17:30");getchar();getchar();system("cls");printf("你:一层一层下也不是办法,或许我可以重启电梯?");getchar();system("cls");f1=false;f2=false;f3=false;bool key=false,door=false,light=false;while(n!=5){printf("提示:在周围探索(建议探索所有地点)\n");printf("1| 你的裤子兜\n");printf("2| 配电室\n");printf("3| 走廊的电灯开关\n");printf("4| 装修工人留下的麻袋\n");printf("5| 离开\n");scanf("%d",&n);if(n==1){if(!key){printf("获得[配电室的钥匙]\n");key=true;}else printf("这里已经没有特别的东西了\n");}if(n==2){if(!key) printf("锁住了,需要[配电室的钥匙]\n");else if(!door){printf("你:外面的走廊太黑了,开电灯是这个电闸吗?\n");Sleep(1000);system("cls");printf("你拉下了电闸\n");door=true;}else printf("这里的电闸已经打开了\n");}if(n==3){if(!door) printf("你:灯没有反应,是不是电闸没开?\n");else if(!light){printf("你按下了电灯开关\n");light=true;}else printf("这里的灯已经打开了\n"); }if(n==4 || n==5){if(!light){printf("走廊太黑了,需要打开电灯\n");Sleep(1000);system("cls");continue;}else if(n==4){f1=true;printf("获得[锥子],伤害+20");steve.atk+=20;}else if(n==5) break;}Sleep(1000);system("cls");}getchar();system("cls");printf("地点:公司8层,电梯备用电源控制室\n时间19:00\n");getchar();system("cls");printf("按任意键打开电梯备用电源\n");getchar();system("cls");printf("呃!!~~~~~~");getchar();steve_vs_zombie();if(zombie.hp<=0){printf("恭喜击杀[%d级普通僵尸]\n",zombie.lev);printf("获得经验:%d\n",zombie.exp);steve.exp+=zombie.exp;printf("2秒后继续\n");Sleep(2000);}return;
}
void Level_3()
{system("cls");printf("第三章 涉险");Sleep(2000);system("cls");printf("地点:公司12层,仓库\n时间17:00");getchar();getchar();system("cls");printf("你:太阳要落山了,我得赶紧出去!");getchar();system("cls");n=0;while(n!=1){printf("1| 涉险逃离\n2| 在仓库过夜\n");scanf("%d",&n);if(n==1) break;if(n==2) printf("你觉得在满是僵尸的仓库过夜可能吗?\n");if(n!=1 && n!=2) printf("无效输入");Sleep(1000);system("cls");}if(n==1) Level_3_1();if(dead){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}getchar();system("cls");printf("按任意键进入电梯");getchar();system("cls");printf("地点:公司2层,电梯间\n时间20:00");getchar();system("cls");printf("按任意键打开电梯间的门");getchar();system("cls");printf("呃!!                            \n");printf("        嗷呕~~~~(是僵尸不是狼!) \n");printf("                    哇呜......! \n");getchar();system("cls");printf("你(惊吓+小声):就一天,这个公司是怎么了!这么多僵尸!!!");getchar();system("cls");printf("第三章 涉险 完\n");printf("恭喜完成第三章,奖励金币200");printf("\n[黑体]#::714[/color=write]");gold+=200;Sleep(3000);return;
}
void Shop()
{int buy;system("cls");printf("欢迎来到商店\n");printf("这里有很多音乐,欢迎前来选购\n");printf("按任意键继续\n");getchar();getchar();system("cls");while(1){printf("0| 抽奖(随机获得0~9金币)\n");printf("1| 山丘 80金币\n");printf("2| 森林 220金币\n");printf("3| 霓虹 840金币\n");printf("4| 沙漠 270金币\n");printf("5| 万圣节逃生 120金币\n");printf("6| 亡灵之舞 600金币\n");printf("7| 万圣节 750金币\n");printf("8| 万圣嘉年华 600金币\n");printf("9| 科技 600金币\n");printf("10| 几何迷阵 840金币\n");printf("11| 天空之城 750金币\n");printf("12| 灼热未来 660金币\n");printf("13| 冬日 160金币\n");printf("14| 圣诞 660金币\n");printf("15| 百变圣诞夜 680金币\n");printf("16| 深空 720金币\n");printf("17| 8比特 480金币\n");printf("18| 像素 800金币\n");printf("19| 亡灵之舞一 - F-777 960金币\n");printf("20| 亡灵之舞二 - F-777 1200金币\n");printf("21| 8比特 - F-777 1000金币\n");printf("22| 像素 - F-777 1200金币\n");printf("23| Faded Remix - D.Ball 1200金币\n");printf("24| 极速挑战 - D.Ball 750金币\n");printf("25| 春节(8折优惠) - D.Ball 960<-240>金币\n");printf("64| Alan Walker音乐套装 5200金币\n");printf("-1| 离开\n");printf("金币余额:%d\n注意:\n1.请勿重复购买!\n",gold);scanf("%d",&n);if((n<-1 || n>25) && n!=64) printf("无效输入");if(n==1){if(gold<80) ERR_1();else{system("cls");printf("是否花费80金币购买[背景音乐:山丘]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:山丘]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1JCXlZkRA3mlOzlOUpVqfrQ\n");printf("密码:f2r%c",'7'+'1'-1);gold-=80; getchar();getchar(); }}}if(n==2){if(gold<220) ERR_1();else{system("cls");printf("是否花费220金币购买[背景音乐:森林]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:森林]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1eVMc8RLZUVaOQRmZtaRy9A\n");printf("密码:%cpv%c",'P'+' ','e'-'1');gold-=220;getchar();getchar();}}}if(n==3){if(gold<720) ERR_1();else{system("cls");printf("是否花费720金币购买[背景音乐:霓虹]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:霓虹]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1xcBX9ptWJ1wpXuWe4p9idg\n");printf("密码:%c%cxg",'1'+'7','C'+' ');gold-=720;getchar();getchar();}}}if(n==4){if(gold<270) ERR_1();else{system("cls");printf("是否花费270金币购买[背景音乐:沙漠]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:沙漠]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1IJ0g3e-hdp6pPvicNcsQ2A\n");printf("密码:vn%ct",'j'-'2'-'B'+' '+' ');gold-=270;getchar();getchar();}}}if(n==5){if(gold<120) ERR_1();else{system("cls");printf("是否花费120金币购买[背景音乐:万圣节逃生]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:万圣节逃生]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1SehBwxwqDsubDoewmR4a1g\n");printf("密码:jfk4");gold-=120;getchar();getchar();}}}if(n==6){if(gold<600) ERR_1();else{system("cls");printf("是否花费600金币购买[背景音乐:亡灵之舞]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:亡灵之舞]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1sQ1yWX-A6KOTlk-6fiI4NQ\n");printf("密码:tgwu");gold-=600;getchar();getchar();}}}if(n==7){if(gold<750) ERR_1();else{system("cls");printf("是否花费750金币购买[背景音乐:万圣节]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:万圣节]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1XQsDgMDOjJSyUsxV5ypb2w\n");printf("密码:f2k8");gold-=750;getchar();getchar();}}}if(n==8){if(gold<600) ERR_1();else{system("cls");printf("是否花费600金币购买[背景音乐:万圣嘉年华]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:万圣嘉年华]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1U1HeLjpFdVtbluc_NQhZPw\n");printf("密码:wqrs");gold-=600;getchar();getchar();}}}if(n==9){if(gold<600) ERR_1();else{system("cls");printf("是否花费600金币购买[背景音乐:科技]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:科技]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1dh0sFieQprmY3EGMa8ZAww\n");printf("密码:9w7s");gold-=600;getchar();getchar();}}}if(n==10){if(gold<840) ERR_1();else{system("cls");printf("是否花费840金币购买[背景音乐:几何迷阵]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:几何迷阵]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1sUAervYWrmixoFkhHAK06Q\n");printf("密码:2%c8t",'A'+' '+25);gold-=840;getchar();getchar();}}}if(n==11){if(gold<800) ERR_1();else{system("cls");printf("是否花费800金币购买[背景音乐:天空之城]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:天空之城]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/18RwGZLuPFcOfwS9CwjgAGg\n");printf("密码:9vbs");gold-=800;getchar();getchar();}}}if(n==12){if(gold<660) ERR_1();else{system("cls");printf("是否花费660金币购买[背景音乐:灼热未来]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:灼热未来]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/18RwGZLuPFcOfwS9CwjgAGg\n");printf("密码:9vbs");gold-=660;getchar();getchar();}}}if(n==13){if(gold<160) ERR_1();else{system("cls");printf("是否花费160金币购买[背景音乐:冬日]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:冬日]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/12Ag9xjctvG2lYPCSv3d2Og\n");printf("密码:acx6");gold-=160;getchar();getchar();}}}if(n==14){if(gold<640) ERR_1();else{system("cls");printf("是否花费640金币购买[背景音乐:圣诞]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:圣诞]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1nI-5gWIDYcM2yeKIuIL74Q\n");printf("密码:pnxf");gold-=640;getchar();getchar();}}}if(n==15){if(gold<680) ERR_1();else{system("cls");printf("是否花费680金币购买[背景音乐:百变圣诞夜]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:百变圣诞夜]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1xLttrTruwMHVuqCOizx4TQ\n");printf("密码:77gr");gold-=680;getchar();getchar();}}}//----------------------------1.0更新 if(n==16){if(gold<720) ERR_1();else{system("cls");printf("是否花费720金币购买[背景音乐:深空]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:深空]\n");printf("进入网址获取音乐\n链接: https://pan.baidu.com/s/1HgI8WlLHhBZC3v2AYAHPSA\n");printf("密码:xhqk");gold-=720;getchar();getchar();}}}if(n==17){if(gold<480) ERR_1();else{system("cls");printf("是否花费480金币购买[背景音乐:8比特]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:8比特]\n");printf("进入网址获取音乐\n链接: https://pan.baidu.com/s/1UIS5fp7xp5ZvW7p5BJ3aPw\n");printf("密码:3c34");gold-=480;getchar();getchar();}}}if(n==18){if(gold<800) ERR_1();else{system("cls");printf("是否花费800金币购买[背景音乐:像素]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:像素]\n");printf("进入网址获取音乐\n链接: https://pan.baidu.com/s/1e-iMBopWzXRuY3qaBsyWWQ\n");printf("密码:1crv");gold-=800;getchar();getchar();}}}if(n==19){if(gold<960) ERR_1();else{system("cls");printf("是否花费960金币购买[背景音乐:亡灵之舞一 - F777]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:亡灵之舞一 - F777]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1il4PsEgpLTYoutveNHSz9Q\n");printf("密码:y4jk");gold-=960;getchar();getchar();}}}if(n==20){if(gold<1200) ERR_1();else{system("cls");printf("是否花费1200金币购买[背景音乐:亡灵之舞二 - F777]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:亡灵之舞二 - F777]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1oZOLWdWhaYr1J-GlC8gzQQ\n");printf("密码:jrar");gold-=1200;getchar();getchar();}}}if(n==21){if(gold<1000) ERR_1();else{system("cls");printf("是否花费1000金币购买[背景音乐:8比特 - F777]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:8比特 - F777]\n");printf("进入网址获取音乐\n链接: https://pan.baidu.com/s/1MVhCaWiuE_CiZhaAj01mvA\n");printf("密码:aq6f");gold-=1000;getchar();getchar();}}}if(n==22){if(gold<1200) ERR_1();else{system("cls");printf("是否花费1200金币购买[背景音乐:像素 - F777]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:像素 - F777]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1zKwszhhd45f4BgWc_FoRFA\n");printf("密码:qq4n");gold-=1200;getchar();getchar();}}}if(n==23){if(gold<1200) ERR_1();else{system("cls");printf("是否花费1200金币购买[背景音乐:Faded Remix - D.Ball]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:Faded Remix - D.Ball]\n");printf("进入网址获取音乐\n链接: https://pan.baidu.com/s/1IeR_Ipm1y3K71QZ0nVEQqA\n");printf("密码:a8we");gold-=1200;getchar();getchar();}}}if(n==24){if(gold<750) ERR_1();else{system("cls");printf("是否花费750金币购买[背景音乐:极速挑战 - D.Ball]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:极速挑战 - D.Ball]\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/1_yAz0T_gz8dqVndj_QVUIA\n");printf("密码:kwxa");gold-=750;getchar();getchar();}}}if(n==25){if(gold<960) ERR_1();else{system("cls");printf("是否花费960金币购买[背景音乐:春节 - D.Ball]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得[背景音乐:春节 D.Ball\n");printf("进入网址获取音乐\nhttps://pan.baidu.com/s/14fylCKNn00vrskcGtgInGg\n");printf("密码:beh2");gold-=960;getchar();getchar();}}}if(n==64){if(gold<5200) ERR_1();else{system("cls");printf("是否花费5200金币购买[背景音乐套装:Alan Walker]?\n0| 再想想\n1| 确认购买\n");scanf("%d",&buy);if(buy==1){system("cls");printf("恭喜购买成功,获得:\n[背景音乐套装:Alan Walker]\n");gold-=5200;getchar();printf("打开文件夹里的音乐提取程序,在里面输入密码\n密码:%s\n抱歉,输出可能有问题,密码只取前四位就行了",str);if(PC_64Bit) system("start 音乐提取程序-64bit");else system("start 音乐提取程序-32bit");getchar();}}}if(n==0){int g=rand()%10;printf("恭喜获得[金币]x%d\n",g);gold+=g;}if(n==-1) break;Sleep(1000);system("cls");}return;
}
void Level_4()
{steve.atk=120;steve.def=10;steve.hp=25;steve.maxhp=75;steve.exp=148;system("cls");printf("第四章 包围");Sleep(2000);system("cls");printf("你:不行啊一直在这耗着迟早要饿死!\n");getchar();getchar();system("cls");printf("3层:呃!~~~哇!~~~~\n");getchar();system("cls");printf("你:完了!3层也有好多僵尸......\n");getchar();system("cls");int i,j;for(i=1;i<=5;i++){printf("加载中...\n");for(j=1;j<=i;j++) printf("█");printf("%d",i*20);Sleep(500);if(i==5) break;system("cls"); }Sleep(1000);system("cls");int r;printf("你:去4层!\n");getchar();system("cls");printf("地点:公司4层,电梯间\n时间:21:00\n");getchar();system("cls");printf("你:从楼上绕下去,躲开他们!\n");getchar(); system("cls");printf("你:地点:公司4层,紧急通道\n时间:21:10\n");getchar();system("cls");printf("轰!哗啦!!!呃!!!!!!\n");getchar();system("cls");printf("公司实验楼11层发生爆炸\n");getchar();system("cls");printf("你:啊!!\n砰!咚!咣!!    你受到爆炸的冲击波而从紧急通道上摔了下去\n");getchar();system("cls");printf("你摔到了3层的紧急通道上\n");getchar();system("cls");printf("你:哎呦卧槽&@*%#!...\n");getchar();system("cls");printf("在你起身时,一只僵尸朝你走来\n");getchar();system("cls");printf("你:啊!!走开!!!!\n");getchar();system("cls");printf("呃!!!!!!\n");getchar();system("cls");printf("僵尸:(啪!)呃。。。\n");getchar();system("cls");printf("? ? ?:你是谁\n");getchar();system("cls");printf("[宋体][color=#7FFFFFFF]::|你:我,呃,我是公司的员工[/color:lightwhite]\n");getchar();system("cls");printf("???:我是公司的保安,老刘\n");getchar();system("cls");printf("砰!咚!呃!!!!\n");getchar();system("cls");printf("老刘:快走,他们又要来了!从紧急通道下去!\n");getchar();system("cls");printf("你:哦好的!老刘你也快走!\n");getchar();system("cls");printf("老刘:下去!从大门出去!\n");getchar();system("cls");printf("你:办公楼的门口有一只僵尸,打死他\n");getchar();system("cls");printf("按任意键开始战斗\n");getchar();system("cls");printf("老刘:我在正面,我分散他的注意力!你从侧面打!\n");getchar();system("cls");zombie.atk=15;zombie.def=30;zombie.exp=72;zombie.hp=600;zombie.lev=8;int atk_laoliu=60;printf("敌人信息:\n");printf("敌人:普通僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:普通僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d 僵尸血量:%d\n",steve.hp,steve.maxhp,zombie.hp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 锥子 90伤害,攻速1/4\n");printf("3| 铁棍 160伤害 攻速1\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",90-zombie.def);Sleep(500);printf("你对僵尸造成了%d伤害\n",90-zombie.def);Sleep(500);printf("你对僵尸造成了%d伤害\n",90-zombie.def);Sleep(500);printf("你对僵尸造成了%d伤害\n",90-zombie.def);Sleep(500);zombie.hp=zombie.hp-(90-zombie.def)*4;}else if(n==3){printf("你对僵尸造成了%d伤害\n",160-zombie.def);zombie.hp=zombie.hp-(160-zombie.def);}else printf("无效输入\n");Sleep(1000);r=rand()%3;if(r!=0){printf("老刘对僵尸造成了%d伤害\n",atk_laoliu-zombie.def);zombie.hp=zombie.hp-(atk_laoliu-zombie.def);}if(zombie.hp<=0) break;r=rand()%4;if(r==0 || r==1){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else printf("僵尸去追赶老刘,没有注意到你\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级普通僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}Sleep(2000);system("cls");printf("你:老刘快走!其他僵尸追上来了!\n");getchar();getchar();system("cls");printf("你们来到公司大门口,却被眼前的景象惊呆了!\n");getchar();system("cls");printf("大门口全是僵尸,根本出不去\n");getchar();system("cls");printf("与此同时,其他僵尸也从办公楼追了出来\n");getchar();system("cls");printf("第四章 包围 完\n恭喜完成第四章,奖励金币220");gold+=220;Sleep(2000);system("cls");return;
}
void dead_1()
{system("cls");printf("在你俩攻击大门口的僵尸时,身后的僵尸已经围了上来,在前后僵尸的围攻,你们倒下了\n");getchar();getchar();printf("提示:不要将视野局限在几个选项上,如果你尝试一下选项之外的数字,一定会成功的!(10秒后退出)");Sleep(10000);system("cls");return;
}
void dead_2()
{system("cls");printf("在你俩攻击身后的僵尸时,大门外的僵尸已经围了上来,在前后僵尸的围攻,你们倒下了\n");getchar();getchar();printf("提示:不要将视野局限在几个选项上,如果你尝试一下选项之外的数字,一定会成功的!(10秒后退出)");Sleep(10000);system("cls");return;
}
void Level_5()
{steve.exp=148;steve.atk=120;steve.hp=25;steve.maxhp=75;steve.def=10;system("cls");printf("第五章 离开公司\n");Sleep(2000);system("cls");printf("你:怎么办!后面的僵尸追上来了!我们没退路了!\n");getchar();getchar();system("cls");printf("老刘:要么突破前面,逃离公司;要么突破后面,撤回公司,在想办法\n");getchar();system("cls");printf("你:我们必须做出抉择\n");getchar();system("cls");printf("老刘:快!要不我们撤回公司办公楼,在想办法\n");getchar();system("cls");printf("你:说不定办公楼咱们已经上不去了,楼上的僵尸都下来了,倒不如继续前进?\n");getchar();system("cls");printf("老刘:没时间了!他们已经看见我们了!\n");getchar();system("cls");while(1){printf("1| 向前突破\n");printf("2| 向后突破\n");scanf("%d",&n); if(n<=0 || n>3){printf("无效输入\n");Sleep(1000);}else if(n==1){dead_1();return;}else if(n==2){dead_2();return;}else if(n==3) break;system("cls");}getchar();system("cls");printf("呵呵这个选择是不是很坑?\n");getchar();system("cls");printf("好了现在继续进入主剧情");getchar();system("cls");printf("你:老刘快来!从围墙翻过去!");getchar();system("cls");printf("你:老刘呢?");getchar();system("cls");printf("老刘:我来了!你快过去!");getchar();system("cls");printf("老刘:我刚才给你找了点药,你快擦上吧");getchar();system("cls");printf("获得[酒精棉球],血量+15");steve.hp+=15;getchar();system("cls");printf("获得[绷带],血量回复至70");steve.hp=70;getchar();system("cls");printf("获得[止痛药],血量上限+25,血量+20");steve.maxhp+=25;steve.hp+=20;getchar();system("cls");printf("你:谢谢!");getchar();system("cls");printf("老刘:我还带来了这个");getchar();system("cls");printf("获得[硬纸板],防御+15");steve.def+=15;getchar();system("cls");printf("老刘:看!那个僵尸....");getchar();system("cls");printf("你:感觉那个僵尸和其他的不太一样......?");getchar();system("cls");printf("僵尸:呃!~~~~~~");getchar();system("cls");printf("你:哦!他发现我们了");getchar();system("cls");printf("老刘:咱还是老战术");getchar();system("cls");printf("你:嗯!");getchar();system("cls");printf("按任意键开始战斗");getchar();system("cls");int poisoned_remain=0;int atk_laoliu=80;int r;zombie.poisonous=true;zombie.hp=1200;zombie.lev=12;zombie.exp=220;zombie.atk=40;zombie.def=40;zombie.poisonous_atk=10;printf("敌人信息:\n");printf("敌人:剧毒僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d|剧毒伤害:%d/2    防御:%d    击杀可获得%d经验(8秒后继续)\n",zombie.hp,zombie.atk,zombie.poisonous_atk,zombie.def,zombie.exp);printf("注意:剧毒伤害:atk/round的意思是僵尸的持续伤害为atk每回合(包含受到僵尸普通伤害的回合,作为你第一次受到持续伤害的回合),持续round回合(受到僵尸普通伤害的回合算第一个回合)");Sleep(8000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:剧毒僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d 僵尸血量:%d\n",steve.hp,steve.maxhp,zombie.hp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 锥子 100伤害,攻速1/4\n");printf("3| 铁棍 220伤害 攻速1/2\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",100-zombie.def);Sleep(500);printf("你对僵尸造成了%d伤害\n",100-zombie.def);Sleep(500);printf("你对僵尸造成了%d伤害\n",100-zombie.def);Sleep(500);printf("你对僵尸造成了%d伤害\n",100-zombie.def);Sleep(500);zombie.hp=zombie.hp-(100-zombie.def)*4;}else if(n==3){printf("你对僵尸造成了%d伤害\n",220-zombie.def);Sleep(750);printf("你对僵尸造成了%d伤害\n",220-zombie.def);Sleep(750);zombie.hp=zombie.hp-(220-zombie.def)*2;}else printf("无效输入\n");Sleep(1000);r=rand()%2;if(r!=0){printf("老刘对僵尸造成了%d伤害\n",atk_laoliu-zombie.def);zombie.hp=zombie.hp-(atk_laoliu-zombie.def);}if(zombie.hp<=0) break;r=rand()%4;if(r==0){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);poisoned_remain=2;}else printf("僵尸去追赶老刘,没有注意到你\n");if(poisoned_remain>0){printf("你收到中毒伤害10\n");steve.hp-=10;poisoned_remain--;}Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级剧毒僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);system("cls");return;}system("cls");printf("你(大喊):F*CK!这僵尸有毒啊!!!!!!");getchar();getchar();system("cls");printf("老刘:别喊,前面有人");getchar();system("cls");printf("老刘:去看看");getchar();system("cls");printf("你:嘿你好,你是谁?");getchar();system("cls");printf("你:你是住这旁边的居民区吗?");getchar();system("cls");printf("? ? ?:你是?");getchar();system("cls");printf("老刘:哦,我们是L公司的保安和员工");getchar();system("cls");printf("? ? ?:我是军队的人,一个士兵");getchar();system("cls");printf("你:为什么整个大街都是僵尸啊?");getchar();system("cls");printf("士兵:8月13日晚上,S市郊区出现僵尸病毒感染者,我们...");getchar();system("cls");printf("砰!哗啦!!呃!!!");getchar();system("cls");printf("士兵:他们到处都是,先找个安全的地方在和你们说吧");getchar();system("cls");printf("你:去我家吧,那里安全一些");getchar();system("cls");printf("你:就在居民区里");getchar();system("cls");printf("士兵:我们用尽全力阻击僵尸,但S市城区还是于8月16日傍晚到达了城区");getchar();system("cls");printf("士兵:虽然政/府用重型武器暂时压制僵尸,撤离民众,但病毒传播太快了,8月18日中午S市彻底失守,很多人都被感染了");getchar();system("cls");printf("士兵:8月19日早上,军队也开始撤离,我们的车在S市城区边缘被僵尸围攻");getchar();system("cls");printf("士兵:我们一车20个人,只有我,我的3个战友和我的班长5个人跑了出来,其他人都牺牲了");getchar();system("cls");printf("士兵:我和我的战友走散了,我的班长说他要去商场找食物,让我在外面等着,然后商场里几声枪响之后就没声了");getchar();system("cls");printf("士兵:就这样,我撤回到这");getchar();system("cls");printf("你:也就是说S市到处都是僵尸,咱们出不去了?");getchar();system("cls");printf("老刘:咱们可以去M市啊,那离这不远");getchar();system("cls");printf("士兵:不光是S市,周围几个城市都沦陷了");getchar();system("cls");printf("你:那我们去哪啊?");getchar();system("cls");printf("士兵:目前大多数幸存者和军队都在H市");getchar();system("cls");printf("士兵:我这有一张转移路线的地图,不太完整");getchar();system("cls");printf("SS...S.............CCC.C#.CC\n");printf("S..SS.SSS........CC.C..CC.CC\n");printf(".SS..S.S.S..........C..C.C..\n");printf("S*.SS..S.S............C.....\n");printf("SSS#SS.S----------+........H\n");printf("S..SS.S...........|......HH.\n");printf(".SS..SS...........+-----H.HH\n");printf("S.S|SS.........D.......HHH#H\n");printf(".S.+-------+...DDDDD....H.H.\n");printf("...........|....#.D.....HH..\n");printf("M...M......|...DDDD.......HH\n");printf("M.MM..M....|...D..........|.\n");printf("M#M.MMM....|..............|.\n");printf("M.MM.......+--------------+.\n");printf("MMM.........................\n");printf("士兵:我们在*的位置,大部队从两条路线走,一条市区,一条郊外,每个城市的市中心是#");getchar();printf("士兵:咱们如果去M市,就必须经过S市的郊外森林,那里几乎没有补给,僵尸还多,我们能携带的物资有限,每少一个人对我们所有人都不利");getchar();printf("士兵:如果咱们有车,还有足够的燃油,可以先到C市,在从C市到H市");getchar();printf("你:如果穿过S市的郊外森林呢?");getchar();printf("士兵:森林里都是树,不好走,很容易被僵尸拦截");getchar();printf("士兵:除非我们用枪在车上打,不然近身搏斗会被包围");getchar();printf("你:C市太分散了,搜索物资太慢,但M市搜完直接朝H市走了");getchar();printf("老刘:D市为什么不能去?");getchar();printf("士兵:D市太小了,物资不充足,可能应付不了僵尸");getchar();printf("你:要不咱们找辆车,直接去M市,从D市路过,然后就到H市,速度还快");getchar();system("cls");printf("第五章 离开公司 完\n恭喜完成第五章,奖励金币250");gold+=250;Sleep(2000);system("cls");return;
}
void Endless_mode()
{MessageBox(NULL,TEXT("插句话啊,无尽模式现在还在测试期,体验感可能不是很好,请谅解"),TEXT("生化危机1.0.4 - 无尽模式"),MB_ICONASTERISK);int i,j;system("cls");printf("无尽模式\n");Sleep(3000);system("cls");steve.hp=100;steve.maxhp=100;steve.def=10;steve.atk=50;steve.exp=0;zombie.lev=1;int r1=256,r2=256,r3=256,speed=0;int g=0;int zombie_gold=0;for(i=1;i<=5;i++){printf("载入僵尸数据...\n");for(j=1;j<=i;j++) printf("█");printf("%d",i*20);Sleep(600);if(i==5) break;system("cls"); }system("cls");MessageBox(NULL,TEXT("加载完成"),TEXT("生化危机"),MB_ICONASTERISK);for(i=1;i<=5;i++){printf("载入击杀奖励...\n");for(j=1;j<=i;j++) printf("█");printf("%d",i*20);Sleep(400);if(i==5) break;system("cls"); }system("cls");MessageBox(NULL,TEXT("加载完成"),TEXT("生化危机"),MB_ICONASTERISK);printf("即将进入无尽模式");Sleep(2000);system("cls");printf("开始了!");Sleep(2000);system("cls");while(1){r1=rand()%6;zombie.atk=15*zombie.lev;zombie.def=5*zombie.lev;zombie.hp=100*zombie.lev+10*rand()%5;zombie.poisonous_round=256;zombie.poisonous_atk=0;zombie.poisonous=false;zombie_gold=12*zombie.lev;while(steve.hp>0 && zombie.hp>0){r1=256;r2=256.0;r3=256;r1=rand()%100;if(r1<5) speed=6;else if(r1>=5 && r1<15) speed=4;else if(r1>=15 && r1<30) speed=3;else if(r1>=30 && r1<50) speed=2;else speed=1;printf("敌人:僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d 僵尸血量:%d\n",steve.hp,steve.maxhp,zombie.hp);printf("你的信息:伤害:%d,防御:%d,游戏结束获得%d金币\n",steve.atk,steve.def,g);printf("僵尸信息:伤害:%d,防御:%d,击杀获得%d金币\n",zombie.atk,zombie.def,zombie_gold);printf("1| 攻击 %d伤害 攻速",steve.atk);if(speed==1) printf("1\n");else printf("1/%d\n",speed);r2=rand()%100;printf("2| 闪避 ");char ch='%';printf("你有%d%c的概率躲掉僵尸攻击\n",r2,ch);printf("-1| 离开\n");scanf("%d",&n);if(n==1){int i=1;while(i<=speed){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);Sleep(1200/speed);i++;}Sleep(800);zombie.hp-=(steve.atk-zombie.def)*speed;}else if(n==2){r3=rand()%100;if(r3<=r2){printf("恭喜,成功的躲开僵尸的攻击\n");Sleep(1000);}else{printf("很遗憾,你未能躲开僵尸的攻击\n");Sleep(1000);printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);Sleep(1000);}}else if(n==-1){printf("你离开了无尽模式,5秒后返回主菜单\n");Sleep(5000);return; }else printf("无效输入");if(zombie.hp<=0) break;if(n!=2){printf("僵尸对你造成了%d伤害",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}if(steve.hp<=0){system("cls");printf("你死了,请重新来过\n获得金币:%d\n5秒后结束",g);gold+=g;Sleep(5000);return;}if(zombie.hp<=0) break;system("cls");}printf("\n恭喜击杀[%d级僵尸],获得金币%d\n2秒后继续",zombie.lev,zombie_gold);g+=zombie_gold;Sleep(2000);zombie.lev++;system("cls");printf("请选择强化方案\n");printf("1| 血量\n");printf("2| 伤害\n");printf("3| 防御\n");printf("4| 随机(未开发)\n");scanf("%d",&n);if(n==1){r1=rand()%5;if(r1==0 || r1==1){int maxn=(rand()%8+3)*10;printf("血量上限提升%d",maxn);steve.maxhp+=maxn;steve.hp+=maxn;Sleep(2000);}else{r1=rand()%50;if(r1>=0 && r1<5){printf("血量回满\n");steve.hp=steve.maxhp;Sleep(2000);}if(r1>=5 && r1<12){char ch='%';printf("血量回复至90%c",ch);steve.hp=steve.maxhp/10*9;Sleep(2000);}if(r1>=12 && r1<20){char ch='%';printf("血量回复至75%c",ch);steve.hp=steve.maxhp/100*75;Sleep(2000);}if(r1>=20 && r1<30){printf("血量+50\n");steve.hp+=50;if(steve.hp>steve.maxhp){printf("血量超过上线!最多只能回复至%d!",steve.maxhp);steve.hp=steve.maxhp;}Sleep(2000);}if(r1>=30){printf("血量+30\n");steve.hp+=30;if(steve.hp>steve.maxhp){printf("血量超过上线!最多只能回复至%d!",steve.maxhp);steve.hp=steve.maxhp;}Sleep(2000);}}}if(n==2){r1=rand()%200;if(r1<5){printf("伤害x5");steve.atk*=5;}if(r1>=5 && r1<20){printf("伤害x3\n");steve.atk*=3;}if(r1>=20 && r1<40){printf("伤害x2");steve.atk*=2;}if(r1>=40 && r1<60){char ch='%';printf("伤害随机增加10%c~50%c",ch,ch);r2=(rand()%41+10);steve.atk+=steve.atk*r2/100;}if(r1>=65 && r1<90){char ch='%';printf("伤害随机增加5%c~25%c",ch,ch);r2=(rand()%21+5);steve.atk+=steve.atk*r2/100;}if(r1>=100 && r1<140){printf("伤害随机增加20~150\n");r2=rand()%131+20;steve.atk+=r2;}if(r1>=140){printf("伤害+40");steve.atk+=40;}Sleep(2000);}if(n==3){r1=rand()%300;if(r1<6){printf("防御x5");steve.def*=5;}if(r1>=6 && r1<15){printf("防御x3\n");steve.def*=3;}if(r1>=15 && r1<27){printf("防御x2");steve.def*=2;}if(r1>=27 && r1<50){char ch='%';printf("防御随机增加10%c~50%c",ch,ch);r2=(rand()%41+10);steve.atk+=steve.atk*r2/100;}if(r1>=50 && r1<80){char ch='%';printf("防御随机增加5%c~25%c",ch,ch);r2=(rand()%21+5);steve.atk+=steve.atk*r2/100;}if(r1>=80 && r1<120){printf("防御随机增加40~160\n");r2=rand()%131+20;steve.atk+=(int)r2;}if(r1>=120 && r1<180){printf("防御+75");steve.def+=75;}if(r1>=180){printf("防御+50");steve.def+=50;}Sleep(2000);}if(n==4){printf("呵呵,叫你手欠,这里是没有东西的!");Sleep(2000);}if(n<1 && n>4){printf("无效输入");Sleep(2000);}system("cls");}return;
}
/*void no_enter()
{system("cls");while(1){printf("我已经说了禁止进入,现在你出不去了,不过你可以按下Ctrl+c然后自己把无尽模式(我已经写了部分代码,在第五章的后面)做完整,祝好运^_^");system("color A6");Sleep(200);system("color 61");Sleep(200);system("color 54");Sleep(200);system("color 18");Sleep(200);system("color 3D");Sleep(200);system("cls");}return;
}*/void Level_6()
{getchar();steve.atk=120;steve.maxhp=100;char ch='%';printf("第六章 出发\n");Sleep(2000);system("cls");printf("士兵:这里,我从药店找到的药,还有一些武器\n");getchar();system("cls");printf("获得[绷带],血量回复至90%c\n",ch);steve.hp=steve.maxhp/10*9;getchar();system("cls");printf("获得[小刀],伤害增加至150\n");steve.atk=150;steve.def=20;getchar();system("cls");printf("士兵:我记得我们郊区的营地里好像还有一辆车\n");getchar();system("cls");printf("士兵:在去营地的路上,正好会路过我和班长失联的商场\n");getchar();system("cls");printf("老刘:咱们可能需要绕过北大街,要不咱们从西侧的小路走?\n");getchar();system("cls");printf("士兵:我想可以\n");getchar();system("cls");printf("士兵:我们的营地里还有一些枪,弹药和补给\n");getchar();system("cls");printf("你:OK!那我们赶紧出发吧\n");getchar();system("cls");printf("士兵:停!外面有人!\n");getchar();system("cls");printf("楼道:咯噔!咯噔!......\n");getchar();system("cls");printf("你(要开门):谁!\n");getchar();system("cls");printf("士兵(阻止):不,从猫眼看!\n");getchar();system("cls");printf("你:看不见?\n");getchar();system("cls");printf("你打开了你家的门\n");getchar();system("cls");printf("? ? ?:啊?\n");getchar();system("cls");printf("你:啊?\n");getchar();system("cls");printf("你:你是谁?");getchar();system("cls");printf("士兵:?我看一下???");getchar();system("cls");printf("老刘:呃?");getchar();system("cls");printf("? ? ?:是我,我不是僵尸!");getchar();system("cls");printf("? ? ?:哎!我真的不是僵尸!!!");getchar();system("cls");printf("士兵:老王?");getchar();system("cls");printf("? ? ?:哈?锤子?");getchar();system("cls");printf("老王:你咋会在这里?");getchar();system("cls");printf("锤子:大部队都转移到H市了,我们打算明天早上就出发");getchar();system("cls");printf("老刘(笑):哈,锤子,这个外号还不错吗,哈哈哈...");getchar();system("cls");printf("锤子:呃?(⊙﹏⊙)");getchar();system("cls");printf("老王:我身上有一些燃油,这旁边有个停车场,可能会找到一辆能开的车");getchar();system("cls");printf("你:那快去吧!");getchar();system("cls");printf("地点:停车场\n时间8月22日 05:00");getchar();system("cls");printf("你:这辆车可不可以?");getchar();system("cls");printf("老刘:试试吧");getchar();system("cls");printf("咔咔咔咔......");getchar();system("cls");printf("老王:他们过来了!快呀!");getchar();system("cls");printf("老刘:这边的车也发动不了");getchar();system("cls");printf("锤子:该死的僵尸!\n砰!啪!光!呃~~~~~~");getchar();system("cls");printf("锤子,老王(大喊):我们快顶不住了!行不行啊");getchar();system("cls");printf("咔咔咔咔~~~呼~~~");getchar();system("cls");printf("你:打着火了!谁会开车?");getchar();system("cls");printf("老王:我来开车!锤子,我的手枪给你!你们俩,上车!");getchar();system("cls");printf("呼啦~~~呃~~~~~~啪~~啊!!");getchar();system("cls");printf("你被僵尸从车上拽下来了!");getchar();system("cls");printf("你:啊!!!");getchar();system("cls");printf("老刘:打死他!");getchar();system("cls");printf("锤子:我有枪,我帮你!");getchar();system("cls");printf("按任意键开始战斗");getchar();system("cls");int poisoned_remain=0;int atk_laoliu=105;int atk_chuizi=230;int r;steve.exp=368;zombie.poisonous=true;zombie.hp=2400;zombie.lev=15;zombie.exp=320;zombie.atk=40;zombie.def=30;zombie.poisonous_atk=10;printf("敌人信息:\n");printf("敌人:剧毒僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d|剧毒伤害:%d/2    防御:%d    击杀可获得%d经验(8秒后继续)\n",zombie.hp,zombie.atk,zombie.poisonous_atk,zombie.def,zombie.exp);printf("注意:剧毒伤害:atk/round的意思是僵尸的持续伤害为atk每回合(包含受到僵尸普通伤害的回合,作为你第一次受到持续伤害的回合),持续round回合(受到僵尸普通伤害的回合算第一个回合)");Sleep(8000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:剧毒僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d 僵尸血量:%d\n",steve.hp,steve.maxhp,zombie.hp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 小刀 330伤害,攻速1/3\n");printf("3| 铁棍 270伤害 攻速1/4\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",330-zombie.def);Sleep(666);printf("你对僵尸造成了%d伤害\n",330-zombie.def);Sleep(667);printf("你对僵尸造成了%d伤害\n",330-zombie.def);Sleep(667);zombie.hp=zombie.hp-(330-zombie.def)*3;}else if(n==3){printf("你对僵尸造成了%d伤害\n",270-zombie.def);Sleep(500);printf("你对僵尸造成了%d伤害\n",270-zombie.def);Sleep(500);printf("你对僵尸造成了%d伤害\n",270-zombie.def);Sleep(500);printf("你对僵尸造成了%d伤害\n",270-zombie.def);Sleep(500);zombie.hp=zombie.hp-(270-zombie.def)*4;}else printf("无效输入\n");Sleep(1000);r=rand()%8;if(r<=2){printf("老刘对僵尸造成了%d伤害\n",atk_laoliu-zombie.def);zombie.hp=zombie.hp-(atk_laoliu-zombie.def);}else if(r==3 || r==4){printf("锤子对僵尸造成了%d伤害\n",atk_chuizi-zombie.def);zombie.hp=zombie.hp-(atk_chuizi-zombie.def);}if(zombie.hp<=0) break;r=rand()%5;if(r==0 || r==1){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);poisoned_remain=2;}else printf("你躲开了僵尸的攻击\n");if(poisoned_remain>0){printf("你收到中毒伤害10\n");steve.hp-=10;poisoned_remain--;}Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级剧毒僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);system("cls");return;}getchar();//生化危机1.0修复 system("cls");printf("你(冲上车):我们成功了!");getchar();system("cls");printf("锤子:那还用说!要是失败了我们都要死在这");getchar();system("cls");printf("你(大笑):主人公要是死了,这剧情没法进行了,啊哈哈哈哈...");getchar();system("cls");printf("老刘:这......(⊙﹏⊙)");getchar();system("cls");printf("锤子:这......(⊙﹏⊙)");getchar();system("cls");printf("老王:这......(⊙﹏⊙)");getchar();system("cls");printf("第六章 出发 完\n恭喜完成第六章,奖励金币280");gold+=280;Sleep(2000);system("cls");return;
}
void Level_7()
{getchar();system("cls");printf("第七章 3号快速路");Sleep(2000);system("cls");printf("时间:8月22日 10:00(上午)\n地点:西小街");getchar();system("cls");printf("你:前面右转,走快速路!");getchar();system("cls");printf("老王:好的!");getchar();system("cls");printf("锤子:看前面,那是什么?");getchar();system("cls");printf("老刘:黑压压的一大片");getchar();system("cls");printf("老王:不好!是一大群僵尸!");getchar();system("cls");printf("你:加速!穿过去!");getchar();system("cls");printf("老王:豁出去了!");getchar();system("cls");printf("你:看!那个牌子!\n商场:3KM");getchar();system("cls");printf("老王:3公里!没问题!");getchar();system("cls");int remain=3000,a[5]={1e9,1e9,1e9,1e9,1e9},r;while(remain>0){a[1]=rand()%3;a[2]=rand()%3;a[3]=rand()%3;if(a[1]==0) system("color 04");if(a[2]==0) system("color 0A");if(a[3]==0) system("color 09");if(a[1]==0 && a[2]==0) system("color 06");if(a[1]==0 && a[3]==0) system("color 05");if(a[2]==0 && a[3]==0) system("color 0B");if(a[1]!=0 && a[2]!=0 && a[3]!=0) system("color 08");if(a[1]==0 && a[2]==0 && a[3]==0) system("color 0F");printf("剩余路程:%dm\n",remain);printf("1| 靠左\n");printf("2| 直走\n");printf("3| 靠右\n");printf("4| 攻击\n");printf("根据提示前进,走错了会被僵尸包围的哦!(再提示:RGB)\n");scanf("%d",&n);if(n<1 || n>4){printf("无效输入");Sleep(2000);system("cls");continue;}if(n==4){printf("你们从僵尸群中杀出了一条血路\n");r=80+rand()%41;Sleep(1000);printf("前进%dm",r);remain-=r;Sleep(2000);system("cls");continue;}if(a[n]>0){printf("很不幸,你们没能冲出僵尸的包围(5秒后结束)\n");Sleep(5000);system("cls");return;}else{printf("你们成功的从僵尸中间穿过\n");r=150+rand()%101;Sleep(1000);printf("前进%dm",r);remain-=r;Sleep(2000);system("cls");}}system("color 0F");printf("你:商场......");getchar();getchar();system("cls");printf("锤子:死一般的寂静...");getchar();system("cls");printf("商场里(枪响):砰!啪!");getchar();system("cls");printf("锤子,老王:班长?!");getchar();system("cls"); printf("第七章 3号快速路 完\n恭喜完成第七章,奖励金币220");gold+=220;Sleep(2000);system("cls");return;
}
void Level_8()
{printf("第八章 商场\n");Sleep(2000);system("cls");printf("商场里:砰!哐当~~~哗啦~~~~~~");getchar();getchar();system("cls");printf("老王:我敢打赌,这里面肯定有什么东西");getchar();system("cls");printf("老王:走啊,进去");getchar();system("cls");printf("锤子:对啊班长还在里面呢!");getchar();system("cls");printf("你:好!我们走!");getchar();system("cls");printf("砰!啪!");getchar();system("cls");printf("你:又有枪声!");getchar();system("cls");printf("咣!");getchar();system("cls");printf("老王:看!一个弹匣!");getchar();system("cls");printf("你:好像是空的");getchar();system("cls");printf("老王:肯定是班长留下的!");getchar();system("cls");printf("老刘:我记得,商场里好像有个五金店?");getchar();system("cls");printf("你:在几层?");getchar();system("cls");printf("老刘:好像在4层,我有点忘了");getchar();system("cls");printf("锤子:这样吧,在商场里搜索一些物资,顺便找班长");getchar();system("cls");printf("老王:我看行");getchar();system("cls");printf("老王:现在是中午12点,天黑之前咱们必须出去!");getchar();system("cls");printf("老刘:下午5点");getchar();system("cls");printf("老王:好...");getchar();system("cls");printf("你:听!");getchar();system("cls");printf("老王,锤子,老刘:嗯?");getchar();system("cls");printf("哐,砰,哗啦~~");getchar();system("cls");printf("砰!啪!");getchar();system("cls");printf("哗啦!咣!哇!!哒哒哒!");getchar();system("cls");printf("老王,锤子:班长?");getchar();system("cls");printf("你:不,还有像重物撞击的声音,和碎玻璃的声");getchar();system("cls");printf("老王:这商场里总是感觉阴森森的");getchar();system("cls");printf("老王:锤子,我枪呢?");getchar();system("cls");printf("你:脚步声越来越近了!");getchar();system("cls");printf("老刘:快!上楼!");getchar();system("cls");printf("你:不好!");getchar();system("cls");printf("第八章 商场 完\n恭喜完成第八章,奖励金币50");gold+=50;Sleep(2000);system("cls");return;
}
void Level_9()
{printf("第九章 巨大的威胁");Sleep(2000); system("cls");getchar();printf("你:不好!");getchar();system("cls");printf("你:快!把门堵上");getchar();system("cls");printf("老王:锁上!");getchar();system("cls");printf("门外的僵尸:呃~~~咣!(撞门声)");getchar();system("cls");printf("老刘:我也来!");getchar();system("cls");printf("锤子:老王!枪给你!");getchar();system("cls");printf("老王:砰!砰!砰!(枪响)");getchar();system("cls");printf("锤子:快走!");getchar();system("cls");printf("你:哎,这怎么有个箱子");getchar();system("cls");printf("箱子:大号军用补给箱");getchar();system("cls");printf("你:打开看看");getchar();system("cls");printf("按任意键打开箱子");getchar();system("cls");printf("你:哇!");getchar();system("cls");printf("获得[匕首],伤害增加至200");steve.atk=200;getchar();system("cls");printf("获得[大号医疗箱],血量上线增加至200,且血量回满");steve.maxhp=200;steve.hp=200;getchar();system("cls");printf("获得[军用防弹衣],防御增加至60");steve.def=50; getchar();system("cls");printf("老王:顶不住了!快跑!!!!");getchar();system("cls");printf("你:四层!快!进去");getchar();system("cls");printf("老刘:快!顶住门");getchar();system("cls");printf("老王,锤子:关门!!!!");getchar();system("cls");printf("外面的僵尸:吼!!~~~~~~");getchar();system("cls");printf("你:呕,好险~~");getchar();system("cls");printf("老王:它们到处都是,这个商场已经呆不下去了");getchar();system("cls");printf("你:我们要马上出去");getchar();system("cls");//832printf("地点:商场4层-东门\n时间:14:00");getchar();system("cls");printf("你:走,从南门下");getchar();system("cls");printf("僵尸:呃~~~");getchar();system("cls");printf("你:又来这招,没用了小子!");getchar();system("cls");printf("按任意键开始战斗");getchar();zombie.poisonous=false;zombie.poisonous_atk=0;zombie.poisonous_round=0;zombie.atk=70;zombie.exp=768;zombie.def=50;zombie.hp=5000;steve.exp=832;zombie.lev=28;int lw_atk=500,r;system("cls");printf("敌人信息:\n");printf("敌人:普通僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:普通僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d 僵尸血量:%d\n",steve.hp,steve.maxhp,zombie.hp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 小刀 450伤害,攻速1/3\n");printf("3| 军用匕首 700伤害 攻速1/2\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",450-zombie.def);Sleep(750);printf("你对僵尸造成了%d伤害\n",450-zombie.def);Sleep(750);printf("你对僵尸造成了%d伤害\n",450-zombie.def);Sleep(750);zombie.hp=zombie.hp-(450-zombie.def)*3;}else if(n==3){printf("你对僵尸造成了%d伤害\n",700-zombie.def);Sleep(1000);printf("你对僵尸造成了%d伤害\n",700-zombie.def);Sleep(1000);zombie.hp=zombie.hp-(700-zombie.def)*2;}else printf("无效输入\n");Sleep(1000);r=rand()%3;if(r!=0){printf("老王对僵尸造成了%d伤害\n",lw_atk-zombie.def);zombie.hp=zombie.hp-(lw_atk-zombie.def);}if(zombie.hp<=0) break;r=rand()%4;if(r==0){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else printf("僵尸去追赶老王,没有注意到你\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级普通僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}system("cls");getchar();printf("哐当!呃!!");getchar();system("cls");printf("你:看!那里!!那个僵尸!!!");getchar();system("cls");printf("老刘:啊!!");getchar();system("cls");printf("锤子:啊!!");getchar();system("cls");printf("第九章 巨大的威胁 完\n恭喜完成第九章,奖励金币320");gold+=320;Sleep(2000);return;
}
void Level_10()
{printf("第十章 恶魔之影(注意:此章内容很长,请提前做好心里准备)");Sleep(4000);system("cls");printf("你:3米高的僵尸......!");getchar();getchar();system("cls");printf("老王:砰!砰!砰!(枪响)");getchar();system("cls");printf("Boss僵尸(后退):吼!!");getchar();system("cls");printf("锤子:我X这是个什么鬼啊!3米高!");getchar();system("cls");printf("老刘(扔水管):都闪开!");getchar();system("cls");printf("彭!");getchar();system("cls");printf("老王:砰!砰!砰!(再次枪响)");getchar();system("cls");printf("班长:哒哒哒哒哒哒哒哒~~~~(枪响)");getchar();system("cls");printf("老王:班长!!!");getchar();system("cls");printf("锤子:班长!!!");getchar();system("cls");printf("班长(吃惊):锤子,老王!!");getchar();system("cls");printf("Boss僵尸:吼!彭,彭,彭(脚步声)");getchar();system("cls");printf("老王:砰!砰!砰!(枪响)");getchar();system("cls");printf("老刘:看水管!");getchar();system("cls");printf("老刘:啪!(打中了Boss僵尸)");getchar();system("cls");printf("Boss僵尸:呃!!");getchar();system("cls");printf("你:哎呦我去!");getchar();system("cls");printf("按任意键开始战斗");//1600 getchar();zombie.lev=16;zombie.atk=75;zombie.def=30;zombie.hp=1600;zombie.maxhp=1600;zombie.exp=200;steve.hp=180;steve.def=50;steve.atk=200;steve.exp=1600;steve.maxhp=200;system("cls");printf("班长:接着!这把冲锋枪给你!");int r,k;double dou;getchar();system("cls");printf("你:好的谢谢!");getchar();system("cls");printf("获得[UZI冲锋枪]和[冲锋枪子弹9mm]x∞,伤害+75");getchar();steve.atk+=75;system("cls");printf("敌人信息:\n");printf("敌人:Boss僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:Boss僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d\n",steve.hp,steve.maxhp,zombie.hp);dou=(int)steve.hp;/*while(1){if(dou<steve.maxhp/5) break;else printf("█");dou-=(int)steve.maxhp/5;}*/k=zombie.hp;printf("\n僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);while(k>0){if(k>=zombie.maxhp/20){printf("█");k-=zombie.maxhp/20;}else{if(k<zombie.maxhp/80) printf("▏");else if(k<zombie.maxhp/60  && k>=zombie.maxhp/80) printf("▎");else if(k<zombie.maxhp/40  && k>=zombie.maxhp/60) printf("▌");else if(k<zombie.maxhp/20  && k>=zombie.maxhp/40) printf("▊");k=0;}}printf("\n武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 小刀 150伤害,攻速1/3\n");printf("3| 军用匕首 350伤害 攻速1/2\n");printf("4| UZI冲锋枪 120伤害 攻速1/8\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",150-zombie.def);Sleep(750);printf("你对僵尸造成了%d伤害\n",150-zombie.def);Sleep(750);printf("你对僵尸造成了%d伤害\n",150-zombie.def);Sleep(750);zombie.hp=zombie.hp-(150-zombie.def)*3;}else if(n==3){printf("你对僵尸造成了%d伤害\n",350-zombie.def);Sleep(1000);printf("你对僵尸造成了%d伤害\n",350-zombie.def);Sleep(1000);zombie.hp=zombie.hp-(350-zombie.def)*2;}else if(n==4){int i;for(i=1;i<=8;i++){printf("你对僵尸造成了%d伤害\n",120-zombie.def);Sleep(250);}zombie.hp=zombie.hp-(120-zombie.def)*8;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;r=rand()%2;if(r==0){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else printf("你成功的躲过僵尸的攻击\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级Boss僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}system("cls");getchar();printf("你:跑了...");getchar();system("cls");printf("班长:你们怎么会在这里?");getchar();system("cls");printf("老王:哦我们本来是在市中心的");getchar();system("cls");printf("老王:我,锤子,还有这两位先生,我们原计划是去H市的,现在在这里搜寻食物");getchar();system("cls");printf("班长:幸会幸会");getchar();system("cls");printf("你,老刘:幸会");getchar();system("cls");printf("班长:那个高3米的僵尸是这一带里最高,最壮的僵尸");getchar();system("cls");printf("你:所以我们用普通的武器是打不死他的?");getchar();system("cls");printf("班长:是的,不过用重型武器可能会杀死他吧");//----------------------1800 getchar();system("cls");printf("锤子:为什么打他几下他就跑了呢?普通的僵尸都是光和你拼命的");getchar();system("cls");printf("班长:他的智商很高,这几天我打他总是让他跑了,而且,他的恢复能力很强,几个小时就可以把枪伤还原");getchar();system("cls");printf("老刘:看来我们不适合分头行事");getchar();system("cls");printf("锤子:现在东门外面已经都是僵尸了,必须从商场的南门下");getchar();system("cls");printf("班长:好的!我掩护!");getchar();system("cls");printf("班长:先下楼,军队在这里驻扎过,说不定会找到他们留下来的装备");getchar();system("cls");printf("你:OK!");getchar();system("cls");printf("地点:S市商场3F\n时间:8月22日16:00");getchar();system("cls");printf("Boss僵尸:呃~~!!");getchar();system("cls");printf("你:诶,这厮咋又来了?");getchar();system("cls");printf("锤子:他朝你走过来了!");getchar();system("cls");printf("按任意键开始战斗");getchar();zombie.maxhp=2800;zombie.hp=2800;zombie.atk=80;zombie.def=40;zombie.exp=400;zombie.lev=27;steve.exp=1800;system("cls");printf("敌人信息:\n");printf("敌人:Boss僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:Boss僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d\n",steve.hp,steve.maxhp,zombie.hp);k=zombie.hp;printf("\n僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);while(k>0){if(k>=zombie.maxhp/20){printf("█");k-=zombie.maxhp/20;}else{if(k<zombie.maxhp/80) printf("▏");else if(k<zombie.maxhp/60  && k>=zombie.maxhp/80) printf("▎");else if(k<zombie.maxhp/40  && k>=zombie.maxhp/60) printf("▌");else if(k<zombie.maxhp/20  && k>=zombie.maxhp/40) printf("▊");k=0;}}printf("\n武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 小刀 220伤害,攻速1/3\n");printf("3| 军用匕首 400伤害 攻速1/2\n");printf("4| UZI冲锋枪 160伤害 攻速1/8\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",220-zombie.def);Sleep(750);printf("你对僵尸造成了%d伤害\n",220-zombie.def);Sleep(750);printf("你对僵尸造成了%d伤害\n",220-zombie.def);Sleep(750);zombie.hp=zombie.hp-(220-zombie.def)*3;}else if(n==3){printf("你对僵尸造成了%d伤害\n",400-zombie.def);Sleep(1000);printf("你对僵尸造成了%d伤害\n",400-zombie.def);Sleep(1000);zombie.hp=zombie.hp-(400-zombie.def)*2;}else if(n==4){int i;for(i=1;i<=8;i++){printf("你对僵尸造成了%d伤害\n",160-zombie.def);Sleep(250);}zombie.hp=zombie.hp-(160-zombie.def)*8;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;r=rand()%3;if(r==0){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else printf("你成功的躲过僵尸的攻击\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级Boss僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}//2200 system("cls");getchar();printf("你:呃(⊙﹏⊙)他又跑了");getchar();system("cls");printf("班长:追,这次不能让他跑了!");getchar();system("cls");printf("老王:砰!砰!砰!(枪响)");getchar();system("cls");printf("锤子:这玩意儿今天不打死我就#&]%*...!");getchar();system("cls");printf("你:。。。");getchar();system("cls");printf("你:看!那有个箱子!");getchar();system("cls");printf("箱子:中号军用补给箱");getchar();system("cls");printf("获得[绷带],血量+25");steve.hp+=25;getchar();system("cls");printf("获得[警用防暴头盔],防御+20");steve.def+=20;getchar();system("cls");printf("获得[S686散弹枪]和[12号口径散弹]x∞,伤害+105");steve.atk+=105;getchar();system("cls");printf("Boss僵尸:吼!");getchar();system("cls");printf("你:真是冥顽不化");getchar();system("cls");printf("你(在地上随便捡了一个瓶子):看瓶子!(把瓶子砸向Boss僵尸)");getchar();system("cls");printf("Boss僵尸:嗷!!!!!!");getchar();system("cls");printf("老刘:你,好像刺激到它了!");getchar();system("cls");printf("你:那就打死它");getchar();system("cls");printf("按任意键开始战斗");getchar();zombie.atk=100;zombie.def=60;zombie.exp=600;zombie.hp=5000;zombie.maxhp=5000;zombie.lev=39;system("cls");printf("敌人信息:\n");printf("敌人:Boss僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:Boss僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d\n",steve.hp,steve.maxhp,zombie.hp);k=zombie.hp;printf("\n僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);while(k>0){if(k>=zombie.maxhp/20){printf("█");k-=zombie.maxhp/20;}else{if(k<zombie.maxhp/80) printf("▏");else if(k<zombie.maxhp/60  && k>=zombie.maxhp/80) printf("▎");else if(k<zombie.maxhp/40  && k>=zombie.maxhp/60) printf("▌");else if(k<zombie.maxhp/20  && k>=zombie.maxhp/40) printf("▊");k=0;}}printf("\n武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| S686散弹枪 1440伤害 子弹∞/∞,攻速1\n");printf("3| 军用匕首 600伤害 攻速1/2\n");printf("4| UZI冲锋枪 220伤害 子弹∞/∞ 攻速1/10\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",1440-zombie.def);Sleep(2000);zombie.hp=zombie.hp-(1440-zombie.def);}else if(n==3){printf("你对僵尸造成了%d伤害\n",600-zombie.def);Sleep(1000);printf("你对僵尸造成了%d伤害\n",600-zombie.def);Sleep(1000);zombie.hp=zombie.hp-(600-zombie.def)*2;}else if(n==4){int i;for(i=1;i<=10;i++){printf("你对僵尸造成了%d伤害\n",220-zombie.def);Sleep(250);}zombie.hp=zombie.hp-(220-zombie.def)*10;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;r=rand()%3;if(r==0){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else printf("你成功的躲过僵尸的攻击\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级Boss僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}//2800 system("cls");getchar();printf("你:?地上怎么有包创可贴?");getchar();system("cls");printf("获得[创可贴],血量+15");getchar();system("cls");printf("锤子:哎,该死的僵尸");getchar();system("cls");printf("大家的身后:彭!呃!");getchar();system("cls");printf("老王:它变绿了,它好像变异了!");getchar();system("cls");printf("你:怎么会这样!");getchar();system("cls");printf("老刘(拿水管):再来!");getchar();system("cls");printf("老刘:啪!(打中僵尸)");getchar();system("cls");printf("Boss僵尸:呃~~~~~~");getchar();system("cls");printf("你:他居然毫发无伤!");getchar();system("cls");printf("Boss僵尸:吼!");getchar();system("cls");printf("你:跑啊!");getchar();system("cls");int remain=10;bool first=true;while(k!=1 && k!=2){printf("请选择(警告:此次选择为重大分支,请谨慎选择!) :\n");while(remain>0 && first){system("color 04");Sleep(200);system("color 0F");Sleep(200);remain--;}first=false;system("color 04");printf("1| 逃跑\n");printf("2| 战斗\n"); scanf("%d",&k);if(k==1) break;else if(k==2){printf("你受到僵尸的秒杀伤害\n");getchar();getchar();printf("5秒后退出");Sleep(5000);return;}else{printf("无效输入\n");Sleep(2000);}system("cls");}system("cls");system("color 0F");getchar();printf("你:哈?这咋还能变异???");getchar();system("cls");printf("你:<黑人问号脸>");getchar();system("cls");printf("你:哎,还是快跑吧!");getchar();system("cls");printf("锤子:他追上来了!");getchar();system("cls");printf("班长:电梯!上天台!");getchar();system("cls");printf("Boss僵尸:哇呜哇!");getchar();system("cls");printf("你:这玩意咋每次都抓我啊!");getchar();system("cls");printf("班长:快,药给你!");getchar();system("cls");printf("你:OK!");getchar();system("cls");char ch='%';printf("获得[急救包],血量回复至90%c\n",ch);steve.hp=180; getchar();system("cls");printf("按任意键开始战斗");getchar();system("cls");zombie.atk=90;zombie.maxhp=8400;zombie.hp=8400;zombie.def=80;zombie.lev=50;zombie.exp=1400;printf("敌人信息:\n");printf("敌人:Boss僵尸-1阶变异    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:Boss僵尸-1阶变异 等级%d\n",zombie.lev);printf("你的血量:%d/%d\n",steve.hp,steve.maxhp,zombie.hp);k=zombie.hp;printf("\n僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);while(k>0){if(k>=zombie.maxhp/20){printf("█");k-=zombie.maxhp/20;}else{if(k<zombie.maxhp/80) printf("▏");else if(k<zombie.maxhp/60  && k>=zombie.maxhp/80) printf("▎");else if(k<zombie.maxhp/40  && k>=zombie.maxhp/60) printf("▌");else if(k<zombie.maxhp/20  && k>=zombie.maxhp/40) printf("▊");k=0;}}printf("\n武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| S686散弹枪 2160伤害 子弹∞/∞,攻速1\n");printf("3| 军用匕首 1340伤害 攻速1/2\n");printf("4| UZI冲锋枪 360伤害 子弹∞/∞ 攻速1/10\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",2160-zombie.def);Sleep(2000);zombie.hp=zombie.hp-(2160-zombie.def);}else if(n==3){printf("你对僵尸造成了%d伤害\n",1340-zombie.def);Sleep(1000);printf("你对僵尸造成了%d伤害\n",1340-zombie.def);Sleep(1000);zombie.hp=zombie.hp-(1340-zombie.def)*2;}else if(n==4){int i;for(i=1;i<=10;i++){printf("你对僵尸造成了%d伤害\n",360-zombie.def);Sleep(250);}zombie.hp=zombie.hp-(360-zombie.def)*10;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;r=rand()%10;if(r==0 || r==1 || r==2){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else if(r>=3 && r<=5){printf("老王对僵尸造成了500伤害\n");zombie.hp-=500;}else if(r==6){printf("班长对僵尸造成了750伤害\n");zombie.hp-=750;}else printf("你成功的躲过僵尸的攻击\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级Boss僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}//4200 system("cls");getchar();printf("你:这次是真的没声了");getchar();system("cls");printf("班长:追!趁他的伤还没回复!");getchar();system("cls");printf("锤子:上!一定不能在让他逃了!");getchar();system("cls");printf("第十章 恶魔之影 完\n恭喜完成第十章,奖励金币1500");gold+=1500;Sleep(2000);system("cls");return;
}
void Level_11()
{int i,j;system("cls");printf("第十一章 追击Boss僵尸\n");Sleep(2000);system("cls");getchar();printf("你:呼~~~呼~~~~~~我们能不能休息,休息一下啊?");getchar();system("cls");printf("班长:好吧,休息一下,几点了?");getchar();system("cls");printf("你:呃,5点了!");getchar();system("cls");printf("老王:哎呀,现在好像要抓紧出去,6点以后天就开始黑了");getchar();system("cls");printf("老刘:是的,我想咱们别管它了,出去要紧");getchar();system("cls");printf("你:但是现在商场的东门已经被僵尸堵住了,我们只能从南门下了");getchar();system("cls");printf("班长:什么?东门被堵了!?");getchar();system("cls");printf("你:是的,我们今天刚进来就被僵尸追,我们倒是没事,僵尸却把门堵的水泄不通");getchar();system("cls");printf("班长:南门也被堵了啊");getchar();system("cls");printf("你:WTF!");getchar();system("cls");printf("你:我们逃不出去了啊!!!");getchar();system("cls");printf("你:啊......?");getchar();system("cls");printf("你:哇这里也有箱子啊!");getchar();system("cls");printf("箱子:大号军用补给箱");getchar();system("cls");printf("获得[大号医疗箱],血量上线提升至300,血量回满");steve.hp=300;steve.maxhp=300;getchar();system("cls");printf("获得[95式步枪]和[5.56mm子弹]x90,伤害提高至400");steve.atk=400;getchar();system("cls");printf("获得[特种兵头盔],防御增加至120");steve.def=120;getchar();system("cls");printf("你:啊,好了,我们现在去哪?");getchar();system("cls");printf("班长:不会的,商场还有个内部员工通道,可以从那里走");getchar();system("cls");printf("彭~呃~");getchar();system("cls");printf("你(转头):纳尼???");getchar();system("cls");printf("一只僵尸与你擦肩而过!");getchar();system("cls");printf("你(又转头):怎么肥四???");getchar();system("cls");printf("Boss僵尸:呃!");getchar();system("cls");printf("你(转回来):又是你啊!");getchar();system("cls");printf("班长:小心!它的背上长出了刺!离它远点!");getchar();system("cls");printf("你(后退):好的!");getchar();system("cls");printf("老王(射击):砰!砰!砰!");getchar();system("cls");printf("你撞进了一个----的身上");getchar();system("cls");printf("你(转头):你...");getchar();system("cls");printf("剧毒僵尸(吼声中带点懵逼):呃&-#@*x...?");getchar();system("cls");printf("老刘,锤子:哎,这小子咋和僵尸抱一块去了???");getchar();system("cls");printf("按任意键开始战斗");getchar();int r=64,poisoned_remain=0;zombie.lev=53;zombie.hp=11000;zombie.def=100;zombie.atk=150;zombie.exp=800;zombie.maxhp=11000;zombie.poisonous=true;zombie.poisonous_atk=15;zombie.poisonous_round=2;steve.exp=4200;int anmoUZI=30,totalUZI=3e6,anmo95=30,total95=90;bool lowanmoUZI=false,lowanmo95=false;system("cls");printf("敌人信息:\n");printf("敌人:剧毒僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d|剧毒伤害:%d/2    防御:%d    击杀可获得%d经验(4秒后继续)\n",zombie.hp,zombie.atk,zombie.poisonous_atk,zombie.def,zombie.exp);printf("注意:剧毒伤害:atk/round的意思是僵尸的持续伤害为atk每回合(包含受到僵尸普通伤害的回合,作为你第一次受到持续伤害的回合),持续round回合(受到僵尸普通伤害的回合算第一个回合)");Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;if(lowanmo95==true){if(total95>0){if(total95<30){anmo95=total95;total95=0;}else{anmo95=30;total95-=30;}lowanmo95=false;}}if(lowanmoUZI==true){anmoUZI=30;lowanmoUZI=false;}printf("敌人:剧毒僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d\n",steve.hp,steve.maxhp);printf("僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| UZI冲锋枪 子弹%d/∞ 350伤害,攻速1/10\n",anmoUZI);printf("3| 95式步枪 子弹%d/%d 700伤害,攻速1/6\n",anmo95,total95);if(anmo95==0) lowanmo95=true;if(anmoUZI==0) lowanmoUZI=true;scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){if(anmoUZI==0){printf("子弹耗尽,装弹中\n");Sleep(1000);}else{int i=1;while(i<=10){printf("你对僵尸造成了%d伤害\n",350-zombie.def);zombie.hp=zombie.hp-(350-zombie.def);i++;Sleep(200);}anmoUZI-=10;}}else if(n==3){if(total95==0 && anmo95==0){printf("子弹已完全耗尽");Sleep(1000);}else if(anmo95==0 && total95>0){printf("子弹耗尽,装弹中\n");Sleep(1000);}else{int i=1;while(i<=6 && anmo95>0){printf("你对僵尸造成了%d伤害\n",700-zombie.def);zombie.hp=zombie.hp-(700-zombie.def);anmo95--;i++;Sleep(333);}}}else printf("无效输入\n");Sleep(1000);r=rand()%10;if(r<=2){printf("老刘对僵尸造成了%d伤害\n",300-zombie.def);zombie.hp=zombie.hp-(300-zombie.def);}else if(r==3 || r==4){printf("锤子对僵尸造成了%d伤害\n",500-zombie.def);zombie.hp=zombie.hp-(500-zombie.def);}else if(r==5){printf("班长对僵尸造成了%d伤害\n",750-zombie.def);zombie.hp=zombie.hp-(750-zombie.def);}if(zombie.hp<=0) break;r=rand()%3;if(r==0){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);poisoned_remain=2;}else printf("你躲开了僵尸的攻击\n");if(poisoned_remain>0){printf("你收到中毒伤害%d\n",zombie.poisonous_atk);steve.hp-=zombie.poisonous_atk;poisoned_remain--;}Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级剧毒僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);system("cls");return;}//5000system("cls");getchar();printf("你:呼~总算把他打死了");getchar();system("cls");printf("Boss僵尸:吼!");getchar();system("cls");printf("老刘:小心!");getchar();system("cls");printf("你:哎!?");getchar();system("cls");printf("按任意键开始战斗");getchar();system("cls");int anmoS686=2,k;bool lowanmoS686=false;zombie.lev=64;zombie.hp=15000;zombie.atk=160;zombie.def=160;zombie.exp=1600;zombie.maxhp=15000;printf("敌人信息:\n");printf("敌人:Boss僵尸-2阶变异    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;if(lowanmoS686){anmoS686=2;lowanmoS686=false;}printf("敌人:Boss僵尸-2阶变异 等级%d\n",zombie.lev);printf("你的血量:%d/%d\n",steve.hp,steve.maxhp,zombie.hp);k=zombie.hp;printf("\n僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);while(k>0){if(k>=zombie.maxhp/20){printf("█");k-=zombie.maxhp/20;}else{if(k<zombie.maxhp/80) printf("▏");else if(k<zombie.maxhp/60  && k>=zombie.maxhp/80) printf("▎");else if(k<zombie.maxhp/40  && k>=zombie.maxhp/60) printf("▌");else if(k<zombie.maxhp/20  && k>=zombie.maxhp/40) printf("▊");k=0;}}if(anmoS686==0) lowanmoS686=true;printf("\n武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| S686散弹枪  60伤害 子弹%d/∞,攻速1\n",anmoS686);printf("3| 95式步枪 2340伤害 子弹∞/∞ 攻速1/6\n");printf("4| UZI冲锋枪 660伤害 子弹∞/∞ 攻速1/10\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){if(lowanmoS686){printf("子弹耗尽,装弹中");Sleep(2000);}else{anmoS686--;printf("你对僵尸造成了%d伤害\n",5660-zombie.def);Sleep(2000);zombie.hp=zombie.hp-(5660-zombie.def);}}else if(n==3){printf("你对僵尸造成了%d伤害\n",2340-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2340-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2340-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2340-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2340-zombie.def);Sleep(334);printf("你对僵尸造成了%d伤害\n",2340-zombie.def);Sleep(334);zombie.hp=zombie.hp-(2340-zombie.def)*6;}else if(n==4){int i;for(i=1;i<=10;i++){printf("你对僵尸造成了%d伤害\n",660-zombie.def);Sleep(250);}zombie.hp=zombie.hp-(660-zombie.def)*10;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;r=rand()%10;if(r==0 || r==1 || r==2){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else if(r>=3 && r<=5){printf("老王对僵尸造成了660伤害\n");zombie.hp-=500;}else if(r==6){printf("班长对僵尸造成了880伤害\n");zombie.hp-=750;}else printf("你成功的躲过僵尸的攻击\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级Boss僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}system("cls");getchar();printf("Boss僵尸:吼啊!!!!!!!!!!!!!!!!!!!!!!!!!!!");getchar();system("cls");printf("Boss僵尸的一只手竟变成了流星锤!");getchar();system("cls");printf("班长:它又变异了!快跑!");getchar();system("cls");printf("锤子,老王:班长你下去找一辆车,越快越好!");getchar();system("cls");printf("Boss僵尸:呃~~~~");getchar();system("cls");printf("老王(开枪):砰!砰!砰!");getchar();system("cls");printf("你:爆它头!");getchar();system("cls");printf("老王:手枪子弹打不穿它的那个手,太硬了!");getchar();system("cls");printf("你:吃鸡里S686是近战之王,我试试S686能不能行");getchar();system("cls");printf("老王:赶快");getchar();system("cls");printf("你:尝尝这个!");getchar();system("cls");printf("你:啪!!!(响彻云霄的枪响)");getchar();system("cls");printf("锤子:拖住它了!");getchar();system("cls");printf("你:啪!!!(又是响彻云霄的一声枪响)");getchar();system("cls");printf("你:快,你们先撤,我接着轰它!");getchar();system("cls");printf("你:啪!!啪!!!(连续两声响彻云霄的枪响)");getchar();system("cls");printf("Boss僵尸:吼!!");getchar();system("cls");printf("你(拿95式步枪):啊哒哒哒哒哒哒哒哒哒~~");getchar();system("cls");printf("Boss僵尸:吼啊!!!!");getchar();system("cls");printf("老刘:别跟它杠了,我们下来了,你也快下来吧!");getchar();system("cls");printf("你:收到!");getchar();system("cls");printf("第十一章 追击Boss僵尸 完\n恭喜完成第十一章,奖励金币640");gold+=640;Sleep(2000);system("cls");return;
}
void Level_12()
{steve.food=0;steve.atk=400;steve.def=120;steve.exp=6600;printf("第十二章 生死之战");Sleep(2000);system("cls");printf("你:快跑啊!");getchar();getchar();system("cls");printf("老刘:它又跑了");getchar();system("cls");printf("老王:现在我们是在2层,我们需要找到这里的紧急逃生通道,因为1层已经都是僵尸了");getchar();system("cls");printf("锤子:这里有个小超市!");getchar();system("cls");printf("老王:这样,把里面的食物带着,不然我们都得饿死");getchar();system("cls");printf("你:好的!");getchar();system("cls");printf("获得[馒头]x10,[苹果]x5,[烤肉]x5,食物+100");steve.food+=100;getchar();system("cls");printf("获得[大号医疗箱],血量回满血量上限提升至400");steve.hp=400;steve.maxhp=400;getchar();system("cls");printf("你:看,一个无线电!");getchar();system("cls");printf("老刘:?");getchar();system("cls");printf("老王:?");getchar();system("cls");printf("锤子:?");getchar();system("cls");printf("获得[无线电]");getchar();system("cls");printf("你:试试看吧,能不能打开它");getchar();system("cls");printf("按任意键打开无线电");getchar();system("cls");printf("你:啊,它打开了");getchar();system("cls");printf("无线电:当前频道3.290");getchar();system("cls");printf("[无线电干扰声]");getchar();system("cls");printf("你:呃...");getchar();system("cls");printf("老王:我试试?");getchar();system("cls");printf("无线电:当前频道3.710");getchar();system("cls");printf("老王:喂?喂?");getchar();system("cls");printf("? ? ?:喂?");getchar();system("cls");printf("老王:你好,我姓王,是一名军人....");getchar();system("cls");printf("? ? ?:你就是老王吧");getchar();system("cls");printf("老王:啊?你怎么知道的?");getchar();system("cls");printf("班长:我还知道你们这个无线电是捡来的");getchar();system("cls");printf("班长:因为我就是你的班长!");getchar();system("cls");printf("老王(吓一跳):哎!?");getchar();system("cls");printf("班长:不下来,你们干嘛呢,一会僵尸都围上来了!");getchar();system("cls");printf("老王:好的,我们会来的!");getchar();system("cls");printf("你:看,那有个紧急通道门!");getchar();system("cls");printf("pong!呃~~~");getchar();system("cls");printf("你:快!僵尸冲进来了!进去");getchar();system("cls");printf("锤子:走啊");getchar();system("cls");printf("你(使用95式步枪):哒哒哒哒哒哒哒哒哒~~~");getchar();system("cls");printf("时间:8月22日 18:00\n地点:商场的1F的D6通道");getchar();system("cls");printf("你:哈?现在下面到处都是僵尸,我们怎么办?");getchar();system("cls");printf("锤子:试试用无线电呼叫一下班长");getchar();system("cls");printf("无线电:当前频道3.710");getchar();system("cls");printf("班长:什么事?");getchar();system("cls");printf("你:呃,我们在商场的D6通道被困住了...");getchar();system("cls");printf("老王:我们需要支援!");getchar();system("cls");printf("班长:好的,我马上过来");getchar();system("cls");printf("锤子:但愿班长能及时赶到");getchar();system("cls");printf("即将转换视角,将以班长为第一视角");getchar();system("cls");printf("按任意键继续");getchar();system("cls");printf("班长:唉呀,他们真是的,天已经开始黑了,一定要快点");getchar();system("cls");printf("班长:我就从停车场抄个近路吧");getchar();system("cls");printf("走廊右侧:A1通道");getchar();system("cls");printf("班长:好像还真远呢");getchar();system("cls");printf("你:呃...");getchar();system("cls");printf("班长:老王,你是在D6通道是吗?");getchar();system("cls");printf("老王:是的!");getchar();system("cls");printf("班长:我就在路上,马上就到!");getchar();system("cls");int remain=1000,a[5]={1e9,1e9,1e9,1e9,1e9},r;while(remain>0){a[1]=rand()%3;a[2]=rand()%3;a[3]=rand()%3;if(a[1]==0) system("color 04");if(a[2]==0) system("color 0A");if(a[3]==0) system("color 09");if(a[1]==0 && a[2]==0) system("color 06");if(a[1]==0 && a[3]==0) system("color 0D");if(a[2]==0 && a[3]==0) system("color 0B");if(a[1]!=0 && a[2]!=0 && a[3]!=0) system("color 08");if(a[1]==0 && a[2]==0 && a[3]==0) system("color 0F");if(remain>=950) printf("已到达A1通道\n");if(remain>=900 && remain<950) printf("已到达A2通道\n");if(remain>=850 && remain<900) printf("已到达A3通道\n");if(remain>=800 && remain<850) printf("已到达A4通道\n");if(remain>=750 && remain<800) printf("已到达A5通道\n");if(remain>=700 && remain<750) printf("已到达B1通道(里面好像有僵尸)\n");if(remain>=650 && remain<700) printf("已到达B2通道\n");if(remain>=600 && remain<650) printf("已到达B3通道\n");if(remain>=550 && remain<600) printf("已到达B4通道(里面好像也有僵尸)\n");if(remain>=500 && remain<550) printf("已到达B5通道\n");if(remain>=450 && remain<500) printf("已到达C1通道\n");if(remain>=400 && remain<450) printf("已到达C2通道\n");if(remain>=350 && remain<400) printf("已到达C3通道\n");if(remain>=300 && remain<350) printf("已到达C4通道\n");if(remain>=250 && remain<300) printf("已到达C5通道\n");if(remain>=200 && remain<250) printf("已到达D1通道\n");if(remain>=150 && remain<200) printf("已到达D2通道\n");if(remain>=100 && remain<150) printf("已到达D3通道\n");if(remain>=50 && remain<100) printf("已到达D4通道\n");if(remain>0 && remain<50) printf("已到达D5通道\n");printf("1| 靠左\n");printf("2| 直走\n");printf("3| 靠右\n");printf("4| 开枪\n");printf("根据提示前进,走错了会被僵尸包围的哦!(再提示:RGB)\n");scanf("%d",&n);if(n<1 || n>4){printf("无效输入");Sleep(2000);system("cls");continue;}if(n==4){printf("你从僵尸群中杀出了一条血路\n");r=30+rand()%20;Sleep(1000);printf("前进%dm",r);remain-=r;Sleep(2000);system("cls");continue;}if(a[n]>0){printf("很不幸,你没能冲出僵尸的包围(5秒后结束)\n");Sleep(5000);system("cls");system("color 0F");return;}else{printf("你成功的从僵尸中间穿过\n");r=50+rand()%30;Sleep(1000);printf("前进%dm",r);remain-=r;Sleep(2000);system("cls");}}system("color 0F");getchar();printf("已到达D6通道");getchar();system("cls");printf("班长:我到D6通道门口了,那里都是僵尸,怎么办");getchar();system("cls");printf("无线电-老刘:啊,太好了,但是我们怎么下去呢?");getchar();system("cls");printf("班长:我好像看到了那个巨型僵尸!");getchar();system("cls");printf("老王(砸门):磅!磅!");getchar();system("cls");printf("Boss僵尸:呃~~~~~~");getchar();system("cls");printf("无线电--老王:啊...(轰!)");getchar();system("cls");printf("锤子:快!快开枪啊!!!");getchar();system("cls");printf("班长:哎......");getchar();system("cls");printf("即将切换回你的视角");getchar();system("cls");printf("按任意键继续");getchar();system("cls");printf("你:哈!(啪!)哈(啪!),来呀!来呀!");getchar();system("cls");printf("Boss僵尸:呃~~~~~~!");getchar();system("cls");int anmoS686=2,k;bool lowanmoS686=false;zombie.lev=78;zombie.hp=21000;zombie.atk=150;zombie.def=600;zombie.exp=2400;zombie.maxhp=21000;printf("敌人信息:\n");//9000printf("敌人:Boss僵尸-3阶变异    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;if(lowanmoS686){anmoS686=2;lowanmoS686=false;}printf("敌人:Boss僵尸-3阶变异 等级%d\n",zombie.lev);printf("你的血量:%d/%d\n",steve.hp,steve.maxhp,zombie.hp);k=zombie.hp;printf("\n僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);while(k>0){if(k>=zombie.maxhp/20){printf("█");k-=zombie.maxhp/20;}else{if(k<zombie.maxhp/80) printf("▏");else if(k<zombie.maxhp/60  && k>=zombie.maxhp/80) printf("▎");else if(k<zombie.maxhp/40  && k>=zombie.maxhp/60) printf("▌");else if(k<zombie.maxhp/20  && k>=zombie.maxhp/40) printf("▊");k=0;}}   if(anmoS686==0) lowanmoS686=true;printf("\n武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| S686散弹枪 8000伤害 子弹%d/∞,攻速1\n",anmoS686);printf("3| 95式步枪 2500伤害 子弹∞/∞ 攻速1/6\n");printf("4| UZI冲锋枪 1440伤害 子弹∞/∞ 攻速1/10\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){if(lowanmoS686){printf("子弹耗尽,装弹中");Sleep(2000);}else{anmoS686--;printf("你对僵尸造成了%d伤害\n",8000-zombie.def);Sleep(2000);zombie.hp=zombie.hp-(8000-zombie.def);}}else if(n==3){printf("你对僵尸造成了%d伤害\n",2500-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2500-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2500-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2500-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2500-zombie.def);Sleep(334);printf("你对僵尸造成了%d伤害\n",2500-zombie.def);Sleep(334);zombie.hp=zombie.hp-(2500-zombie.def)*6;}else if(n==4){int i;for(i=1;i<=10;i++){printf("你对僵尸造成了%d伤害\n",1440-zombie.def);Sleep(250);}zombie.hp=zombie.hp-(1440-zombie.def)*10;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;r=rand()%10;if(r==0 || r==1 || r==2 || r==7){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else if(r>=3 && r<=5){printf("老王对僵尸造成了1200伤害\n");zombie.hp-=600;}else if(r==6){printf("班长对僵尸造成了1600伤害\n");zombie.hp-=1000;}else printf("你成功的躲过僵尸的攻击\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级Boss僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}system("cls");getchar();printf("你:好了,我们出来了");getchar();system("cls");printf("班长:快走!");getchar();system("cls");printf("老王:他们追来了!");getchar();system("cls");printf("老刘:小心!C3出口有好多僵尸!");getchar();system("cls");printf("你:额...");getchar();system("cls");printf("锤子:C2也是!有好多的僵尸!");getchar();system("cls");printf("班长:别管那么多了,进C4通道!快!");getchar();system("cls");printf("僵尸(砸门):呃~~~~~~");getchar();system("cls");printf("你:要不我们从大门走?");getchar();system("cls");printf("老刘:你没看到咱们进来时僵尸都把那围住了!?");getchar();system("cls");printf("班长:我们绕过他们,走B5");getchar();system("cls");printf("你:呸,B5通道的门锁住了");getchar();system("cls");printf("你:走B4吧");getchar();system("cls");printf("班长:不,我们从商场里面走,直接从大门走,咱们的车还在那呢");getchar();system("cls");printf("锤子:我们到底要怎么办!");getchar();system("cls");remain=10;bool first=true;while(k!=1 && k!=2){printf("请选择(警告:此次选择为重大分支,请谨慎选择!) :\n");while(remain>0 && first){system("color 04");Sleep(200);system("color 0F");Sleep(200);remain--;}first=false;system("color 04");printf("1| 就地躲藏\n");printf("2| 走B4\n");printf("3| 走B2\n");printf("3| 走B1\n");scanf("%d",&k);if(k==1){printf("有人被僵尸发现了!");getchar();getchar();printf("5秒后退出");Sleep(5000);return;}else if(k==2){printf("你们被B4通道里的僵尸包围了!\n");getchar();getchar();printf("5秒后退出");Sleep(5000);return;}else if(k==3) break;else if(k==4){printf("你们被B1通道里的僵尸包围了!\n");getchar();getchar();printf("5秒后退出");Sleep(5000);return;}else{printf("无效输入\n");Sleep(2000);}system("cls");}system("cls");system("color 0F");getchar();printf("你:啊,好险,还好出来了");getchar();system("cls");printf("老刘:咱们现在是在B2,那些僵尸在B5");getchar();system("cls");printf("你:那赶紧跑吧");getchar();system("cls");printf("Boss僵尸:呃~~~~");getchar();system("cls");printf("锤子:班长,你的车到底在哪啊,它们要追上来了!");getchar();system("cls");printf("班长:在A1通道旁边");getchar();system("cls");printf("锤子:啊!!!");getchar();system("cls");printf("老王:啊!!!");getchar();system("cls");printf("你:啊!!!");getchar();system("cls");printf("老刘:我们到A3了!");getchar();system("cls");printf("你:它们到B1了!");getchar();system("cls");printf("班长:快!我看到车了!");getchar();system("cls");printf("你:我们到A2了!");getchar();system("cls");printf("你:但是!它们已经到A3了啊啊啊啊啊啊啊啊....");getchar();system("cls");printf("班长:上车,快!");getchar();system("cls");printf("Boss僵尸(抓你):呃!~~~~~~");getchar();system("cls");printf("你:它,它它它,又变异了!!??");getchar();system("cls");printf("按任意键开始战斗");getchar();system("cls");anmoS686=2,k;lowanmoS686=false;bool cannot_atk=false;SetColor(15,0);zombie.lev=100;zombie.hp=30000;zombie.atk=160;zombie.def=800;zombie.exp=3200;zombie.maxhp=30000;//12200printf("敌人信息:\n");printf("敌人:Boss僵尸-最终形态    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;if(lowanmoS686){anmoS686=2;lowanmoS686=false;}printf("敌人:Boss僵尸-最终形态 等级%d\n",zombie.lev);if(cannot_atk) SetColor(11,0);printf("你的血量:%d/%d\n",steve.hp,steve.maxhp,zombie.hp);if(cannot_atk) SetColor(15,0);k=zombie.hp;printf("\n僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);while(k>0){if(k>=zombie.maxhp/20){printf("█");k-=zombie.maxhp/20;}else{if(k<zombie.maxhp/80) printf("▏");else if(k<zombie.maxhp/60  && k>=zombie.maxhp/80) printf("▎");else if(k<zombie.maxhp/40  && k>=zombie.maxhp/60) printf("▌");else if(k<zombie.maxhp/20  && k>=zombie.maxhp/40) printf("▊");k=0;}}if(anmoS686==0) lowanmoS686=true;if(cannot_atk){Sleep(2000);cannot_atk=false;printf("\nBoss僵尸触发了冻结技能,本回合你无法攻击!\n");Sleep(1000);r=rand()%10;if(r==0 || r==1 || r==2){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else if(r==3 || r==4){printf("老王对僵尸造成了1600伤害\n");zombie.hp-=800;}else if(r==5){printf("班长对僵尸造成了2000伤害\n");zombie.hp-=1200;}else if(r==6){printf("Boss僵尸使出技能:粘液\n下一回合无法攻击!");cannot_atk=true; }else printf("你成功的躲过僵尸的攻击\n");Sleep(2000);system("cls");continue;}printf("\n武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| S686散弹枪 10000伤害 子弹%d/∞,攻速1\n",anmoS686);printf("3| 95式步枪 2600伤害 子弹∞/∞ 攻速1/6\n");printf("4| UZI冲锋枪 1700伤害 子弹∞/∞ 攻速1/10\n");scanf("%d",&n);if(n==1){if(steve.atk<zombie.def) printf("僵尸毫发无伤");else{printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}}else if(n==2){if(lowanmoS686){printf("子弹耗尽,装弹中");Sleep(2000);}else{anmoS686--;printf("你对僵尸造成了%d伤害\n",10000-zombie.def);Sleep(2000);zombie.hp=zombie.hp-(10000-zombie.def);}}else if(n==3){printf("你对僵尸造成了%d伤害\n",2600-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2600-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2600-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2600-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2600-zombie.def);Sleep(334);printf("你对僵尸造成了%d伤害\n",2600-zombie.def);Sleep(334);zombie.hp=zombie.hp-(2600-zombie.def)*6;}else if(n==4){int i;for(i=1;i<=10;i++){printf("你对僵尸造成了%d伤害\n",1700-zombie.def);Sleep(250);}zombie.hp=zombie.hp-(1700-zombie.def)*10;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;r=rand()%10;if(r==3 || r==4 || r==5){printf("老王对僵尸造成了1600伤害\n");zombie.hp-=800;}else if(r==2 || r==6){printf("班长对僵尸造成了2000伤害\n");zombie.hp-=1200;}r=rand()%10;if(r<=4){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else if(r==5 || r==6){printf("Boss僵尸使出技能:粘液\n下一回合无法攻击!");cannot_atk=true; }else printf("你成功的躲过僵尸的攻击\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级Boss僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}system("cls");getchar();printf("你:呕耶!终于打死它了!");getchar();system("cls");printf("班长:快上车吧,天已经黑了,我们得走了");getchar();system("cls");printf("老王:你觉得我们下一步去哪呢?");getchar();system("cls");printf("你(喜悦):M城啊V(^_^)V");getchar();system("cls");printf("锤子:你还有燃油吗?");getchar();system("cls");printf("班长:现在这个车还能跑90公里");getchar();system("cls");printf("你:那没事,咱们不是还能走路呢");getchar();system("cls");printf("老王:呃,你在超市找到的吃的呢");getchar();system("cls");printf("你(掏包):都在这里");getchar();system("cls");printf("老刘:还不算太坏,但是咱们离M城好像不止90公里啊");getchar();system("cls");printf("你:不怕不怕,大不了路上在找一些燃油呗");getchar();system("cls");printf("老刘:好吧,但是你确定僵尸不会像商场那个一样变异?");getchar();system("cls");printf("你:肯定有啊,商场那能变异别的就不能?");getchar();system("cls");printf("老刘:呃,好吧");getchar();system("cls");printf("第十二章 生死之战 完\n恭喜完成第十二章,奖励金币1200");gold+=1200;Sleep(2000);system("cls");return;
}
void Level_13()
{system("cls");steve.exp=12200;printf("第十三章 郊区军营");Sleep(2000);system("cls");getchar();printf("你:前面就到郊区了,我们怎么走呢?");getchar();system("cls");printf("锤子:要不我们走大部队撤离的路线?");getchar();system("cls");printf("班长:但是我们的军营在森林里");getchar();system("cls");printf("你:军营里都有什么呢");getchar();system("cls");printf("班长:或许有枪吧");getchar();system("cls");printf("你:可以啊那我们现在就走");getchar();system("cls");printf("老刘:+1");getchar();system("cls");printf("老王:+2");getchar();system("cls");printf("锤子:+3");getchar();system("cls");printf("班长:+4");getchar();system("cls");printf("班长:既然全员赞同,那就去军营吧");getchar();system("cls");printf("你:OK");getchar();system("cls");printf("老刘:OK");getchar();system("cls");printf("老王:OK");getchar();system("cls");printf("时间:8月22日 22:00\n地点:S市7号高速公路");getchar();system("cls");printf("班长:现在汽车还能跑40公里,这里离军营好像还有30多公里,所以汽油应该是可以的");getchar();system("cls");printf("锤子:但愿吧");getchar();system("cls");printf("你:可晚上里面都是僵尸,在哪睡觉啊");getchar();system("cls");printf("班长:这好说,找个地儿藏起来,僵尸就找不到我们啦");getchar();system("cls");printf("你:好吧");getchar();system("cls");printf("时间:8月22日 23:00\n地点:S市军营"); getchar();system("cls");printf("你:还是找点吃的吧");getchar();system("cls");printf("锤子:好,但是千万小心僵尸");getchar();system("cls");f1=false;f2=false;f3=false;steve.food=100;while(1){printf("提示:在周围探索(建议把所有地点找一遍)\n");printf("1| 帐篷\n");printf("2| 地上的尸体\n");printf("3| 军备库\n");printf("4| 离开\n");scanf("%d",&n);if(n==1){system("cls");if(f1) printf("这里已经没有特别的东西了");else{printf("获得[防暴盾牌],防御提高到600"); steve.def=600;f1=true; }}if(n==2){system("cls");if(f2) printf("这里已经没有特别的东西了");else{printf("获得[P1911手枪]和[.45口径子弹],伤害提高到600");steve.atk=600;f2=true; } }if(n==3){system("cls");if(f3) printf("这里已经没有特别的东西了");else{printf("获得[急救包],血量回满,血量上限提升至500\n获得[桶装方便面]x5和[热水壶],食物+150");steve.hp=500;steve.maxhp=500;steve.food+=150;f3=true; }}if(n==4){if(steve.food<200) printf("食物不足,你需要多找一些食物");else break;}Sleep(2000);system("cls");}getchar();system("cls");printf("老王:好吧,我们就挤在这个帐篷里吧");getchar();system("cls");printf("你:晚安");getchar();system("cls");printf("老刘:晚安");getchar();system("cls");printf("时间:8月23日,01:00\n地点:S市的军营");getchar();system("cls");printf("僵尸:呃~~~~~~!");getchar();system("cls");printf("你(小声):帐篷口都封好了啊?");getchar();system("cls");printf("锤子(小声):当然,我们拿了好多个大箱子堵着啦");getchar();system("cls");printf("你(小声):哦,那就好");getchar();system("cls");printf("你们在军营过了一夜,食物-200");steve.food-=200;getchar();system("cls");printf("第十三章 郊区军营 完\n恭喜完成第十三章,奖励金币160");Sleep(2000);/*system("cls");printf("生化危机1.0敬请期待!\n更新时间2月4日00:00\n");printf("10秒后自动返回主页面\n");printf("本游戏暂时完结,预计更新时间:12月24日\n");printf("如有bug欢迎私信或评论反馈给作者minecraft_herobrine,或在评测记录中搜索R10000000\n");printf("谢谢参与游戏\n");printf("10秒后自动返回主页面");Sleep(10000);*/system("cls");return;
}
void Level_14()
{steve.maxhp=500;steve.atk=600;steve.def=600;steve.food=50;steve.exp=12200;system("cls");getchar();printf("第十四章 深入军营");Sleep(2000);system("cls");printf("外面的僵尸:呃~~~");getch();system("cls");printf("你:哇!外面有好多僵尸");getch();system("cls");printf("老王:啊?看看");getch();system("cls");printf("你:?这里有个医疗箱?");getch();system("cls");printf("获得[大医疗箱],血量上线增加100,血量回满");steve.maxhp=600;steve.hp=600;getch();system("cls");printf("班长:最好不要看,小心他们冲进来");getch();system("cls");printf("你(拿枪):我就不信...");getch();system("cls");printf("班长(按下你的枪):别!要是把这附近的僵尸都招来有你好受的");getch();system("cls");printf("无线电<? ? ?>:喂?..人吗?....吗?");getch();system("cls");printf("你:喂?");getch();system("cls");printf("无线电<? ? ?>:我在S..火..站,这....僵尸..多..,..救!");getch();system("cls");printf("你:是他那边信号差还是我们的信号差啊?");getch();system("cls");printf("老王:可能是信号塔被僵尸破坏了吧");getch();system("cls");printf("你:刚才好像听那人说他好像是在火车站?");getch();system("cls");printf("锤子:火车站不是在S市的东侧吗?");getch();system("cls");printf("你(拿手机):它好像在12号高速公路的附近");getch();system("cls");printf("你:地图上显示那还有一个火车站出口");getch();system("cls");printf("班长:好了,我们出去,把那些该死的僵尸们打死");getch();system("cls");printf("你:反正我们都要从火车站过,干脆去那看看把");getch();system("cls");printf("你:出发出发~~");getch();system("cls");printf("僵尸:呃~~~~");getch();system("cls");printf("你:哦?别以为你穿个防弹衣就多牛是的,尝尝这个!");getch();system("cls");printf("按任意键开始战斗");getch();system("cls");int r,anmoS686=2,k;bool cannot_atk=false,lowanmoS686=false;zombie.atk=720;zombie.lev=72;zombie.hp=28800;zombie.def=1000;zombie.exp=1400;zombie.poisonous=false;zombie.poisonous_atk=0;zombie.maxhp=28800;zombie.poisonous_round=-1;printf("敌人信息:\n");printf("敌人:武装僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;if(lowanmoS686){anmoS686=2;lowanmoS686=false;}printf("敌人:武装僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d\n",steve.hp,steve.maxhp,zombie.hp);k=zombie.hp;printf("\n僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);while(k>0){if(k>=zombie.maxhp/20){printf("█");k-=zombie.maxhp/20;}else{if(k<zombie.maxhp/80) printf("▏");else if(k<zombie.maxhp/60  && k>=zombie.maxhp/80) printf("▎");else if(k<zombie.maxhp/40  && k>=zombie.maxhp/60) printf("▌");else if(k<zombie.maxhp/20  && k>=zombie.maxhp/40) printf("▊");k=0;}}if(anmoS686==0) lowanmoS686=true;if(cannot_atk) printf("\n武装僵尸触发技能,此回合你的枪械攻击无效");printf("\n武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 军用匕首 3200伤害,攻速1/2\n");if(cannot_atk){SetColor(4,0);printf("3| S686散弹枪 10400伤害 子弹%d/∞,攻速1\n",anmoS686);printf("4| 95式步枪 2800伤害 子弹∞/∞ 攻速1/6\n");printf("5| UZI冲锋枪 1800伤害 子弹∞/∞ 攻速1/10\n");SetColor(15,0);}else{printf("3| S686散弹枪 10400伤害 子弹%d/∞,攻速1\n",anmoS686);printf("4| 95式步枪 2800伤害 子弹∞/∞ 攻速1/6\n");printf("5| UZI冲锋枪 1800伤害 子弹∞/∞ 攻速1/10\n");}scanf("%d",&n);if(n==1){if(steve.atk<zombie.def) printf("僵尸毫发无伤\n");else{printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}}else if(n==2){printf("你对僵尸造成了%d伤害\n",3200-zombie.def);Sleep(1000);printf("你对僵尸造成了%d伤害\n",3200-zombie.def);Sleep(1000);zombie.hp=zombie.hp-(3200-zombie.def)*2;}else if(n==3){if(cannot_atk){printf("武装僵尸触发技能,你的枪械攻击无效");Sleep(2000);cannot_atk=false;system("cls");continue;}if(lowanmoS686){printf("子弹耗尽,装弹中");Sleep(2000);}else{anmoS686--;printf("你对僵尸造成了%d伤害\n",10400-zombie.def);Sleep(2000);zombie.hp=zombie.hp-(10400-zombie.def);}}else if(n==4){if(cannot_atk){printf("武装僵尸触发技能,你的枪械攻击无效");Sleep(2000);cannot_atk=false;system("cls");continue;}printf("你对僵尸造成了%d伤害\n",2800-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2800-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2800-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2800-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",2800-zombie.def);Sleep(334);printf("你对僵尸造成了%d伤害\n",2800-zombie.def);Sleep(334);zombie.hp=zombie.hp-(2800-zombie.def)*6;}else if(n==5){if(cannot_atk){printf("武装僵尸触发技能,你的枪械攻击无效");Sleep(2000);cannot_atk=false;system("cls");continue;}int i;for(i=1;i<=10;i++){printf("你对僵尸造成了%d伤害\n",1800-zombie.def);Sleep(250);}zombie.hp=zombie.hp-(1800-zombie.def)*10;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;cannot_atk=false;r=rand()%10;if(r==3 || r==4 || r==5){printf("老王对僵尸造成了2100伤害\n");zombie.hp-=1100;}else if(r==2 || r==6){printf("班长对僵尸造成了2900伤害\n");zombie.hp-=1900;}r=rand()%10;if(r<=3){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else if(r==4 || r==5){MessageBox(NULL,TEXT("武装僵尸发动技能[防弹衣],下回合你的枪械攻击无效"),TEXT("生化危机"),MB_ICONASTERISK);cannot_atk=true;}else printf("你成功的躲过僵尸的攻击\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级武装僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}system("cls");getchar();printf("你:那边,好像是一个军火库\n");getchar();system("cls");printf("班长:走\n");getchar();system("cls");printf("老王:这个军营好像有个出口在东侧,我们是从北侧进来的\n");getchar();system("cls");printf("老刘:东侧,不是D市吗,很小的一个城市\n");getchar();system("cls");printf("锤子:好像是的啊,我们不是要去M市吗\n");getchar();system("cls");printf("班长:不管了,大不了车没油了麻烦点,换车开\n");getchar();system("cls");printf("你:......?\n");getchar();system("cls");printf("班长:走吧\n");getchar();system("cls");
//  printf("生化危机1.0敬请期待!\n更新时间2月4日00:00\n");
//  printf("10秒后自动返回主页面\n");printf("第十四章 深入军营 完\n恭喜完成第十四章,奖励金币340");gold+=340;Sleep(3000);system("cls");return;
}
void Level_15()
{steve.exp=13600;system("cls");printf("第十五章 奇怪的喇叭");getchar();Sleep(2000);printf("? ? ?:(喇叭声)"); getchar();system("cls");printf("你:听,什么声音?"); getchar();system("cls");printf("班长:好像是喇叭声"); getchar();system("cls");printf("你:现在到处都是僵尸,但是这喇叭声???很可疑啊"); getchar();system("cls");printf("? ? ?:(喇叭声)"); getchar();system("cls");printf("老王:又响了!"); getchar();system("cls");printf("你:见鬼了啊"); getchar();system("cls");printf("班长:我们必须尽快离开这里,这个喇叭不像是人吹的"); getchar();system("cls");printf("? ? ?:(喇叭声)"); getchar();system("cls");printf("你:but??好吧"); getchar();system("cls");printf("你:喇叭声越来越近了!"); getchar();system("cls");printf("? ? ?:(喇叭声)"); getchar();system("cls");printf("? ? ?:(喇叭声)"); getchar();system("cls");printf("你:快看,一个好大的喇叭!"); getchar();system("cls");printf("僵尸:呃~~~~~~"); getchar();system("cls");printf("你:小心!有僵尸!快躲起来"); getchar();system("cls");printf("锤子:喇叭周围有好多僵尸啊"); getchar();system("cls");printf("老刘:我记得这里原来好像没有喇叭的啊"); getchar();system("cls");printf("班长:我也没见过,但是这个喇叭的来历不明,我们一定要小心!"); getchar();system("cls");printf("你:现在是中午13:00"); getchar();system("cls");printf("老王:我们要不绕过这个地方?"); getchar();system("cls");printf("班长:不,看到喇叭后面的通道了吗?那里再往外走一段就是10号高速公路"); getchar();system("cls");printf("你:那里那么多僵尸,怎么走啊");getchar();system("cls");printf("班长:啊,这个帐篷里有个箱子");getchar();system("cls");printf("获得[手雷]x3,伤害增加至1000");steve.atk=1000;getchar();system("cls");printf("获得[抗感染药物]x3,[手术工具]x2,血量上限提升至1000");steve.maxhp=1000;steve.hp=1000;getchar();system("cls");printf("获得[肾上腺素],血量瞬间回复至最大血量的2倍");steve.hp=steve.maxhp*2;getchar();system("cls");printf("获得[钉鞋],防御提升至1000,伤害提升至1200(当然啊你可以拿钉鞋踹僵尸啊)");steve.def=1000;steve.atk=1200;steve.food=50;getchar();system("cls");printf("你:该死,我倒要看看这个喇叭是个什么玩意儿");getchar();system("cls");printf("第十五章 奇怪的喇叭 完\n恭喜完成第十五章,奖励金币90");gold+=90;getchar();system("cls");
}
void Level_16()
{system("cls");printf("第十六章 喇叭");getchar();Sleep(2000);printf("你:要不我们快速冲过去怎么样?");getchar();system("cls");printf("班长:可以的啊");getchar();system("cls");printf("你:这里的僵尸好多啊");getchar();system("cls");printf("按任意键开始战斗");getchar();system("cls");int anmoS686=2,k,r;bool lowanmoS686=false,cannot_atk=false;steve.exp=13600;steve.def=1000;steve.atk=1200;steve.hp=2000;steve.maxhp=27600;steve.food=50;zombie.atk=1280;zombie.lev=89;zombie.hp=27600;zombie.def=1200;zombie.exp=1600;zombie.poisonous=false;zombie.poisonous_atk=0;zombie.maxhp=27600;zombie.poisonous_round=-1;printf("敌人信息:\n");printf("敌人:武装僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d    防御:%d    击杀可获得%d经验\n",zombie.hp,zombie.atk,zombie.def,zombie.exp);Sleep(4000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;if(lowanmoS686){anmoS686=2;lowanmoS686=false;}printf("敌人:武装僵尸 等级%d\n",zombie.lev);printf("你的血量:%d/%d\n",steve.hp,steve.maxhp,zombie.hp);k=zombie.hp;printf("\n僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);while(k>0){if(k>=zombie.maxhp/20){printf("█");k-=zombie.maxhp/20;}else{if(k<zombie.maxhp/80) printf("▏");else if(k<zombie.maxhp/60  && k>=zombie.maxhp/80) printf("▎");else if(k<zombie.maxhp/40  && k>=zombie.maxhp/60) printf("▌");else if(k<zombie.maxhp/20  && k>=zombie.maxhp/40) printf("▊");k=0;}}if(anmoS686==0) lowanmoS686=true;if(cannot_atk) printf("\n武装僵尸触发技能,此回合你的枪械攻击无效");printf("\n武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 军用匕首 3500伤害,攻速1/2\n");if(cannot_atk){SetColor(4,0);printf("3| S686散弹枪 10400伤害 子弹%d/∞,攻速1\n",anmoS686);printf("4| 95式步枪 3000伤害 子弹∞/∞ 攻速1/6\n");printf("5| UZI冲锋枪 1900伤害 子弹∞/∞ 攻速1/10\n");SetColor(15,0);}else{printf("3| S686散弹枪 10400伤害 子弹%d/∞,攻速1\n",anmoS686);printf("4| 95式步枪 3000伤害 子弹∞/∞ 攻速1/6\n");printf("5| UZI冲锋枪 1900伤害 子弹∞/∞ 攻速1/10\n");}scanf("%d",&n);if(n==1){if(steve.atk<zombie.def) printf("僵尸毫发无伤\n");else{printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}}else if(n==2){printf("你对僵尸造成了%d伤害\n",3500-zombie.def);Sleep(1000);printf("你对僵尸造成了%d伤害\n",3500-zombie.def);Sleep(1000);zombie.hp=zombie.hp-(3500-zombie.def)*2;}else if(n==3){if(cannot_atk){printf("武装僵尸触发技能,你的枪械攻击无效");Sleep(2000);cannot_atk=false;system("cls");continue;}if(lowanmoS686){printf("子弹耗尽,装弹中");Sleep(2000);}else{anmoS686--;printf("你对僵尸造成了%d伤害\n",10400-zombie.def);Sleep(2000);zombie.hp=zombie.hp-(10400-zombie.def);}}else if(n==4){if(cannot_atk){printf("武装僵尸触发技能,你的枪械攻击无效");Sleep(2000);cannot_atk=false;system("cls");continue;}printf("你对僵尸造成了%d伤害\n",3000-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",3000-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",3000-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",3000-zombie.def);Sleep(333);printf("你对僵尸造成了%d伤害\n",3000-zombie.def);Sleep(334);printf("你对僵尸造成了%d伤害\n",3000-zombie.def);Sleep(334);zombie.hp=zombie.hp-(3000-zombie.def)*6;}else if(n==5){if(cannot_atk){printf("武装僵尸触发技能,你的枪械攻击无效");Sleep(2000);cannot_atk=false;system("cls");continue;}int i;for(i=1;i<=10;i++){printf("你对僵尸造成了%d伤害\n",1900-zombie.def);Sleep(250);}zombie.hp=zombie.hp-(1900-zombie.def)*10;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;cannot_atk=false;r=rand()%10;if(r==3 || r==4 || r==5){printf("老王对僵尸造成了2000伤害\n");zombie.hp-=800;}else if(r==2 || r==6){printf("班长对僵尸造成了3000伤害\n");zombie.hp-=1800;}r=rand()%10;if(r<=3){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else if(r==4 || r==5){MessageBox(NULL,TEXT("武装僵尸发动技能[防弹衣],下回合你的枪械攻击无效"),TEXT("生化危机"),MB_ICONASTERISK);cannot_atk=true;}else printf("你成功的躲过僵尸的攻击\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级武装僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);return;}getchar();system("cls");printf("班长:啊,我们被僵尸包围了");getchar();system("cls");printf("剧毒僵尸:呃~~~~~~");getchar();system("cls");printf("你:我怎么又被僵尸抓住了");getchar();system("cls");printf("班长:这只能靠你自己了");getchar();system("cls");printf("班长:啊,我们被僵尸包围了");getchar();system("cls");int poisoned_remain=0;zombie.poisonous=true;zombie.maxhp=24000;zombie.hp=24000;zombie.lev=81;zombie.exp=1800;zombie.atk=1200;zombie.def=1200;zombie.poisonous_atk=20;printf("敌人信息:\n");printf("敌人:剧毒僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d|剧毒伤害:%d/3    防御:%d    击杀可获得%d经验(8秒后继续)\n",zombie.hp,zombie.atk,zombie.poisonous_atk,zombie.def,zombie.exp);printf("注意:剧毒伤害:atk/round的意思是僵尸的持续伤害为atk每回合(包含受到僵尸普通伤害的回合,作为你第一次受到持续伤害的回合),持续round回合(受到僵尸普通伤害的回合算第一个回合)");Sleep(8000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:剧毒僵尸 等级%d\n",zombie.lev);printf("僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);if(poisoned_remain>0){SetColor(2,0);printf("你的血量:%d/%d - 中毒剩余:%d轮\n",steve.hp,steve.maxhp,poisoned_remain);SetColor(15,0);}else printf("你的血量:%d/%d\n",steve.hp,steve.maxhp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 军用匕首 2880伤害,攻速1/3\n");printf("3| UZI冲锋枪 1600伤害 子弹∞/∞ 攻速1/10\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",2880-zombie.def);Sleep(666);printf("你对僵尸造成了%d伤害\n",2880-zombie.def);Sleep(667);printf("你对僵尸造成了%d伤害\n",2880-zombie.def);Sleep(667);zombie.hp=zombie.hp-(2880-zombie.def)*3;}else if(n==3){int i;for(i=1;i<=10;i++){printf("你对僵尸造成了%d伤害\n",1600-zombie.def);Sleep(250);}zombie.hp=zombie.hp-(1600-zombie.def)*10;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;r=rand()%5;if(r==0 || r==1 || r==2){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);poisoned_remain=3;}else printf("你躲开了僵尸的攻击\n");if(poisoned_remain>0){printf("你收到中毒伤害%d\n",zombie.poisonous_atk);steve.hp-=zombie.poisonous_atk;poisoned_remain--;}Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级剧毒僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);system("cls");return;}system("cls");getchar();printf("你:不行,前面又有好多僵尸来了,消灭它们只会引来更多的僵尸");getchar();system("cls");printf("班长:啊,那我们只能撤退了");getchar();system("cls");printf("锤子:快走,往出口走,它们要来了");getchar();system("cls");printf("你:走啊");getchar();system("cls");printf("第十六章 喇叭 完\n恭喜完成第十六章,奖励金币380");gold+=380;Sleep(2000);return;
}
void Level_17()
{printf("第十七章 撤离");Sleep(2000);system("cls");printf("你:这里,如果没错的话,这里就能上10号高速了");getchar();system("cls");printf("你:之前那个人,在无线电里说的火车站,好像就在不远的地方");getchar();system("cls");printf("班长:好吧我们快走");getchar();system("cls");printf("老刘:H市可远着呢,还是快点吧");getchar();system("cls");printf("你:对,我们时间紧迫,不能再耽搁了");getchar();system("cls");printf("僵尸:呃!嗷~~");getchar();system("cls");printf("班长:那些僵尸又来了!");getchar();system("cls");printf("你:纳尼??又跟上来了QAQ");getchar();system("cls");printf("你:可以的很强");getchar();system("cls");printf("你:我断后");getchar();system("cls");printf("你:僵尸:呃!");getchar();system("cls");printf("你:豁出去了");getchar();system("cls");printf("按任意键开始战斗");getchar();system("cls");steve.atk=1200;steve.def=1000;steve.hp=1000;steve.maxhp=1000;steve.food=50;steve.exp=17000;int poisoned_remain=0,r,k;zombie.poisonous=true;zombie.maxhp=20000;zombie.hp=20000;zombie.lev=86;zombie.exp=2200;zombie.atk=1200;zombie.def=1300;zombie.poisonous_atk=15;printf("敌人信息:\n");printf("敌人:剧毒僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d|剧毒伤害:%d/4    防御:%d    击杀可获得%d经验(8秒后继续)\n",zombie.hp,zombie.atk,zombie.poisonous_atk,zombie.def,zombie.exp);printf("注意:剧毒伤害:atk/round的意思是僵尸的持续伤害为atk每回合(包含受到僵尸普通伤害的回合,作为你第一次受到持续伤害的回合),持续round回合(受到僵尸普通伤害的回合算第一个回合)");Sleep(8000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:剧毒僵尸 等级%d\n",zombie.lev);printf("僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);if(poisoned_remain>0){SetColor(2,0);printf("你的血量:%d/%d - 中毒剩余:%d轮\n",steve.hp,steve.maxhp,poisoned_remain);SetColor(15,0);}else printf("你的血量:%d/%d\n",steve.hp,steve.maxhp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 军用匕首 3800伤害,攻速1/3\n");printf("3| UZI冲锋枪 1700伤害 子弹∞/∞ 攻速1/12\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",3000-zombie.def);Sleep(666);printf("你对僵尸造成了%d伤害\n",3000-zombie.def);Sleep(667);printf("你对僵尸造成了%d伤害\n",3000-zombie.def);Sleep(667);zombie.hp=zombie.hp-(3000-zombie.def)*3;}else if(n==3){int i;for(i=1;i<=12;i++){printf("你对僵尸造成了%d伤害\n",1700-zombie.def);Sleep(200);}zombie.hp=zombie.hp-(1700-zombie.def)*12;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;r=rand()%5;if(r==0 || r==1 || r==2){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);poisoned_remain=4;}else printf("你躲开了僵尸的攻击\n");if(poisoned_remain>0){printf("你收到中毒伤害%d\n",zombie.poisonous_atk);steve.hp-=zombie.poisonous_atk;poisoned_remain--;}Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级剧毒僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);system("cls");return;}system("cls");getchar();printf("你:我们出来了!"); getchar();system("cls");printf("你:10号高速上...为什么有这么多尸体?"); getchar();system("cls");printf("你:这里究竟发生了什么"); getchar();system("cls");printf("班长:可能是尸群来了,这些人都是来不及跑的"); getchar();system("cls");printf("你:往前走吧");Sleep(2000);system("cls");printf("第十七章 撤离 完\n恭喜完成第十七章,奖励金币300\n");Sleep(2000);system("cls");return;
}
void Level_18()
{printf("第十八章 10号高速公路");Sleep(2000);system("cls");printf("你:这些车看着像被大东西砸过");getchar();getchar();system("cls");printf("班长:不像是僵尸砸的"); getchar();system("cls");printf("你:但是......?");getchar();system("cls");printf("你:前面有人!");getchar();system("cls");printf("僵尸:呃~~~~~~");getchar();system("cls");printf("你:woc");getchar();system("cls");printf("你:哦写特么伐克");getchar();system("cls");printf("班长:(⊙﹏⊙)");getchar();system("cls");printf("老王:(⊙﹏⊙)");getchar();system("cls");printf("班长:上♂去,干他");getchar();system("cls");printf("按任意键开始战斗");getch();system("cls");steve.atk=1200;steve.def=1000;steve.hp=1000;steve.maxhp=1000;steve.food=50;steve.exp=17000;int poisoned_remain=0,r,k;zombie.poisonous=true;zombie.hp=36000;zombie.maxhp=36000;zombie.lev=112;zombie.exp=3000;zombie.atk=1250;zombie.def=1600;zombie.poisonous_atk=50;printf("敌人信息:\n");printf("敌人:剧毒僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d|剧毒伤害:%d/3    防御:%d    击杀可获得%d经验(8秒后继续)\n",zombie.hp,zombie.atk,zombie.poisonous_atk,zombie.def,zombie.exp);printf("注意:剧毒伤害:atk/round的意思是僵尸的持续伤害为atk每回合(包含受到僵尸普通伤害的回合,作为你第一次受到持续伤害的回合),持续round回合(受到僵尸普通伤害的回合算第一个回合)");Sleep(8000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:剧毒僵尸 等级%d\n",zombie.lev);printf("僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);if(poisoned_remain>0){SetColor(2,0);printf("你的血量:%d/%d - 中毒剩余:%d轮\n",steve.hp,steve.maxhp,poisoned_remain);SetColor(15,0);}else printf("你的血量:%d/%d\n",steve.hp,steve.maxhp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);printf("2| 军用匕首 3800伤害,攻速1/3\n");printf("3| UZI冲锋枪 2300伤害 子弹∞/∞ 攻速1/12\n");printf("4| S686散弹枪 9600伤害 子弹∞/∞ 攻速1\n");printf("5| 防毒 0伤害 攻速1\n");printf("6| 帮助\n");scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",3800-zombie.def);Sleep(666);printf("你对僵尸造成了%d伤害\n",3800-zombie.def);Sleep(667);printf("你对僵尸造成了%d伤害\n",3800-zombie.def);Sleep(667);zombie.hp=zombie.hp-(3800-zombie.def)*3;}else if(n==3){int i;for(i=1;i<=12;i++){printf("你对僵尸造成了%d伤害\n",2300-zombie.def);Sleep(200);}zombie.hp=zombie.hp-(2300-zombie.def)*12;}else if(n==4){printf("你对僵尸造成了%d伤害\n",9600-zombie.def);zombie.hp=zombie.hp-(9600-zombie.def);}else if(n==5) printf("防毒成功!");else if(n==6){help();continue;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;r=rand()%8;if((r==0 || r==1 || r==2) && n!=5){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);poisoned_remain=3;}else if((r==0 || r==1 || r==2) && n==5){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);}else printf("你躲开了僵尸的攻击\n");if(poisoned_remain>0){printf("你收到中毒伤害%d\n",zombie.poisonous_atk);steve.hp-=zombie.poisonous_atk;poisoned_remain--;}Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级剧毒僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);system("cls");return;}system("cls");getchar();printf("是否搜索物品?\n任意键| 是");getchar();system("cls");printf("获得[收音机]和[5号电池]x4");getchar();system("cls");printf("是否打开收音机?\n任意键| 是");getchar();system("cls");printf("以下为收音机内容\n任意键| 是");getchar();system("cls");printf("主持人:病毒肆虐,军队能否抵挡僵尸的袭击,夺回城市?");getchar();system("cls");printf("主持人:军方表示,他们会尽力组织新一轮的僵尸袭击,下面我们将镜头转向科研人员");getchar();system("cls");printf("你:组织????????这军队特么和僵尸一伙的????");getchar();system("cls");printf("科研人员:我们将这种激发人类嗜血欲望和传染性极强的病毒命名为PAX-4");getchar();system("cls");printf("科研人员:PAX-4的传播方式是血液传播和唾液传播,虽然传染性很强,但是只要把它至于200℃左右的高温下,病毒将在1小时内死亡");getchar();system("cls");printf("呲--------");getchar();system("cls");printf("你:信号断了");getchar();system("cls");printf("班长:算了,走吧");getchar();system("cls");printf("第十八章 10号高速公路 玩\n恭喜完成第十八章,奖励金币400");gold+=400;Sleep(2000);return;
}
void Level_19()
{steve.atk=1200;steve.def=1000;steve.hp=1000;steve.maxhp=1000;steve.food=50;steve.exp=17000;printf("第十九章 PAX-4病毒");Sleep(2000);system("cls");getchar();printf("你:话说这个叫PAX-4的病毒,是只会感染人的吗?");getchar();system("cls");printf("老刘:我几天前在外面看到过一只疯狗");getchar();system("cls");printf("老刘:那个疯狗浑身是血,见人就咬,然后被咬的人就会变成僵尸");getchar();system("cls");printf("你:所以狗会被感染?");getchar();system("cls");printf("老刘:有可能");getchar();system("cls");printf("老王:我们现在是在S市和M市之间");getchar();system("cls");printf("班长:只要一直走就可以到M市了");getchar();system("cls");printf("班长:你不是有对讲机吗");getchar();system("cls");printf("你(递):有啊");getchar();system("cls");printf("班长:我想我记得一个战友的频道");getchar();system("cls");printf("对讲机:呲~~呲~~");getchar();system("cls");printf("班长:通了");getchar();system("cls");printf("班长:&*%@#~~$^*#?...");getchar();system("cls");printf("班长:他们说H市启动了一个Z-Com计划,目的是消灭僵尸");getchar();system("cls");printf("你:他们本来想在D市成立的,但是D市僵尸太多,最后撤到了H市");getchar();system("cls");printf("班长:你有手机吧");getchar();system("cls");printf("你:有的");getchar();system("cls");printf("班长:一会H市的战友会发来几张地图,上面标着周围几个尸群的位置");getchar();system("cls");printf("手机(铃声):凉凉月色为你思念成盒,化作春泥呵护着我~~~");getchar();system("cls");printf("班长:&#$%*^!...");getchar();system("cls");printf("锤子:&#$%*^!...");getchar();system("cls");printf("老刘:&#$%*^!...");getchar();system("cls");printf("老王:&#$%*^!...");getchar();system("cls");printf("你:(滑稽)");getchar();system("cls");printf("班长:第一个尸群离我们还有10公里,一会H市的士兵会空投补给的"); getchar();system("cls");printf("直升机(空投):呼~~~~~~");getchar();system("cls");printf("班长:空投来了");getchar();system("cls");printf("是否捡空投\n任意键| 捡");getch();system("cls");printf("获得[莫洛托夫鸡尾酒]x3,伤害+500");steve.atk+=500;getchar();system("cls");printf("获得[古斯塔夫火箭筒],[火箭弹]x10,伤害+1k");steve.atk+=1000;getchar();system("cls");printf("获得[巴雷特反坦克狙击步枪],[12.7mm专用子弹]x20,[8x瞄准镜],伤害+700");steve.atk+=700;getchar();system("cls");printf("获得[和人一样高的医疗箱],血量上限+1.5k,血量回满");steve.maxhp+=1500;steve.hp+=1500;getchar();system("cls");printf("获得[塔沃尔突击步枪],[专用穿甲弹]x90,伤害+500");steve.atk+=500;getchar();system("cls");printf("获得[反轻型武器防弹衣],防御+1k");steve.def+=1000;getchar();system("cls");printf("僵尸:呃~~~~~~");getchar();system("cls");printf("按任意键开始战斗");getchar();system("cls");int poisoned_remain=0,r,k;zombie.poisonous=false;zombie.Self_detonate=true;zombie.hp=72000;zombie.maxhp=72000;zombie.lev=188;zombie.exp=3000;zombie.atk=2300;zombie.def=3000;zombie.Self_detonate_atk=3200;bool boom=false;int Barrett=0,Gustaf=0; printf("敌人信息:\n");printf("敌人:自爆僵尸    等级:%d\n",zombie.lev);printf("血量:%d    伤害:%d|自爆伤害:%d    防御:%d    击杀可获得%d经验(8秒后继续)\n",zombie.hp,zombie.atk,zombie.Self_detonate_atk,zombie.def,zombie.exp);printf("注意:当僵尸血量低于50%时,每回合会有1/2的概率自爆,你将承受更多伤害");Sleep(8000);system("cls");while(steve.hp>0 && zombie.hp>0){r=64;printf("敌人:自爆僵尸 等级%d\n",zombie.lev);if(zombie.hp<=36000){SetColor(4,0);printf("僵尸血量:%d/%d - 高危自爆区间,请尽快击杀!\n",zombie.hp,zombie.maxhp);SetColor(15,0);}else printf("僵尸血量:%d/%d\n",zombie.hp,zombie.maxhp);printf("你的血量:%d/%d\n",steve.hp,steve.maxhp);printf("武器:\n");printf("1| 普通攻击 %d伤害,攻速1\n",steve.atk);if(Gustaf>0){SetColor(4,0);printf("2| 古斯塔夫火箭筒 35000伤害,攻速6 - 攻击冷却 %d轮\n",Gustaf);SetColor(15,0);}else printf("2| 古斯塔夫火箭筒 35000伤害,攻速6\n");printf("3| 塔沃尔突击步枪 6000伤害 子弹∞/∞ 攻速1/9\n");if(Barrett>0){SetColor(4,0);printf("4| 巴雷特反坦克狙击步枪 28000伤害,攻速3 - 攻击冷却 %d轮\n",Barrett);SetColor(15,0);}printf("4| 巴雷特反坦克狙击步枪 28000伤害 子弹∞/∞ 攻速3\n");if(boom){printf("僵尸已自爆 - 2秒后继续");Sleep(2000);break;}scanf("%d",&n);if(n==1){printf("你对僵尸造成了%d伤害\n",steve.atk-zombie.def);zombie.hp=zombie.hp-(steve.atk-zombie.def);}else if(n==2){printf("你对僵尸造成了%d伤害\n",35000-zombie.def);zombie.hp=zombie.hp-(35000-zombie.def);Gustaf=6;}else if(n==3){int i;for(i=1;i<=9;i++){printf("你对僵尸造成了%d伤害\n",6000-zombie.def);Sleep(250);}zombie.hp=zombie.hp-(6000-zombie.def)*9;}else if(n==4){printf("你对僵尸造成了%d伤害\n",28000-zombie.def);zombie.hp=zombie.hp-(28000-zombie.def);Barrett=3;}else printf("无效输入\n");Sleep(1000);if(zombie.hp<=0) break;r=rand()%8;if(r<=2){printf("僵尸对你造成了%d伤害\n",zombie.atk-steve.def);steve.hp=steve.hp-(zombie.atk-steve.def);poisoned_remain=3;}else if((r>=3 && r<=6) && zombie.hp<=36000){MessageBox(NULL,TEXT("僵尸自爆了,对你造成了1200伤害"),TEXT("生化危机"),MB_ICONWARNING);printf("僵尸自爆了,对你造成了%d伤害\n",zombie.Self_detonate_atk-steve.def);steve.hp=steve.hp-(zombie.Self_detonate_atk-steve.def);boom=true;}else printf("你躲开了僵尸的攻击\n");Sleep(2000);system("cls");}system("cls");if(zombie.hp<=0){printf("恭喜击杀[%d级自爆僵尸]\n获得经验:%d\n2秒后继续\n",zombie.lev,zombie.exp);Sleep(2000);steve.exp+=zombie.exp;}if(steve.hp<=0){printf("你死了,请重新来过(5秒后结束)");Sleep(5000);system("cls");return;}getchar();getchar();system("cls");printf("你:我们距离第一个尸群还有5km,再往后20km是第二个尸群");getchar();system("cls");printf("班长:不过我们就可以到M市了");getchar();system("cls");printf("手机(铃声):叮铃~~你有新短消息,请及时查收");getchar();system("cls");printf("手机(短信):H市政/府成立了一个叫Z-com的组织,目前Z-com的一小队队员进入了D市,你们可以去D市找他们");getchar();system("cls");printf("手机(短信):Z-com是一个清理僵尸的组织,他们这次是侦察情况,顺便把D市的一些研究资料拿回来");getchar();system("cls");printf("老刘:咱们要不去D市?");getchar();system("cls");printf("班长:可以,但必须小心");getchar();system("cls");printf("你:好,那出发去D市");getchar();printf("第十九章 PAX-4病毒 完\n恭喜完成第十九章,奖励金币350");gold+=350;Sleep(2000);return;
}
void Level_20()
{printf("第二十章 新的变种");Sleep(2000);system("cls");getchar();printf("3天后");getchar();system("cls");printf("距离生化危机爆发已经过去了7天");getchar();system("cls");printf("这几天,H市在不断的受到小规模僵尸冲击,甚至H市还有轻微沦陷,不断有人被感染,但是一些幸存者在H市北部成功安置");getchar();system("cls");printf("在生化危机爆发2天后,无数的幸存者开始涌向H市,因为那里受灾最小");getchar();system("cls");printf("但是他们万万没想到,那里之后将会成为最后的地狱");getchar();system("cls");printf("无数的僵尸破开封锁线,冲进市区,无数的人继续变为僵尸,H市也将成为死城");getchar();system("cls");printf("H市沦陷,只是时间的问题...");getchar();system("cls");printf("......");getchar();system("cls");printf("收音机:病毒持续变异,部分宿主开始变的更加狂暴,甚至出现了巨型变异体");getchar();system("cls");printf("收音机:现在专家已经正式将PAX-4病毒升级为PAX-6级,预计病毒还会继续变异");getchar();system("cls");printf("收音机:下面是本台最新收到的消息,H市西部再次受到袭击,部分僵尸冲进市区,好在军队及时将其击毙,没有造成病毒扩散和平民死伤");getchar();system("cls");printf("你:这样下去H市必然沦陷");getchar();system("cls");printf("你:每天都有小规模袭击");getchar();system("cls");printf("班长:是啊,能不能见到H市都是问题");getchar();system("cls");printf("老王:你不觉得S市其实挺好的吗");getchar();system("cls");printf("班长:是啊,要不是这病毒");getchar();system("cls");printf("你:现在受灾最小的就是H市了,但是病毒的发源地咱们谁都不知道");getchar();system("cls");printf("老刘:咱们公司就是在爆发后的第2天沦陷的");getchar();system("cls");printf("班长:你们不是在S市吗");getchar();system("cls");printf("锤子:我的那份地图是我手绘的,不完整");getchar();system("cls");printf("你:S市的北部是什么地方");getchar();system("cls");printf("班长:T市");getchar();system("cls");printf("你:总感觉不对劲");getchar();system("cls");printf("班长:T市有很多的科研装置,国家一些大型生物实验设备都在那里");getchar();system("cls");printf("你:生物实验?不好!");getchar();system("cls");printf("第二十章 新的变种 完\n恭喜完成第二十章,奖励金币50");gold+=50;Sleep(2000);system("cls");return;
}
void Level_21()
{printf("第二十一章 D市\n");Sleep(2000);printf("本游戏暂时完结,预计更新时间:6月16日\n");printf("如有bug欢迎私信或评论反馈给作者minecraft_herobrine,或在评测记录中搜索R10000000\n");printf("谢谢参与游戏\n");printf("10秒后自动返回主页面");Sleep(10000);system("cls");return;
}
void Level_22()
{printf("第二十二章 巨型变异体\n");Sleep(2000);printf("本游戏暂时完结,预计更新时间:6月16日\n");printf("如有bug欢迎私信或评论反馈给作者minecraft_herobrine,或在评测记录中搜索R10000000\n");printf("谢谢参与游戏\n");printf("10秒后自动返回主页面");Sleep(10000);system("cls");return;
}
void Level_23()
{printf("第二十三章 启程\n");Sleep(2000);printf("本游戏暂时完结,预计更新时间:6月16日\n");printf("如有bug欢迎私信或评论反馈给作者minecraft_herobrine,或在评测记录中搜索R10000000\n");printf("谢谢参与游戏\n");printf("10秒后自动返回主页面");Sleep(10000);system("cls");return;
}
void Level_24()
{printf("第二十四章 希望\n");Sleep(2000);printf("本游戏暂时完结,预计更新时间:6月16日\n");printf("如有bug欢迎私信或评论反馈给作者minecraft_herobrine,或在评测记录中搜索R10000000\n");printf("谢谢参与游戏\n");printf("10秒后自动返回主页面");Sleep(10000);system("cls");return;
}
void Level_25()
{printf("第二十五章 分离\n");Sleep(2000);printf("本游戏暂时完结,预计更新时间:6月16日\n");printf("如有bug欢迎私信或评论反馈给作者minecraft_herobrine,或在评测记录中搜索R10000000\n");printf("谢谢参与游戏\n");printf("10秒后自动返回主页面");Sleep(10000);system("cls");return;
}
int main()
{int password,quit;steve.atk=10;steve.def=1;steve.exp=0;steve.hp=50;steve.maxhp=50;zombie.nodie=true;srand((unsigned)time(NULL));system("color 0F");printf("文字游戏:生化危机\n");Sleep(1000);printf("出品人:Herobrine\n");Sleep(1000);printf("版本:1.5.12\n");Sleep(1000);printf("按任意键开始");getch();system("cls");printf("等待加载...\n0");Sleep(500);system("cls");printf("准备加载...\n▊15");Sleep(700);system("cls");printf("加载资源中...\n█▎25");Sleep(600);system("cls");printf("加载资源中...\n██▊55");Sleep(400);system("cls");printf("加载资源中...\n███▌70");Sleep(300);system("cls");printf("加载资源中...\n███▊75");Sleep(1500);system("cls");printf("正在加载章节...\n████▌90");Sleep(400);system("cls");printf("正在加载章节...\n█████100");Sleep(1000);system("cls");printf("正在进入游戏...\n█████100");Sleep(3000);system("cls");while(1){system("cls");printf("<更新>\n");printf("更新了生化危机1.2\n");printf("5月27日更生化危机1.5\n");printf("是否启动生化危机BGM?\n1 是\n0 否");scanf("%d",&n);if(n==0){printf("已关闭BGM");break;}else if(n==1){printf("已开启BGM");system("start ZCom.mp3");break;}else{printf("无效输入");Sleep(2000);}}Sleep(2000);if(Bit64()) PC_64Bit=true;else PC_64Bit=false;getchar();system("cls");while(1){n=1e6;steve.hp=1e6;steve.atk=1e6;steve.exp=1e6;steve.maxhp=1e6;steve.def=1e6;password=rand()%10;if(password==0) str[0]='8',str[1]='n',str[2]='c',str[3]='3';if(password==1) str[0]='x',str[1]='4',str[2]='6',str[3]='k';if(password==2) str[0]='7',str[1]='a',str[2]='w',str[3]='m';if(password==3) str[0]='a',str[1]='k',str[2]='p',str[3]='j';if(password==4) str[0]='f',str[1]='2',str[2]='n',str[3]='v';if(password==5) str[0]='q',str[1]='s',str[2]='j',str[3]='n';if(password==6) str[0]='r',str[1]='g',str[2]='5',str[3]='e';if(password==7) str[0]='0',str[1]='c',str[2]='t',str[3]='5';if(password==8) str[0]='1',str[1]='1',str[2]='g',str[3]='0';if(password==9) str[0]='h',str[1]='7',str[2]='l',str[3]='y';printf("主菜单\n你想做什么?\n");printf("1| 剧情模式\n");printf("2| 无尽模式\n");printf("3| 商店\n");printf("4| 退出\n");scanf("%d",&n);system("cls");if(n==1){printf("输入章节:\n--------------------------\n");printf("0| 返回主菜单\n");printf("1| 起源\n");printf("2| 逃离计划\n");printf("3| 涉险\n");printf("4| 包围\n");printf("5| 离开公司\n");printf("6| 出发\n");printf("7| 3号快速路\n");printf("8| 商场\n");printf("9| 巨大的威胁\n");printf("10| 恶魔之影\n");printf("11| 追击Boss僵尸\n");printf("12| 生死之战\n");printf("13| 郊区军营\n");printf("14| 深入军营\n");printf("15| 奇怪的喇叭\n");printf("16| 喇叭\n");printf("17| 撤离\n");printf("18| 10号高速公路\n");printf("19| PAX-4病毒\n");printf("20| 新的变种\n");printf("21| D市\n");printf("22| 巨型变异体\n");printf("23| 启程\n");printf("24| 希望\n");printf("25| 分离\n");
//          printf("-1| 退出游戏\n");scanf("%d",&n);system("cls");if(n==0);else if(n==1) Level_1();else if(n==2) Level_2();else if(n==3) Level_3();else if(n==4) Level_4();else if(n==5) Level_5();else if(n==6) Level_6();else if(n==7) Level_7();else if(n==8) Level_8();else if(n==9) Level_9();else if(n==10) Level_10();else if(n==11) Level_11();else if(n==12) Level_12();else if(n==13) Level_13();else if(n==14) Level_14();else if(n==15) Level_15();else if(n==16) Level_16();else if(n==17) Level_17();else if(n==18) Level_18();else if(n==19) Level_19();else if(n==20) Level_20();else if(n==21) Level_21();else if(n==22) Level_22();else if(n==23) Level_23();else if(n==24) Level_24();else if(n==25) Level_25();else{printf("无效输入");Sleep(2000);}n=1e9;}else if(n==2){Endless_mode();n=1e9;}else if(n==3){Shop();n=1e9;}else if(n==4){system("cls");printf("退出游戏会清空你的数据哦,请谨慎退出!\n");Sleep(1000);system("cls");if(IDYES==MessageBox(NULL,TEXT("真的要退出游戏吗?退出游戏会清空你的数据哦"),TEXT("生化危机1.0.4"),MB_YESNO)){printf("你选择了退出");Sleep(2000);break;}else printf("你选择了留下");Sleep(2000);}else{printf("无效输入");Sleep(2000);}system("cls");}system("cls");printf("曲终一散,黄粱一梦\n");Sleep(2000);printf("Wake Up\n");Sleep(2000);printf("出自MC终末之诗\n");Sleep(2000);system("cls");printf("制作者名单\n");Sleep(2000);printf("部分剧情素材出自《我的行尸走肉》,《大雄的生化危机》,《大雄的生化危机2》,《明日之后》\n");Sleep(2000);printf("软件制作者:minecraft_herobrine(话说我怎么被禁言了)\n");Sleep(2000);printf("代码搬运工:zhenglier\n");Sleep(2000);printf("感谢<蒟蒻_233>,<WierdHacker>,<BIGBUG>,<电击蓝莓>,<夜刀神十香>,为生化危机提供的帮助\n");Sleep(3000);printf("谢谢参与游戏~~Byebye!");Sleep(5000);return 0;
}

海岛战争

#include<bits/stdc++.h>
#include<string>
#include<windows.h>
#include<conio.h>
#include<fstream>
#include<ctime>
#include<time.h>
#include<stdio.h>
using namespace std;
ifstream fin("小岛战争data.txt");
struct black_daye {string name;int gongji;int fangyu;int xiel;
};
black_daye peopledata_dy[4] = { "看门大爷",150,100,800 };
int sbbspeople = 10;
int a, ag;
int name, password;
int sinput;
int newhand = 0;
string root;
int rootdh;
string kuangwu[1000] = { "金刚石","铁","铜","金","银","煤炭"
,"铀","铁","按钮","钢","钛" };
string ezj[3] = { "地下水","地雷","臭袜子" };
int data[1000];
/*0武器等级 1合成劵 2金刚石 3铁 4铜 5金 6银 7煤炭
8木屋 9军事基地 10港口 11防空洞 12士兵宿舍
13独木舟 14小艇 15战舰 16潜艇 17航空母舰 18核潜艇
19血量 20攻击 21领地 22防御 23矿工铲 24士兵人数
25电锯 26密码 27账号 28木头 29独木舟 30小艇 31战舰
32潜艇 33航空母舰 34核潜艇 35铀块 36铁块 37按钮
38弓箭 39火炮 40护甲 41粽子 42钛合金 43钢合金 44核弹
45钢 46钛 47油漆 48核弹发射器 49不锈钢 50导弹 51钱
52石油
*/
string make[1000] = { "矿工铲","电锯","弓箭","火炮","护甲","粽子",
"钛合金","钢合金","核弹","核弹发射器","不锈钢","导弹"," "
};
int suiji = 0;
int jsq = 0;
bool yj = false;
void mout(char* p) {//每隔100毫秒输出一个字符 while (1) {if (*p != 0)printf("%c", *p++);elsebreak;Sleep(100);}
}
void outmake() {cout << "木头:" << data[28] << endl;cout << "金刚石:" << data[2] << endl;cout << "铁:" << data[3] << endl;cout << "铜:" << data[4] << endl;cout << "金:" << data[5] << endl;cout << "银:" << data[6] << endl;cout << "煤炭:" << data[7] << endl;cout << "铀块:" << data[35] << endl;cout << "钢:" << data[45] << endl;cout << "钛:" << data[46] << endl;cout << "按钮:" << data[37] << endl;cout << "油漆:" << data[47] << endl;cout << "合成物品:" << endl;return;
}
void outzb() {cout << "电锯:" << data[25] << endl;cout << "弓箭:" << data[38] << endl;cout << "火炮:" << data[39] << endl;cout << "护甲:" << data[40] << endl;cout << "粽子:" << data[41] << endl;cout << "钛合金:" << data[42] << endl;cout << "钢合金:" << data[43] << endl;cout << "核弹:" << data[44] << endl;cout << "核弹发射器:" << data[48] << endl;cout << "不锈钢:" << data[49] << endl;cout << "导弹:" << data[50] << endl;return;
}
void outjz() {cout << "木屋:" << data[8] << endl;cout << "军事基地:" << data[9] << endl;cout << "港口:" << data[10] << endl;cout << "防空洞:" << data[11] << endl;cout << "士兵宿舍:" << data[12] << endl;return;}
void outcz() {cout << "1独木舟:" << data[13] << endl;cout << "2小艇:" << data[14] << endl;cout << "3战舰:" << data[15] << endl;cout << "4潜艇:" << data[16] << endl;cout << "5航空母舰:" << data[17] << endl;cout << "6核潜艇:" << data[18] << endl;return;
}
void zd() {int nm = 0;int oxl;int dxl = rand() % 5000 + 1000;string zdzb[3];int zbzbi[3];int mesh = 0, mefy = 0;int pbsgj = rand() % 500 + 100;int pbssbrs = rand() % 50 + 10;int pbsfy = rand() % 250 + 50;
part7:system("cls");cout << "请选择你的出战装备(每种各选一个,可不选):" << endl;cout << "防御:" << endl;cout << "0不选 1护甲" << endl;cout << "出战工具:" << endl;cout << "0不选 1航母 2独木舟 3小艇 4战舰 5潜艇 6核潜艇" << endl;cin >> zbzbi[1] >> zbzbi[2];if (zbzbi[1] == 0) {zdzb[1] = "无";}else {if (data[40] < 1) {cout << "你没有护甲" << endl;Sleep(1000);goto part7;}zdzb[1] = "护甲";mefy += 150;}switch (zbzbi[2]) {case 0: {zdzb[2] = "无";break;}case 1: {if (data[17] < 1) {cout << "你没有航母" << endl;Sleep(1000);goto part7;}zdzb[2] = "航母";mesh += 200;break;}case 2: {if (data[13] < 1) {cout << "你没有独木舟" << endl;Sleep(1000);goto part7;}zdzb[2] = "独木舟";mesh += 10;break;}case 3: {if (data[14] < 1) {cout << "你没有小艇" << endl;Sleep(1000);goto part7;}zdzb[2] = "小艇";mesh += 25;break;}case 4: {if (data[15] < 1) {cout << "你没有战舰" << endl;Sleep(1000);goto part7;}zdzb[2] = "战舰";mesh += 150;break;}case 5: {if (data[16] < 1) {cout << "你没有潜艇" << endl;Sleep(1000);goto part7;}zdzb[2] = "潜艇";mesh += 140;break;}case 6: {if (data[17] < 1) {cout << "你没有核潜艇" << endl;Sleep(1000);goto part7;}zdzb[2] = "核潜艇";mesh += 200;break;}}string djnname[5] = { "大砍刀","吸血","打王者荣耀","射箭","高射炮" };int djnjx[5] = { 80,100,0,70,150 };system("cls");while (data[19] > 0 && dxl > 0) {suiji = rand() % 4 + 0;cout << "我方装备:" << zdzb[0] << endl;cout << "我方防御:" << zdzb[1] << endl;cout << "我方血量:" << data[19] << endl;cout << endl;cout << "敌方血量:" << dxl << endl;cout << "敌方技能:" << djnname[suiji] << endl;oxl = data[19];data[19] = data[19] - pbsgj + data[22] + data[24] / 10 * 2 - pbssbrs / 10 - djnjx[suiji] + mefy;oxl = oxl - data[19];cout << "你掉了" << oxl << "滴血" << endl;partyu1:cout << "你是否要用粽子来回血,1yes,2no" << endl;cin >> sinput;if (sinput == 1) {if (data[41] < 1) {cout << "你没有粽子" << endl;Sleep(1000);goto partyu1;}part12:cout << "请输入数量:" << endl;cin >> sinput;if (data[41] < sinput) {cout << "不够" << endl;goto part12;}cout << "补血成功" << endl;data[19] += data[41] * sinput * 75;Sleep(1000);}partyui1:Sleep(500);cout << "你用什么武器?" << endl;cout << "0不选 1弓箭 2火炮 3核弹 4导弹" << endl;cin >> zbzbi[0];switch (zbzbi[0]) {case 0: {zdzb[0] = " ";break;}case 1: {if (data[38] < 1) {cout << "你没有弓箭" << endl;Sleep(1000);goto part7;}zdzb[0] = "弓箭";mesh = 70;break;}case 2: {if (data[39] < 1) {cout << "你没有火炮" << endl;Sleep(1000);goto part7;}zdzb[0] = "火炮";mesh = 100;break;}case 3: {if (data[44] < 1) {cout << "你没有核弹" << endl;Sleep(1000);goto part7;}zdzb[0] = "核弹";mesh = 500;break;}case 4: {if (data[50] < 1) {cout << "你没有导弹" << endl;Sleep(1000);goto part7;}zdzb[0] = "导弹";mesh = 250;break;}}dxl = dxl - data[20] - data[24] / 10 + pbsfy + pbssbrs / 10 * 2 - mesh;cout << "对方掉了" << dxl << "滴血" << endl;Sleep(500);pbssbrs -= data[20] * 0.2;data[24] -= pbsgj * 0.2;}if (dxl < 0) {cout << "你把对方干掉了" << endl;cout << "战利品:" << endl;suiji = rand() % 100 + 1;switch (suiji) {case 1: {cout << "获得豪华大礼包一个!!" << endl;cout << "油漆*10" << endl;cout << "金刚石*5" << endl;cout << "钛*6" << endl;cout << "铁*10" << endl;cout << "领地*1" << endl;cout << "士兵*100" << endl;cout << "粽子*1" << endl;cout << "弓箭*8" << endl;data[47] += 10;data[2] += 5;data[3] += 10;data[46] += 6;data[21] += 1;data[24] += 100;data[41] += 1;data[38] += 8;Sleep(5000);return;break;}case 25: {cout << "获得领地1块" << endl;cout << "获得士兵" << pbssbrs / 100 * 2 << endl;data[21] += 1;data[24] += pbssbrs / 100 * 2;Sleep(5000);return;break;}}if (suiji == 2) {cout << "敌人太穷了,什么也没有" << endl;Sleep(1000);return;}else if (suiji > 2 && suiji < 25) {cout << "获得航空母舰1艘,军事基地一个" << endl;data[17] += 1;data[9] += 1;Sleep(1000);return;}else if (suiji > 25 && suiji <= 98) {cout << "你获得士兵100" << endl;data[24] += 100;Sleep(1000);return;}}else {cout << "你被打死了" << endl;cout << "士兵-100" << endl;data[24] -= 100;Sleep(5000);return;}
}
void outdata() {ofstream fout("小岛战争data.txt");for (int i = 0; i < 52; i++)fout << data[i] << " ";cout << "OK" << endl;Sleep(1000);return;
}
void start() {system("cls");mout("欢迎来到小岛战争1.0.0正式版\n");MessageBox(NULL, TEXT("请不要输入除了选项之外的数字,后果自负"), TEXT("游戏提示"), MB_OK);mout("作者:jsh\n");mout("—_ —\n");mout("输入一个数开始游戏\n");cin >> sinput;return;
}
void dl() {int bnm;
pt1:system("cls");cout << "1登录,2注册" << endl;cin >> bnm;if (bnm == 1) {newhand = 1;cout << "账号:";cin >> name;cout << "密码:";cin >> password;if (data[26] != password || data[27] != name) {cout << "错误!" << endl;Sleep(2000);goto pt1;}elsereturn;}else {cout << "账号:";cin >> name;cout << "密码:";cin >> password;data[26] = password;data[27] = name;return;}return;
}
void cave_tie() {cout << "你来到铁矿..." << endl;
part1:system("cls");mout("正在挖矿...\n");Sleep(1000);suiji = rand() % 2 + 1;if (suiji == 2) {suiji = rand() % 2 + 0;cout << "你挖到了" << ezj[suiji] << endl;Sleep(2000);cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1)goto part1;elsereturn;}cout << "你挖到了" << kuangwu[1] << endl;ag = rand() % 15 + 1;data[3] += ag;cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1);elsereturn;Sleep(2000);goto part1;
}
void cave_mei() {cout << "你来到煤矿..." << endl;
part2:system("cls");mout("正在挖矿...\n");Sleep(1000);suiji = rand() % 2 + 1;if (suiji == 2) {suiji = rand() % 2 + 0;cout << "你挖到了" << ezj[suiji] << endl;Sleep(2000);cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1)goto part2;elsereturn;}cout << "你挖到了" << kuangwu[5] << endl;ag = rand() % 20 + 1;data[7] += ag;cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1);elsereturn;Sleep(2000);goto part2;
}
void cave_jingangshi() {cout << "你来到金刚石矿..." << endl;
part3:system("cls");mout("正在挖矿...\n");Sleep(1000);suiji = rand() % 2 + 1;if (suiji == 2) {suiji = rand() % 2 + 0;cout << "你挖到了" << ezj[suiji] << endl;Sleep(2000);cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1)goto part3;elsereturn;}cout << "你挖到了" << kuangwu[0] << endl;ag = rand() % 5 + 1;data[2] += ag;cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1);elsereturn;Sleep(2000);goto part3;
}
void cave_tong() {cout << "你来到铜矿..." << endl;
part4:system("cls");mout("正在挖矿...\n");Sleep(1000);suiji = rand() % 2 + 1;if (suiji == 2) {suiji = rand() % 2 + 0;cout << "你挖到了" << ezj[suiji] << endl;Sleep(2000);cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1)goto part4;elsereturn;}ag = rand() % 10 + 1;cout << "你挖到了" << kuangwu[2] << ag << endl;data[4] += ag;cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1);elsereturn;Sleep(2000);goto part4;
}
void cave_jin() {cout << "你来到金矿..." << endl;
part5:system("cls");mout("正在挖矿...\n");Sleep(1000);suiji = rand() % 2 + 1;if (suiji == 2) {suiji = rand() % 2 + 0;cout << "你挖到了" << ezj[suiji] << endl;Sleep(2000);cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1)goto part5;elsereturn;}ag = rand() % 7 + 1;cout << "你挖到了" << kuangwu[3] << ag << endl;data[5] += ag;cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1);elsereturn;Sleep(2000);goto part5;
}
void cave_yin() {cout << "你来到银矿..." << endl;
part6:system("cls");mout("正在挖矿...\n");Sleep(1000);suiji = rand() % 2 + 1;if (suiji == 2) {suiji = rand() % 2 + 0;cout << "你挖到了" << ezj[suiji] << endl;Sleep(2000);cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1)goto part6;elsereturn;}ag = rand() % 9 + 1;cout << "你挖到了" << kuangwu[4] << ag << endl;data[6] += ag;cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1);elsereturn;Sleep(2000);goto part6;
}
void cave_zhoukuai() {cout << "你来到铀矿..." << endl;
part6:system("cls");mout("正在挖矿...\n");Sleep(1000);suiji = rand() % 2 + 1;if (suiji == 2) {suiji = rand() % 2 + 0;cout << "你挖到了" << ezj[suiji] << endl;Sleep(2000);cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1)goto part6;elsereturn;}ag = rand() % 5 + 1;cout << "你挖到了" << kuangwu[6] << ag << endl;data[35] += ag;cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1);elsereturn;Sleep(2000);goto part6;
}
void cave_tai() {cout << "你来到钛矿..." << endl;
part10:system("cls");mout("正在挖矿...\n");Sleep(1000);suiji = rand() % 2 + 1;if (suiji == 2) {suiji = rand() % 2 + 0;cout << "你挖到了" << ezj[suiji] << endl;Sleep(2000);cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1)goto part10;elsereturn;}ag = rand() % 5 + 1;cout << "你挖到了" << kuangwu[6] << ag << endl;data[46] += ag;cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1);elsereturn;Sleep(2000);goto part10;
}
void cave_shiyou() {cout << "你来到油田..." << endl;
part11:system("cls");mout("正在吸油...\n");Sleep(1000);suiji = rand() % 2 + 1;if (suiji == 2) {suiji = rand() % 2 + 0;cout << "你挖到了" << ezj[suiji] << endl;Sleep(2000);cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1)goto part11;elsereturn;}ag = rand() % 5 + 1;cout << "你挖到了" << kuangwu[6] << ag << endl;data[46] += ag;cout << "是否继续挖矿,1继续,2退出" << endl;cin >> a;if (a == 1);elsereturn;Sleep(2000);goto part11;
}
void cave() {int a;int ag = 0;mout("山洞里有各种危险,但也可能有宝藏\n");/*if(data[23]<1){mout("你没有矿工铲,无法挖矿\n");Sleep(2000);return ;}*/
part0:system("cls");cout << "1铁矿,2煤矿,3金刚石矿,4铜矿,5金矿,6银矿,7铀矿,8钛矿 9退出" << endl;cin >> sinput;switch (sinput) {case 1: {cave_tie();goto part0;break;}case 2: {cave_mei();goto part0;break;}case 3: {cave_jingangshi();goto part0;break;}case 4: {cave_tong();goto part0;break;}case 5: {cave_jin();goto part0;break;}case 6: {cave_yin();goto part0;break;}case 7: {cave_zhoukuai();goto part0;break;}case 8: {cave_tai();goto part0;break;}case 9: {return;break;}}
}
void woods() {int sdfgh;int asdfg = 0;mout("你来到了森林,准备砍树做船\n");/*if(data[8]<1){mout("你没有电锯,无法砍树\n");Sleep(2000);return ;}*/
part2:system("cls");mout("你开始砍树...\n");asdfg = rand() % 100 + 1;if (asdfg % 2 == 0) {mout("你得到");asdfg = rand() % 10 + 1;cout << asdfg;mout("根木头");data[28] += asdfg;}cout << "是否继续砍树,1继续,2退出" << endl;cin >> sdfgh;if (sdfgh == 1);elsereturn;Sleep(2000);goto part2;
}
void xmw() {int df;mout("你回到了小木屋\n");mout("你经过一天的工作,觉得很累\n");
part11:cout << "你是否要吃粽子,1yes 2no" << endl;cin >> df;if (df == 1) {cout << "你要吃几个?" << endl;cin >> df;if (data[41] < df) {cout << "你没有那么多的粽子" << endl;goto part11;}data[41] -= df;data[19] += data[41] * 100;data[20] += data[41] * 80;data[21] += data[41] * 65;goto part11;}return;
}
void gzs() {int yui;
party1:system("cls");outmake();cout << "1独木舟,2小艇,3战舰,4潜艇,5航空母舰,6核潜艇,7退出" << endl;cin >> yui;switch (yui) {case 1: {if (data[28] < 25) {cout << "木头不够!!" << endl;Sleep(2000);goto party1;}else {mout("合成中...\n");Sleep(5000);cout << "合成成功" << endl;data[13]++;data[28] -= 25;}break;}case 2: {if (data[28] < 50 || data[3] < 5) {cout << "木头或者铁不够!!" << endl;Sleep(2000);goto party1;}else {mout("合成中...\n");Sleep(5000);cout << "合成成功" << endl;data[14]++;data[28] -= 50;data[3] - 5;}break;}case 3: {if (data[28] < 75 || data[3] < 50 || data[4] < 50 || data[7] < 25) {cout << "材料不够!!" << endl;Sleep(2000);goto party1;}else {mout("合成中...\n");Sleep(5000);cout << "合成成功" << endl;data[15]++;data[28] -= 75;data[3] -= 50;data[4] -= 50;data[7] -= 25;}break;}case 5: {if (data[28] < 100 || data[3] < 75 || data[4] < 75 || data[7] < 50 || data[2] < 15 || data[6] < 20) {cout << "材料不够!!" << endl;Sleep(2000);goto party1;}else {mout("合成中...\n");Sleep(5000);cout << "合成成功" << endl;data[17]++;data[28] -= 100;data[3] -= 75;data[4] -= 75;data[7] -= 50;data[2] -= 15;data[6] -= 20;}break;}case 4: {if (data[28] < 100 || data[3] < 75 || data[4] < 75 || data[7] < 100 || data[2] < 15 || data[6] < 25) {cout << "材料不够!!" << endl;Sleep(2000);goto party1;}else {mout("合成中...\n");Sleep(5000);cout << "合成成功" << endl;data[16]++;data[28] -= 100;data[3] -= 75;data[4] -= 75;data[7] -= 100;data[2] -= 15;data[6] -= 20;}break;}case 6: {if (data[28] < 100 || data[3] < 75 || data[4] < 75 || data[7] < 50 || data[2] < 15 || data[6] < 20 || data[5] < 50) {cout << "材料不够!!" << endl;Sleep(2000);goto party1;}else {mout("合成中...\n");Sleep(5000);cout << "合成成功" << endl;data[18]++;data[28] -= 100;data[3] -= 100;data[4] -= 75;data[7] - 25;data[2] - 15;data[6] - 20;data[5] - 50;}break;}case 7:return; break;}goto party1;
}
void kfz() {mout("你看着小岛,觉得少了点什么\n");mout("你决定在小岛上建一些建筑\n");int yuio;
party2:system("cls");outmake();cout << "1木屋,2军事基地,3港口,4防空洞,5士兵宿舍,6退出" << endl;cin >> yuio;switch (yuio) {case 1: {if (data[28] < 50) {cout << "木头不够!!" << endl;Sleep(2000);goto party2;}else {mout("建造中...\n");Sleep(5000);cout << "建造成功" << endl;data[8]++;data[28] -= 25;}break;}case 2: {if (data[28] < 50 || data[3] < 5) {cout << "木头或者铁不够!!" << endl;Sleep(2000);goto party2;}else {mout("合成中...\n");Sleep(5000);cout << "合成成功" << endl;data[9]++;data[28] -= 50;data[3] -= 5;}break;}case 3: {if (data[28] < 75 || data[3] < 50 || data[4] < 50 || data[7] < 25) {cout << "材料不够!!" << endl;Sleep(2000);goto party2;}else {mout("合成中...\n");Sleep(5000);cout << "合成成功" << endl;data[10]++;data[28] -= 75;data[3] -= 50;data[4] -= 50;data[7] -= 25;}break;}case 5: {if (data[28] < 100 || data[3] < 75 || data[4] < 75 || data[7] < 50 || data[2] < 15 || data[6] < 20) {cout << "材料不够!!" << endl;Sleep(2000);goto party2;}else {mout("合成中...\n");Sleep(5000);cout << "合成成功" << endl;data[11]++;data[28] -= 100;data[3] -= 75;data[4] -= 75;data[7] -= 50;data[2] -= 15;data[6] -= 20;}break;}case 4: {if (data[28] < 100 || data[3] < 75 || data[4] < 75 || data[7] < 100 || data[2] < 15 || data[6] < 25) {cout << "材料不够!!" << endl;Sleep(2000);goto party2;}else {mout("合成中...\n");Sleep(5000);cout << "合成成功" << endl;data[12]++;data[28] - 100;data[3] -= 75;data[4] - 75;data[7] - 100;data[2] - 15;data[6] - 20;}break;}case 6:return; break;}goto party2;
}
void sbssj() {int qwe;if (data[12] < 1) {cout << "你没有士兵宿舍" << endl;Sleep(1000);return;}
part4:system("cls");cout << "你有士兵:" << data[24] << "人" << endl;cout << "你有宿舍:" << data[12] << "座" << endl;cout << "你要招募士兵吗?(1次消耗10金),1=招募,2=退出" << endl;cin >> qwe;int zxc = 0;if (qwe == 1) {if (data[5] < 10) {cout << "你没有钱" << endl;Sleep(1000);return;}data[5] -= 10;mout("你发布了招募任务...\n");zxc = rand() % 50 + 10;data[24] += zxc;Sleep(1000);if (sbbspeople * data[12] < data[24]) {cout << "现有士兵宿舍不够,无法招募" << endl;mout("进行退款...");Sleep(2000);data[5] += 10;data[24] -= zxc;return;}cout << "你招募到了" << zxc << "名士兵" << endl;goto part4;}
}
void shez() {int cvb;cout << "变强攻略:" << endl;cout << "1=打开,2=退出" << endl;cin >> cvb;if (cvb = 2)    return;else {system("start https://paste.ubuntu.com/p/gtPVjtNx7x/");/*如果你不想注册/登录账号,并且看到了这里,这里搬运了链接的内容: 获得更多领地:提升士兵数;多挖矿金刚石是个好东西;如果别人的船只比你厉害就别去攻打对方的小岛领地越大越厉害作者很良心多关心你的小岛每次更新时不用删除原存档  */ }return;
}
void zzs() {int nm = 0;int oxl;int odxl;cout << "1战斗,2退出" << endl;cin >> sinput;if (sinput == 2)return;zd();return;
}
void indata() {int sj;int i = 0;while (fin >> sj) {data[i] = sj;i++;}
}
void makeroom() {cout << "你来到合成屋" << endl;
part8:system("cls");outmake();cout << "木头:" << data[28] << endl;cout << "金刚石:" << data[2] << endl;cout << "铁:" << data[3] << endl;cout << "铜:" << data[4] << endl;cout << "金:" << data[5] << endl;cout << "银:" << data[6] << endl;cout << "煤炭:" << data[7] << endl;cout << "铀块:" << data[35] << endl;cout << "合成物品:" << endl;cout << "0退出 1电锯 2弓箭 3火炮 4粽子 5护甲 6钛合金 7钢合金 8核弹" << endl;cout << "9核弹发射器 10导弹" << endl;cin >> sinput;switch (sinput) {case 0: {return;break;}case 1: {if (data[7] < 3 || data[3] < 5) {cout << "材料不够!" << endl;Sleep(1000);goto part8;}cout << "合成成功!" << endl;data[25]++;data[7] -= 3;data[3] -= 5;Sleep(1000);goto part8;break;}case 2: {if (data[3] < 3 || data[4] < 5) {cout << "材料不够!" << endl;Sleep(1000);goto part8;}cout << "合成成功!" << endl;Sleep(1000);data[38]++;data[3] -= 3;data[4] -= 5;goto part8;break;}case 3: {if (data[7] < 10 || data[3] < 5 || data[4] < 2) {cout << "材料不够!" << endl;Sleep(1000);goto part8;}cout << "合成成功!" << endl;Sleep(1000);data[39]++;data[3] -= 5;data[7] -= 10;data[4] -= 2;goto part8;break;}case 4: {if (data[2] < 1) {cout << "材料不够!" << endl;Sleep(1000);goto part8;}cout << "合成成功!" << endl;Sleep(1000);data[41]++;data[2] -= 1;goto part8;break;}case 5: {if (data[2] < 1 || data[5] < 3 || data[6] < 2) {cout << "材料不够!" << endl;Sleep(1000);goto part8;}cout << "合成成功!" << endl;Sleep(1000);data[40]++;data[2] -= 1;data[5] -= 3;data[6] -= 2;goto part8;break;}case 6: {if (data[2] < 1 || data[5] < 3 || data[6] < 2) {cout << "材料不够!" << endl;Sleep(1000);goto part8;}cout << "合成成功!" << endl;Sleep(1000);data[40]++;data[2] -= 1;data[5] -= 3;data[6] -= 2;goto part8;break;}case 7: {if (data[3] < 1 || data[5] < 2 || data[7] < 2) {cout << "材料不够!" << endl;Sleep(1000);goto part8;}cout << "合成成功!" << endl;Sleep(1000);data[43]++;data[3] -= 1;data[5] -= 2;data[7] -= 2;goto part8;break;}case 8: {if (data[35] < 1 || data[3] < 5 || data[48] < 1) {cout << "材料不够!" << endl;Sleep(1000);goto part8;}cout << "合成成功!" << endl;Sleep(1000);data[44]++;data[35] -= 1;data[3] -= 5;data[48] -= 1;goto part8;break;}case 9: {if (data[3] < 5 || data[45] < 1) {cout << "材料不够!" << endl;Sleep(1000);goto part8;}cout << "合成成功!" << endl;Sleep(1000);data[48]++;data[3] -= 5;data[45] -= 1;goto part8;break;}case 10: {if (data[3] < 10 || data[45] < 10 || data[7] < 100) {cout << "材料不够!" << endl;Sleep(1000);goto part8;}cout << "合成成功!" << endl;Sleep(1000);data[50]++;data[3] -= 10;data[45] -= 10;data[7] -= 100;goto part8;break;}}
}
void makebiao() {cout << "合成表:" << endl;cout << "电锯=3煤炭+5铁" << endl;cout << "弓箭=3铁+5铜" << endl;cout << "火炮=10煤炭+5铁+3铜" << endl;cout << "粽子=1金刚石" << endl;cout << "护甲=1金刚石+3金+2银" << endl;cout << "钛合金=1钛+2金+2煤炭" << endl;cout << "钢合金=1钢+2金+2煤炭" << endl;cout << "核弹=铀块*1+铁块*5+发射器" << endl;cout << "核弹发射器=5铁块+1钢" << endl;cout << "导弹=10铁+10钢+100煤" << endl;cout << "输入任意数退出" << endl;cin >> a;return;
}
void bag() {outmake();outzb();outjz();outcz();cout << "输入一个数退出..." << endl;cin >> sinput;return;
}
void sea_hd() {int inint;cout << "你遇到了海盗!!" << endl;if (root == "独木舟") {cout << "独木舟上没有任何防御武器" << endl;cout << "是否进入全速耗油模式,1yes,2no" << endl;cin >> sinput;if (sinput == 1) {cout << "你开启了加速模式" << endl;cout << "输入1加速" << endl;while (cin >> inint) {if (inint == 1) {mout("加速中...");data[52] -= 0.2;}suiji = rand() % 5 + 0;if (suiji >= 2 && suiji <= 4) {cout << "你成功的躲避了海盗的袭击" << endl;Sleep(1000);cout << "你朝周围一看——" << endl;Sleep(1000);cout << "你回到了你的小岛上" << endl;return;}if (data[52] < 1) {cout << "你没油了" << endl;Sleep(1000);cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的独木舟" << endl;data[13]--;return;}else {cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的独木舟" << endl;Sleep(2000);data[13]--;return;}}}else {cout << "你被海盗俘虏了" << endl;cout << "海盗抢走了你的独木舟" << endl;Sleep(1000);cout << "你拼尽全力游回了小岛" << endl;Sleep(1000);data[13]--;return;}}if (root == "小艇") {cout << "小艇上有一根铁杆" << endl;Sleep(1000);cout << "1和海盗战斗,2全速逃离" << endl;cin >> sinput;if (sinput == 2) {cout << "你开启了加速模式" << endl;cout << "为了提升速度,你扔掉了铁杆" << endl;Sleep(1000);cout << "输入1加速" << endl;while (cin >> inint) {if (inint == 1) {mout("加速中...");data[52] -= 0.2;}suiji = rand() % 5 + 0;if (suiji >= 2 && suiji <= 4) {cout << "你成功的躲避了海盗的袭击" << endl;Sleep(1000);cout << "你朝周围一看——" << endl;Sleep(1000);cout << "你回到了你的小岛上" << endl;return;}if (data[52] < 1) {cout << "你没油了" << endl;Sleep(1000);cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的小艇" << endl;data[14]--;return;}else {cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的小艇" << endl;Sleep(2000);data[14]--;return;}}}else {cout << "你开始和海盗战斗" << endl;int dxl = rand() % 1000 + 50;while (data[19] > 0 && dxl > 0) {dxl -= 64;cout << "你用铁杆打击海盗,海盗-64滴血" << endl;Sleep(500);data[19] -= 80;cout << "海盗拿着铁棍朝你冲过来,你-80滴血" << endl;Sleep(500);}if (data[19] <= 0) {cout << "你被海盗扔回了小岛" << endl;cout << "你的小艇没了" << endl;data[14]--;return;}else {cout << "你击败了海盗" << endl;Sleep(1000);return;}}}if (root == "战舰") {cout << "战舰上有一些武器" << endl;Sleep(1000);cout << "1和海盗战斗,2全速逃离" << endl;cin >> sinput;if (sinput == 2) {cout << "你开启了加速模式" << endl;cout << "为了提升速度,你扔掉了武器" << endl;Sleep(1000);cout << "输入1加速" << endl;while (cin >> inint) {if (inint == 1) {mout("加速中...");data[52] -= 0.2;}suiji = rand() % 5 + 0;if (suiji >= 2 && suiji <= 4) {cout << "你成功的躲避了海盗的袭击" << endl;Sleep(1000);cout << "你朝周围一看——" << endl;Sleep(1000);cout << "你回到了你的小岛上" << endl;return;}if (data[52] < 1) {cout << "你没油了" << endl;Sleep(1000);cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的战舰" << endl;data[15]--;return;}else {cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的战舰" << endl;Sleep(2000);data[15]--;return;}}}else {cout << "你开始和海盗战斗" << endl;int dxl = rand() % 1000 + 50;while (data[19] > 0 && dxl > 0) {dxl -= 100;cout << "你用武器打击海盗,海盗-100滴血" << endl;Sleep(500);data[19] -= 120;cout << "海盗拿着火箭筒朝你冲过来,你-120滴血" << endl;Sleep(500);}if (data[19] <= 0) {cout << "你被海盗扔回了小岛" << endl;cout << "你的战舰没了" << endl;data[15]--;return;}else {cout << "你击败了海盗" << endl;Sleep(1000);return;}}}if (root == "潜艇") {cout << "潜艇上有好多<?)))><<雷" << endl;Sleep(1000);cout << "1和海盗战斗,2全速逃离" << endl;cin >> sinput;if (sinput == 2) {cout << "你开启了加速模式" << endl;cout << "为了提升速度,你扔掉了鱼雷" << endl;Sleep(1000);cout << "输入1加速" << endl;while (cin >> inint) {if (inint == 1) {mout("加速中...");data[52] -= 0.2;}suiji = rand() % 5 + 0;if (suiji >= 2 && suiji <= 4) {cout << "你成功的躲避了海盗的袭击" << endl;Sleep(1000);cout << "你朝周围一看——" << endl;Sleep(1000);cout << "你回到了你的小岛上" << endl;return;}if (data[52] < 1) {cout << "你没油了" << endl;Sleep(1000);cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的潜艇" << endl;data[15]--;return;}else {cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的潜艇" << endl;Sleep(2000);data[16]--;return;}}}else {cout << "你开始和海盗战斗" << endl;int dxl = rand() % 1000 + 50;while (data[19] > 0 && dxl > 0) {dxl -= 120;cout << "你用鱼雷打击海盗,海盗-120滴血" << endl;Sleep(500);data[19] -= 130;cout << "海盗朝你狂扔水雷,你-130滴血" << endl;Sleep(500);}if (data[19] <= 0) {cout << "你被海盗扔回了小岛" << endl;cout << "你的潜艇没了" << endl;data[16]--;return;}else {cout << "你击败了海盗" << endl;Sleep(1000);return;}}}if (root == "航空母舰") {cout << "航母上有好多高科技武器" << endl;Sleep(1000);cout << "1和海盗战斗,2全速逃离" << endl;cin >> sinput;if (sinput == 2) {cout << "你开启了加速模式" << endl;cout << "为了提升速度,你扔掉了鱼雷" << endl;Sleep(1000);cout << "输入1加速" << endl;while (cin >> inint) {if (inint == 1) {mout("加速中...");data[52] -= 0.2;}suiji = rand() % 5 + 0;if (suiji >= 2 && suiji <= 4) {cout << "你成功的躲避了海盗的袭击" << endl;Sleep(1000);cout << "你朝周围一看——" << endl;Sleep(1000);cout << "你回到了你的小岛上" << endl;return;}if (data[52] < 1) {cout << "你没油了" << endl;Sleep(1000);cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的航母" << endl;data[17]--;return;}else {cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的航母" << endl;Sleep(2000);data[17]--;return;}}}else {cout << "你开始和海盗战斗" << endl;int dxl = rand() % 1000 + 50;while (data[19] > 0 && dxl > 0) {dxl -= 120;cout << "你用机关炮打击海盗,海盗-150滴血" << endl;Sleep(500);data[19] -= 130;cout << "海盗朝你扔大刀,你-145滴血" << endl;Sleep(500);}if (data[19] <= 0) {cout << "你被海盗扔回了小岛" << endl;cout << "你的航母没了" << endl;data[17]--;return;}else {cout << "你击败了海盗" << endl;Sleep(1000);return;}}}if (root == "核潜艇") {cout << "核潜艇上有核导弹" << endl;Sleep(1000);cout << "1和海盗战斗,2全速逃离" << endl;cin >> sinput;if (sinput == 2) {cout << "你开启了加速模式" << endl;cout << "为了提升速度,你扔掉了鱼雷" << endl;Sleep(1000);cout << "输入1加速" << endl;while (cin >> inint) {if (inint == 1) {mout("加速中...");data[52] -= 0.2;}suiji = rand() % 5 + 0;if (suiji >= 2 && suiji <= 4) {cout << "你成功的躲避了海盗的袭击" << endl;Sleep(1000);cout << "你朝周围一看——" << endl;Sleep(1000);cout << "你回到了你的小岛上" << endl;return;}if (data[52] < 1) {cout << "你没油了" << endl;Sleep(1000);cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的核潜艇" << endl;data[18]--;return;}else {cout << "你被海盗抓住了" << endl;cout << "海盗抢走了你的核潜艇" << endl;Sleep(2000);data[18]--;return;}}}else {cout << "你开始和海盗战斗" << endl;int dxl = rand() % 1000 + 50;while (data[19] > 0 && dxl > 0) {dxl -= 120;cout << "你用机关炮打击海盗,海盗-150滴血" << endl;Sleep(500);data[19] -= 130;cout << "海盗朝你扔大刀,你-145滴血" << endl;Sleep(500);}if (data[19] <= 0) {cout << "你被海盗扔回了小岛" << endl;cout << "你的航母没了" << endl;data[17]--;return;}else {cout << "你击败了海盗" << endl;Sleep(1000);return;}}}
}
void sea_nopeopleisland() {cout << "你来到了一个小岛上" << endl;Sleep(1000);cout << "你仔细的观察了小岛,发现这是一个无人岛" << endl;Sleep(1000);cout << "你十分失望,准备离开" << endl;Sleep(1000);cout << "就在这时,一只老虎扑了出来" << endl;Sleep(1000);cout << "1逃跑,2战斗" << endl;cin >> sinput;if (sinput == 1) {cout << "你立刻上了船,回到你的小岛上" << endl;Sleep(1000);return;}cout << "你随手拿起一根木棍,开始战斗";int dxl = rand() % 1000 + 100;while (data[19] > 0 && dxl > 0) {cout << "你剪掉了80滴血" << endl;Sleep(1000);data[19] -= 80;cout << "对方剪掉了75第血" << endl;dxl -= 75;Sleep(1000);}if (dxl <= 0) {cout << "你把老虎干掉了并回到了你自己的小岛上" << endl;Sleep(1000);return;}else {cout << "你被老虎咬死了" << endl;Sleep(1000);return;}
}
void sea_peopleisland() {int qwq;cout << "你来到了一个小岛上,上面有人..." << endl;Sleep(1000);cout << "你和他们开始了交易..." << endl;while (qwq != '*') {cout << "当地人:" << endl;cout << "你想要什么?" << endl;cout << "1弓箭 15铁" << endl;cout << "2火炮 5金刚石" << endl;cout << "3粽子 8金刚石" << endl;cout << "4护甲 9金刚石" << endl;cout << "输入10退出" << endl;cin >> qwq;if (qwq == 1) {if (data[3] < 15) {cout << "你的材料不够,交易无法进行" << endl;continue;}cout << "交易成功" << endl;data[3] -= 15;data[38]++;}if (qwq == 2) {if (data[2] < 5) {cout << "你的材料不够,交易无法进行" << endl;}cout << "交易成功" << endl;data[2] -= 5;data[39]++;}if (qwq == 3) {if (data[2] < 8) {cout << "你的材料不够,交易无法进行" << endl;continue;}cout << "交易成功" << endl;data[2] -= 8;data[41]++;}if (qwq == 4) {if (data[2] < 9) {cout << "你的材料不够,交易无法进行" << endl;continue;}cout << "交易成功" << endl;data[2] -= 9;data[40]++;}elsereturn;}
}
void sea_way() {cout << "你在海上漂啊飘" << endl;Sleep(1000);cout << "你发现周围什么也没有" << endl;Sleep(1000);mout("三天后...");cout << "你回到了自己的小岛" << endl;
}
void buy_sell() {if (data[13] < 1 || data[14] < 1 || data[15] < 1 || data[16] < 1 || data[17] < 1 || data[18] < 1) {cout << "你没有船只,请使用小岛商店" << endl;Sleep(1000);return;}cout << "海上充满着未知,要继续吗?1yes,2no" << endl;cin >> sinput;if (data[52] < 1) {cout << "你没有油!" << endl;Sleep(1000);return;}if (sinput == 1)return;
part15:cout << "请选择船只:" << endl;outcz();cin >> sinput;cout << "1独木舟:" << data[13] << endl;cout << "2小艇:" << data[14] << endl;cout << "3战舰:" << data[15] << endl;cout << "4潜艇:" << data[16] << endl;cout << "5航空母舰:" << data[17] << endl;cout << "6核潜艇:" << data[18] << endl;switch (sinput) {case 1: {if (data[13] < 1) {cout << "你没有独木舟" << endl;Sleep(1000);goto part15;}root = "独木舟";rootdh = data[13];break;}case 2: {if (data[14] < 1) {cout << "你没有小艇" << endl;Sleep(1000);goto part15;}root = "小艇";rootdh = data[14];break;}case 3: {if (data[15] < 1) {cout << "你没有战舰" << endl;Sleep(1000);goto part15;}root = "战舰";rootdh = data[15];break;}case 4: {if (data[16] < 1) {cout << "你没有潜艇" << endl;Sleep(1000);goto part15;}root = "潜艇";rootdh = data[16];break;}case 5: {if (data[17] < 1) {cout << "你没有航空母舰" << endl;Sleep(1000);goto part15;}root = "航空母舰";rootdh = data[17];break;}case 6: {if (data[18] < 1) {cout << "你没有核潜艇" << endl;Sleep(1000);goto part15;}root = "核潜艇";rootdh = data[18];break;}}
part13:system("cls");mout("你登上了船只,开始航行...");for (int i = 1; i <= 10; i++) {cout << "..." << endl;Sleep(1000);}suiji = rand() % 4 + 1;switch (suiji) {case 1: {sea_hd();cout << "是否退出,1yes,2no" << endl;cin >> sinput;if (sinput == 1)return;elsegoto part13;break;}case 2: {sea_way();cout << "是否退出,1yes,2no" << endl;cin >> sinput;if (sinput == 1)return;elsegoto part13;break;}case 3: {sea_nopeopleisland();cout << "是否退出,1yes,2no" << endl;cin >> sinput;if (sinput == 1)return;elsegoto part13;break;}case 4: {sea_peopleisland();cout << "是否退出,1yes,2no" << endl;cin >> sinput;if (sinput == 1)return;elsegoto part13;break;}}
}
void island_bs() {cout << "你来到小岛商店" << endl;Sleep(1000);cout << "交易的客户已经有了好多人" << endl;Sleep(1000);cout << "你开始交易:" << endl;int people = rand() % 15 + 5;while (people > 0) {int suiji1 = rand() % 10 + 0;cout << "客户:" << endl;int suiji2 = rand() % 15 + 6;suiji = rand() % 20 + 5;cout << "我有" << kuangwu[suiji1] << "," << "要" << suiji2 << "金刚石" << endl;cout << "是否交易1yes,2no" << endl;cin >> sinput;if (sinput == 1) {if (data[2] < suiji2) {cout << "你没有这些金刚石" << endl;continue;}cout << "开始交易..." << endl;Sleep(1000);cout << "交易成功" << endl;Sleep(1000);data[2] -= suiji2;if (suiji1 == 0)    data[2] += suiji;if (suiji1 == 1)    data[3] += suiji;if (suiji1 == 2)    data[4] += suiji;if (suiji1 == 3)    data[5] += suiji;if (suiji1 == 4)    data[6] += suiji;if (suiji1 == 5)    data[7] += suiji;if (suiji1 == 6)    data[35] += suiji;if (suiji1 == 7)    data[36] += suiji;if (suiji1 == 8)    data[37] += suiji;if (suiji1 == 9)    data[45] += suiji;if (suiji1 == 10)   data[46] += suiji;}people--;cout << "下一个人" << endl;Sleep(1000);}cout << "交易完毕" << endl;Sleep(1000);return;
}
void island_jz() {int djia = 1;int injg;cout << "1精卫填海,2退出" << endl;cin >> sinput;if (sinput == 1) {cout << "你开始填海" << endl;cout << "请输入你要填多大的海(填海过程中不可退出)" << endl;cin >> sinput;while (sinput > 0) {system("cls");mout("填海中...");Sleep(1000);data[21] += 0.1;sinput--;}}elsereturn;
}
void island() {cout << "1小岛商店,2扩建小岛,3退出" << endl;cin >> sinput;if (sinput == 1)island_bs();if (sinput == 2)island_jz();elsereturn;
}
void black() {int cinput;cout << "你来到黑市" << endl;Sleep(1000);cout << "黑市看门的:" << ":入场费15铁" << endl;Sleep(1000);if (data[3] < 15) {cout << "你没有入场费,你被扔出了黑市" << endl;Sleep(1000);return;}data[3] -= 15;cout << "你进入了黑市,发现里面什么都有" << endl;
partn:system("cls");cout << "你要买什么?" << endl;cout << "1基础,2装备,3小岛 4退出" << endl;cin >> sinput;switch (sinput) {case 1: {cout << "1血量 2防御 3攻击 " << endl;cin >> cinput;if (cinput == 1) {cout << "你要买多少?" << endl;cin >> cinput;if (cinput > 1000000) {cout << "你太贪心了,你被扔出了黑市" << endl;Sleep(1000);return;}int jiage = rand() % 1000 + 100;jiage += cinput;cout << "价格:" << jiage << "银,1买,2退出" << endl;cin >> sinput;if (sinput == 2) {goto partn;}if (data[6] < jiage) {cout << "你没有钱" << endl;Sleep(1000);goto partn;}cout << "交易成功" << endl;Sleep(1000);data[19] += cinput;data[6] -= jiage;goto partn;}else if (cinput == 2) {cout << "你要买多少?" << endl;cin >> cinput;if (cinput > 1000000) {cout << "你太贪心了,你被扔出了黑市" << endl;Sleep(1000);return;}int jiage = rand() % 1000 + 100;jiage += cinput + cinput * 0.1;cout << "价格:" << jiage << "煤炭,1买,2退出" << endl;cin >> sinput;if (sinput == 2) {goto partn;}if (data[7] < jiage) {cout << "你没有钱" << endl;Sleep(1000);goto partn;}cout << "交易成功" << endl;Sleep(1000);data[22] += cinput;data[7] -= jiage;goto partn;}else if (cinput == 3) {cout << "你要买多少?" << endl;cin >> cinput;if (cinput > 1000000) {cout << "你太贪心了,你被扔出了黑市" << endl;Sleep(1000);return;}int jiage = rand() % 1000 + 100;jiage += cinput + cinput * 0.2;cout << "价格:" << jiage << "铜,1买,2退出" << endl;cin >> sinput;if (sinput == 2) {goto partn;}if (data[4] < jiage) {cout << "你没有钱" << endl;Sleep(1000);goto partn;}cout << "交易成功" << endl;Sleep(1000);data[20] += cinput;data[4] -= jiage;goto partn;}break;}case 2: {cout << "1油漆 2按钮 3钱 " << endl;cin >> cinput;if (cinput == 1) {cout << "你要买多少?" << endl;cin >> cinput;if (cinput > 1000000) {cout << "你太贪心了,你被扔出了黑市" << endl;Sleep(1000);return;}int jiage = rand() % 1000 + 100;jiage += cinput;cout << "价格:" << jiage << "铁,1买,2退出" << endl;cin >> sinput;if (sinput == 2) {goto partn;}if (data[3] < jiage) {cout << "你没有钱" << endl;Sleep(1000);goto partn;}cout << "交易成功" << endl;Sleep(1000);data[47] += cinput;data[3] -= jiage;goto partn;}else if (cinput == 2) {cout << "你要买多少?" << endl;cin >> cinput;if (cinput > 1000000) {cout << "你太贪心了,你被扔出了黑市" << endl;Sleep(1000);return;}int jiage = rand() % 1000 + 100;jiage += cinput + cinput * 0.1;cout << "价格:" << jiage << "银,1买,2退出" << endl;cin >> sinput;if (sinput == 2) {goto partn;}if (data[7] < jiage) {cout << "你没有钱" << endl;Sleep(1000);goto partn;}cout << "交易成功" << endl;Sleep(1000);data[37] += cinput;data[6] -= jiage;goto partn;}else if (cinput == 3) {cout << "你要买多少?" << endl;cin >> cinput;if (cinput > 1000000) {cout << "你太贪心了,你被扔出了黑市" << endl;Sleep(1000);return;}int jiage = rand() % 1000 + 100;jiage += cinput + cinput * 0.2;cout << "价格:" << jiage << "铜,1买,2退出" << endl;cin >> sinput;if (sinput == 2) {goto partn;}if (data[4] < jiage) {cout << "你没有钱" << endl;Sleep(1000);goto partn;}cout << "交易成功" << endl;Sleep(1000);data[51] += cinput;data[4] -= jiage;goto partn;}case 3: {cout << "1一座小岛:25000金刚石" << endl;cin >> sinput;if (sinput == 1) {if (data[2] < 25000) {cout << "钱不够" << endl;Sleep(1000);goto partn;}cout << "购买成功" << endl;Sleep(1000);data[21]++;data[19] += 10000;data[20] += 9000;data[22] += 8000;data[24] += 5000;goto partn;}elsegoto partn;break;}case 4: {return;break;}}}
}
void konghanshu() {return;
}
int main() {indata();int qwq;srand((unsigned)time(NULL));//随机数start();dl();
zjm1:system("cls");cout << "血量:" << data[19] << endl;cout << "攻击:" << data[20] << endl;cout << "防御:" << data[22] << endl;cout << "领地:" << data[21] << endl;cout << "士兵人数:" << data[24] << endl;cout << "0保存" << endl;cout << "1山洞 2森林 3小木屋 4造船厂 5工地 6士兵宿舍" << endl;cout << "7作战室 8设置 9合成屋 10合成表 11背包 12海上贸易 13查看小岛" << endl;cout << "14黑市" << endl;cin >> qwq;switch (qwq) {case 0: {outdata();goto zjm1;break;}case 1: {cave();goto zjm1;break;}case 2: {woods();goto zjm1;break;}case 3: {xmw();goto zjm1;break;}case 4: {gzs();goto zjm1;break;}case 5: {kfz();goto zjm1;break;}case 6: {sbssj();goto zjm1;break;}case 7: {zzs();goto zjm1;break;}case 8: {shez();goto zjm1;break;}case 9: {makeroom();goto zjm1;break;}case 10: {makebiao();goto zjm1;break;}case 11: {bag();goto zjm1;break;}case 12: {buy_sell();goto zjm1;break;}case 13: {island();goto zjm1;break;}case 14: {black();goto zjm1;break;}}return 0;
}

 猫国建设

#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <windows.h>
#include <conio.h>
#include <bitset>
using namespace std;
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
#define KEY_DOWM(vk_c) (GetAsyncKeyState(vk_c)&0x8000?1:0)
void color(int a){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);
}
void HideCursor(){CONSOLE_CURSOR_INFO cursor_info = {1, 0}; SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursor_info);
}
void block(int x,int y){HANDLE   hCon;hCon = GetStdHandle(STD_OUTPUT_HANDLE);  COORD   setps;setps.X = x;setps.Y = y;SetConsoleCursorPosition(hCon,setps);  
}
bitset<128>pre;
bitset<128>down;
void pan(char c){bool hahbhchdhehfhg;if(c == 'w'){if(!KEY_DOWN(VK_UP))hahbhchdhehfhg=0;else hahbhchdhehfhg=1;}else if(c == 's'){if(!KEY_DOWN(VK_DOWN))hahbhchdhehfhg=0;else hahbhchdhehfhg=1;}else if(c == 'a'){if(!KEY_DOWN(VK_LEFT))hahbhchdhehfhg=0;else hahbhchdhehfhg=1;}else if(c == 'd'){if(!KEY_DOWN(VK_RIGHT))hahbhchdhehfhg=0;else hahbhchdhehfhg=1;}else if(c == '1'){if(!KEY_DOWN(VK_NUMPAD1) && !KEY_DOWN('1'))hahbhchdhehfhg=0;else hahbhchdhehfhg=1;}else if(c == '2'){if(!KEY_DOWN(VK_NUMPAD2) && !KEY_DOWN('2'))hahbhchdhehfhg=0;else hahbhchdhehfhg=1;}else if(c == '3'){if(!KEY_DOWN(VK_NUMPAD3) && !KEY_DOWN('3'))hahbhchdhehfhg=0;else hahbhchdhehfhg=1;}else{if(!KEY_DOWN(c))hahbhchdhehfhg=0;else hahbhchdhehfhg=1;}if(hahbhchdhehfhg)down[c]=1;else down[c]=0;
}
bool check(char c){if(down[c] != pre[c]){pre[c] = down[c];if(down[c]){return true;}}return false;
}
int heng[31] = {0, 1, 4};
int shu[31][101] = {{0},
{0, 1, 2, 3, 4},
{0, 1},
{0, 1}
};
string hengs[31] = {"0", "营火", "小村庄", "科学", "成就", "工坊", "贸易", "独角兽"};
string shus[31][101] = {{"0"}, 
{"0", "采集猫薄荷", "猫薄荷田", "锻造木头", "小屋", "图书馆", "粮仓", "矿井", "工坊"},
{"0", "伐木工", "农民", "学者", "猎人", "矿工"},
{"0", "日期", "农业", "箭业", "采矿", "畜牧业", "金属加工", "行政部门", "数学", "建筑业"}
}; 
int shus1[101] = {0, 1, 2, 3, 4, 5, 6, 7, 8};
int shus2[101] = {0, 1, 2, 3, 4, 5};
bool z1[1010];
int hengl = 2, shul[31] = {0, 4, 0, 1};
int x = 1;
int y = 1;
int zz11 = 1;
double zz12[101][5] = {{0}, {0, 0}, {0, 10}, {0, 100}, {0, 5}, {0, 25}, {0, 70}, {0, 100}, {0, 100, 400}};
int zz13[101] = {0, 0, 1, 1, 2, 2, 2, 2, 302};
string zz14[31] = {"0", "猫薄荷", "木头", "矿物"};
int zz15[101] = {0};
int zz16[101][5] = {{0}, {0, 0}, {0, 10}, {0, 100}, {0, 5}, {0, 25}, {0, 70}, {0, 100}, {0, 100, 400}};
double zz17[101]  = {0, 0, 1.12, 0, 2.5, 1.15, 1.25, 1.15, 1.15};
bool zz31[101];
int zz32[101] = {0, 30, 100, 300, 500, 500, 900};
int zz33 = 1;
int zz21[10];
int zz22 = 0;
int zz23 = 1;
double bohe1 = 0;
double mutou1 = 0;
double keji1 = 0;
double catli1 = 0;
double kuangwu1 = 0;
int cat1 = 0;
int cat2 = 0;
int bohe2 = 5000;
int mutou2 = 200;
int keji2 = 500;
int catli2 = 150;
int kuangwu2 = 250;
bool maopi1 = false;
double maopi = 0.0;
bool xiangya1 = false;
double xiangya = 0.0;
bool xinqing1 = false;
int xinqing = 100;
int tim0 = 0, tim1 = 1, tim2 = 1, tim3 = 0;
int timm1 = 0, timm2 = 0; 
string tim[5] = {"0", "春季", "夏季", "秋季", "冬季"};
bool h1 = true;bool pai1(int x1, int y1){return shus1[x1] < shus1[y1];
}bool pai2(int x1, int y1){return shus2[x1] < shus2[y1];
}void output(double x){if(x >= 1000000){x /= 1000000;if((int)x != x){if((int)(x * 10) / 10.0 != x){printf("%.2fM", x);}else{printf("%.1fM", x);}}else{cout << x << "M"; }}else if(x >= 10000){x /= 1000;if((int)x != x){if((int)(x * 10) / 10.0 != x){printf("%.2fK", x);}else{printf("%.1fK", x);}}else{cout << x << "K"; }}else{if((int)x != x){if((int)(x * 10) / 10.0 != x){printf("%.2f", x);}else{printf("%.1f", x);}}else{cout << x; }}
}void output00(){int m1 = 3;if(xinqing1){color(13);block(1, m1);cout << "                    ";block(1, m1);cout << "幸福度:" << xinqing << "%";m1++;}color(15);block(1, m1);cout << "                    ";block(1, m1);cout << "猫薄荷:" ;if(bohe1 > bohe2){bohe1 = bohe2;}if(bohe1 >= bohe2 * 0.9){color(14);}output(bohe1);color(7);cout << "/";output(bohe2);m1++;color(15);block(1, m1);cout << "                    ";block(1, m1);cout << "木头:";if(mutou1 > mutou2){mutou1 = mutou2;}if(mutou1 >= mutou2 * 0.9){color(14);}output(mutou1);color(7);cout << "/";output(mutou2);m1++;if(zz31[4]){color(15);block(1, m1);cout << "                    ";block(1, m1);cout << "矿物:";if(kuangwu1 > kuangwu2){kuangwu1 = kuangwu2;}if(kuangwu1 >= kuangwu2 * 0.9){color(14);}output(kuangwu1);color(7);cout << "/";output(kuangwu2);m1++;}if(zz31[3]){color(15);block(1, m1);cout << "                    ";block(1, m1);color(12);cout << "猫力:";if(catli1 > catli2){catli1 = catli2;}if(catli1 >= catli2 * 0.9){color(14);}else{color(15);}output(catli1);color(7);cout << "/";output(catli2);m1++;}if(zz15[5] > 0){color(15);block(1, m1);cout << "                    ";block(1, m1);color(11);cout << "科技点:";if(keji1 > keji2){keji1 = keji2;}if(keji1 >= keji2 * 0.9){color(14);}else{color(15);}output(keji1);color(7);cout << "/";output(keji2);m1++;}if(cat2 > 0){color(15);block(1, m1);cout << "                    ";block(1, m1);cout << "小猫:";if(cat1 == cat2){color(14);}cout << cat1;color(7);cout << "/" << cat2;m1++;}if(maopi1){color(15);block(1, m1);cout << "                    ";block(1, m1);color(13);cout << "毛皮:";color(15);output(maopi);m1++;}if(xiangya1){color(15);block(1, m1);cout << "                    ";block(1, m1);color(13);cout << "象牙:";color(15);output(xiangya);m1++;}
}void output01(){color(15);for(int i = 4; i <= 23; i++){block(20, i);cout << "                         ";}
}void output02(){color(15);if(tim3 == 18){tim3 = 0;tim2++;}if(tim2 == 100){tim2 = 0;tim1++;}if(tim1 == 5){tim1 = 1;tim0++;}if(zz31[1]){block(1, 1);cout << "                    ";block(1, 1);cout << "第" << tim0 << "年," << tim[tim1] << "第" << tim2 << "天";}else{block(1, 1);cout << tim[tim1];}
}void output0(){for(int i = 1; i <= hengl; i++){if(i == x){color(0 + 15 * 16);}else{color(15);}block(i * 8 + 20, 1);cout << "       |";block(i * 8 + 20, 1);cout << hengs[heng[i]];block(i * 8 + 20, 2);cout << "-------|";}
}void output13(){block(43, zz11);color(15);cout << "                     ";block(43, zz11 + 1);cout << "                     ";block(43, zz11 + 2);cout << "                     ";
}void output12(int x1){color(15);if(shu[1][y] == 1){block(43, x1);cout << "1.采集";}else if(shu[1][y] == 3){block(43, x1);cout << "1.锻造100猫薄荷";}else{block(43, x1);cout << "1.建造";int i = 1;while(zz12[shu[1][y]][i] != 0){block(49, x1 + i - 1);output(zz12[shu[1][y]][i]);cout << zz14[zz13[shu[1][y]] % (int)(pow(10, i * 2)) / (int)(pow(10, (i * 2 - 2)))];i++;}}zz11 = x1;
}void output11(int y1){for(int i = 1; i <= 5; i++){if(i > shul[1]){break;}if(y1 + i == y){output12(i * 3 + 1);color(0 + 15 * 16);}else{color(15);}block(25, i * 3 + 1);cout << "╭——————╮";block(25, i * 3 + 2);cout << "|              |";block(27, i * 3 + 2);cout << shus[1][shu[1][y1 + i]] << "(" << zz15[shu[1][y1 + i]] << ")";block(25, i * 3 + 3);cout << "╰——————╯";}
}void output1(){if(x != 1){cout << "???";Sleep(500);return;}output13();if(shul[1] <= 5){output11(0);}else if(y < 3) {output11(0);}else if(y > shul[1] - 2){output11(shul[1] - 5);}else{output11(y - 3);}
}void output31(int x3, int y3){if(x3 == y){block(43, x3 * 3 + 1);if(zz31[shu[3][y3]]){cout << "已研发";}else{cout << "1.研发"; output(zz32[shu[3][y3]]);cout << "科技点";}color(0 + 15 * 16);zz33 = x3 * 3 + 1;}else{color(15);}block(25, x3 * 3 + 1);cout << "╭——————╮";block(25, x3 * 3 + 2);cout << "|              |";block(27, x3 * 3 + 2);cout << shus[3][shu[3][y3]];block(25, x3 * 3 + 3);cout << "╰——————╯";
}void output3(){color(15);block(43, zz33);cout << "                       ";int x3 = 1;for(int i = 1; i <= shul[3]; i++){output31(x3, i);x3++;}
}void output2(){color(15);block(43, zz23);cout << "                       ";block(43, zz23 + 1);cout << "                       ";block(43, zz23 + 2);cout << "                       ";for(int i = 1; i <= shul[2]; i++){if(i == y){block(43, i * 3 + 1);cout << "1.加";block(43, i * 3 + 2);cout << "2.减";if(shu[2][i] == 4){block(43, i * 3 + 3);cout << "3.派出猎人";if(catli1 > 199){cout << "×" << (int)(catli1 / 100);}}color(0 + 15 * 16);zz23 = i * 3 + 1;}else{color(15);}block(25, i * 3 + 1);cout << "╭——————╮";block(25, i * 3 + 2);cout << "|              |";block(27, i * 3 + 2);cout << shus[2][shu[2][i]] << "(" << zz21[shu[2][i]] << ")";block(25, i * 3 + 3);cout << "╰——————╯";}
}void output_1(){if(heng[x] == 1){output1();}else if(heng[x] == 3){output3();}else if(heng[x] == 2){output2();}
}int main( ){system("mode con cols=70 lines=25");color(15);HideCursor();Sleep(1500);cout << "欢迎来到(高仿版)猫国建设者!" << endl;Sleep(1000);cout << "   //本游戏原型为 https://likexia.gitee.io/cat-zh#/" << endl;Sleep(500);cout << "   //本游戏由XTW蒟蒻编制而成" << endl;Sleep(500);cout << endl << "请按任意键继续……";char zzzzzzzzzzzzzzzzzzzz = getch();system("cls");output0();output00();output1();while(true){output00();output02();pan('w');pan('s');pan('a');pan('d');pan('1');pan('2');pan('3');if(check('w')){if(y > 0){y--;output_1();}}else if(check('s')){if(y < shul[heng[x]]){y++;output_1();}}else if(check('a')){if(y == 0 && x > 1){x--;output0();output01();output_1();}}else if(check('d')){if(y == 0 && x < hengl){x++;output0();output01();output_1();}}else if(check('1')){if(heng[x] == 1){if(shu[1][y] == 1){bohe1 += 1;}else if(shu[1][y] == 3){if(bohe1 >= 100){bohe1 -= 100;mutou1 += 1;}}else{h1 = true;int i = 1;while(zz12[shu[1][y]][i] != 0){if(zz13[shu[1][y]] % (int)(pow(10, i * 2)) / (int)(pow(10, (i * 2 - 2))) == 1){if(bohe1 < zz12[shu[1][y]][i]){h1 = false;break;}}else if(zz13[shu[1][y]] % (int)(pow(10, i * 2)) / (int)(pow(10, (i * 2 - 2))) == 2){if(mutou1 < zz12[shu[1][y]][i]){h1 = false;break;}}else if(zz13[shu[1][y]] % (int)(pow(10, i * 2)) / (int)(pow(10, (i * 2 - 2))) == 3){if(kuangwu1 < zz12[shu[1][y]][i]){h1 = false;break;}}else{block(1, 19);cout << zz13[shu[1][y]] % (int)(pow(10, i * 2)) / (int)(pow(10, (i * 2 - 2)));cout << "?????";Sleep(1500);}i++;}if(h1){i = 1;while(zz12[shu[1][y]][i] != 0){if(zz13[shu[1][y]] % (int)(pow(10, i * 2)) / (int)(pow(10, (i * 2 - 2))) == 1){zz15[shu[1][y]]++;bohe1 -= zz12[shu[1][y]][i];zz12[shu[1][y]][i] = (int)(pow(zz17[shu[1][y]], zz15[shu[1][y]]) * zz16[shu[1][y]][i] * 100 + 0.5) / 100.0;}else if(zz13[shu[1][y]] % (int)(pow(10, i * 2)) / (int)(pow(10, (i * 2 - 2))) == 2){zz15[shu[1][y]]++;mutou1 -= zz12[shu[1][y]][i];zz12[shu[1][y]][i] = (int)(pow(zz17[shu[1][y]], zz15[shu[1][y]]) * zz16[shu[1][y]][i] * 100 + 0.5) / 100.0;}else if(zz13[shu[1][y]] % (int)(pow(10, i * 2)) / (int)(pow(10, (i * 2 - 2))) == 3){zz15[shu[1][y]]++;kuangwu1 -= zz12[shu[1][y]][i];zz12[shu[1][y]][i] = (int)(pow(zz17[shu[1][y]], zz15[shu[1][y]]) * zz16[shu[1][y]][i] * 100 + 0.5) / 100.0;}i++;}if(shu[1][y] == 4){cat2 += 2;catli2 += 75;if(!z1[1]){hengl++;heng[2] = 2;heng[3] = 4;shul[2] = 1;z1[1] = true;shul[1]++;shu[1][5] = 5;output0();}}else if(shu[1][y] == 5){keji2 += 250;if(!z1[2]){hengl++;heng[3] = 3;heng[4] = 4;shu[2][2] = 3;shul[2]++;z1[2] = true;}}else if(shu[1][y] == 6){bohe2 += 5000;mutou2 += 200;kuangwu2 += 250;}else if(shu[1][y] == 7){if(!z1[3]){shul[2]++;shu[2][shul[2]] = 5;sort(shu[2] + 1, shu[2] + shul[2] + 1, pai2);shul[1]++;shu[1][shul[1]] = 8;sort(shu[1] + 1, shu[1] + shul[1] + 1, pai1);z1[3] = true;}}}}output1();}else if(heng[x] == 2){if(zz22 > 0){zz21[shu[2][y]]++;zz22--;output2();}}else if(heng[x] == 3){if(keji1 >= zz32[shu[3][y]]){zz31[shu[3][y]] = true;keji1 -= zz32[shu[3][y]];if(shu[3][y] == 1){shul[3] = 1;shu[3][1] = 2;output_1();}else if(shu[3][y] == 2) {shul[3] = 2;shu[3][1] = 3;shu[3][2] = 4;shu[2][2] = 2;shu[2][3] = 3;shul[2]++;shul[1]++;shu[1][6] = 6;}else if(shu[3][y] == 3){shu[3][y] = 5;shul[2]++;shu[2][shul[2]] = 4;sort(shu[2] + 1, shu[2] + 1 + shul[2], pai2);xinqing1 = true;}else if(shu[3][y] == 4){shu[3][y] = 6;shul[1]++;shu[1][shul[1]] = 7;sort(shu[1] + 1, shu[1] + 1 + shul[1], pai1);}output3();}}}else if(check('2')){if(heng[x] == 1){}else if(heng[x] == 2){if(zz21[shu[2][y]] > 0){zz21[shu[2][y]]--;zz22++;output2();}}}else if(check('3')){if(heng[x] == 1){}else if(heng[x] == 2){if(shu[2][y] == 4 && catli1 >= 100){catli1 -= 100;srand(time(NULL));int sui1 = (rand() % 2001) + 3000;int sui2 = (rand() % 1001);int sui3 = (rand() % 3);maopi1 = true;maopi += sui1 / 100.0;if(sui3 == 0){xiangya1 = true;xiangya += sui2 / 100.0; }}}}if(tim1 == 1){bohe1 += zz15[2] * 0.063 * 1.5;}else if(tim1 == 4){bohe1 += zz15[2] * 0.063 * 0.25;}else{bohe1 += zz15[2] * 0.063;}bohe1 -= cat1 * 0.4; mutou1 += zz21[1] * 0.009 * xinqing / 100;bohe1 += zz21[2] * 0.5 * xinqing / 100;keji1 += zz21[3] * 0.0175 * (1 + 0.1 * zz15[5]) * xinqing / 100;catli1 += zz21[4] * 0.03 * xinqing / 100;kuangwu1 += zz21[5] * 0.025 * (1 + 0.2 * zz15[7]) * xinqing / 100;if(maopi > 0){maopi -= cat1 * 0.005;if(maopi < 0){maopi = 0;}}if(xiangya > 0){xiangya -= cat1 * 0.0035;if(xiangya < 0){xiangya = 0;}}if(!xinqing1 && cat1 > 4){xinqing1 = true;}xinqing = 100 - max(cat1 * 2 - 10, 0);if(maopi > 0){xinqing += 10;}if(xiangya > 0){xinqing += 10;}if(bohe1 <= 0 && cat1 > 0){timm2 = 0;bohe1 = 0;timm1++;if(timm1 == 54){cat1--;if(zz22 <= 0){for(int i = 1; i <= shul[2]; i++){if(zz21[shu[2][i]] > 0){zz21[shu[2][i]]--;break; }}}else{zz22--;}timm1 = 0;}}else{timm1 = 0;if(cat2 > cat1){timm2++;if(timm2 == 108){cat1++;zz22++;timm2 = 0;}}}if(z1[30] == 0 && cat2 >= 8){hengs[2] = "村庄";z1[30]++;}Sleep(100);tim3++;}return 0;
}

 技术担当

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com