C++生化危机1.5源码

news/2024/12/22 21:39:33/

代码特别长,如若报错,请把1e9改成1000000000。

//1.5.12
#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);} elseprintf("无效输入\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;} elseprintf("攻击冷却中\n");} elseprintf("无效输入\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;} elseprintf("攻击冷却中\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;}} elseprintf("无效输入\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;elsesteve.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;} elseprintf("攻击冷却中\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;}} elseprintf("无效输入\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;} elseprintf("这里已经没有特别的东西了\n");}if (n == 2) {if (!key)printf("锁住了,需要[配电室的钥匙]\n");else if (!door) {printf("你:外面的走廊太黑了,开电灯是这个电闸吗?\n");Sleep(1000);system("cls");printf("你拉下了电闸\n");door = true;} elseprintf("这里的电闸已经打开了\n");}if (n == 3) {if (!door)printf("你:灯没有反应,是不是电闸没开?\n");else if (!light) {printf("你按下了电灯开关\n");light = true;} elseprintf("这里的灯已经打开了\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");elsesystem("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);} elseprintf("无效输入\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);} elseprintf("僵尸去追赶老刘,没有注意到你\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;} elseprintf("无效输入\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;} elseprintf("僵尸去追赶老刘,没有注意到你\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;elsespeed = 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");elseprintf("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;} elseprintf("无效输入");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;} elseprintf("无效输入\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;} elseprintf("你躲开了僵尸的攻击\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;} elseprintf("无效输入\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);} elseprintf("僵尸去追赶老王,没有注意到你\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("按任意键开始战斗");//1600getchar();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;} elseprintf("无效输入\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);} elseprintf("你成功的躲过僵尸的攻击\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("班长:是的,不过用重型武器可能会杀死他吧");//----------------------1800getchar();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;} elseprintf("无效输入\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);} elseprintf("你成功的躲过僵尸的攻击\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;}//2200system("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;} elseprintf("无效输入\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);} elseprintf("你成功的躲过僵尸的攻击\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;}//2800system("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;} elseprintf("无效输入\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;} elseprintf("你成功的躲过僵尸的攻击\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;}//4200system("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);}}} elseprintf("无效输入\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;} elseprintf("你躲开了僵尸的攻击\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;} elseprintf("无效输入\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;} elseprintf("你成功的躲过僵尸的攻击\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;} elseprintf("无效输入\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;} elseprintf("你成功的躲过僵尸的攻击\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;} elseprintf("你成功的躲过僵尸的攻击\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;} elseprintf("无效输入\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;} elseprintf("你成功的躲过僵尸的攻击\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("食物不足,你需要多找一些食物");elsebreak;}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;} elseprintf("无效输入\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;} elseprintf("你成功的躲过僵尸的攻击\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;} elseprintf("无效输入\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;} elseprintf("你成功的躲过僵尸的攻击\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);} elseprintf("你的血量:%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;} elseprintf("无效输入\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;} elseprintf("你躲开了僵尸的攻击\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);} elseprintf("你的血量:%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;} elseprintf("无效输入\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;} elseprintf("你躲开了僵尸的攻击\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);} elseprintf("你的血量:%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;} elseprintf("无效输入\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);} elseprintf("你躲开了僵尸的攻击\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);} elseprintf("僵尸血量:%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);} elseprintf("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;} elseprintf("无效输入\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;} elseprintf("你躲开了僵尸的攻击\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;elsePC_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;} elseprintf("你选择了留下");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;
}

现在只有这个版本了,请静待作者跟新,如若跟新,我会立刻发布。


http://www.ppmy.cn/news/1504444.html

相关文章

vue 按需引用element按需引用 后v-loading无法生效

在使用Vue进行开发时&#xff0c;‌如果你采用了按需引用Element UI组件库的方式&#xff0c;‌可能会遇到v-loading指令无法生效的问题。‌这通常是因为按需引用时&#xff0c;‌相关的指令没有被正确引入。‌ 为了解决这个问题&#xff0c;‌你需要确保在按需引用Element UI…

k8s学习2

k8s 分成Master 负责整个k8s集群管理 node节点&#xff08;工作&#xff09;运行nginx 节点—服务器 kubernetes 组件 kubernetes集群主要由控制节点(Master)、工作节点(Node)组成 Master组件 集群的控制平面&#xff0c;集群的决策 负责管理k8s 集群管理 apiserver Kuber…

爬虫“拥抱大模型”,有没有搞头?

验证码坐标识别 数据采集过程中&#xff0c;可能会碰到各种风控策略。其中&#xff0c;验证码人机验证是较为常见的&#xff0c;点选类验证码需要识别出相应的坐标&#xff0c;碰到这种情况&#xff0c;一般要么自己训练模型&#xff0c;要么对接打码平台。现在也可以将识别工…

用60行python代码制作一个扫雷

扫雷游戏&#xff08;Minesweeper&#xff09;是一个经典的逻辑游戏&#xff0c;玩家需要在一个包含隐藏地雷的网格中标记出所有地雷的位置&#xff0c;同时避免触发它们。下面&#xff0c;我将提供一个简单的Python扫雷游戏实现&#xff0c;并附带详细的教程。 第一步&#x…

行为型设计模式1:状态/策略/命令

行为型设计模式&#xff1a;状态/策略/命令 (qq.com)

CC++:贪吃蛇小游戏教程

❀创作不易&#xff0c;关注作者不迷路❀&#x1f600;&#x1f600; 目录 &#x1f600;贪吃蛇简介 &#x1f603;贪吃蛇的实现 &#x1f40d;生成地图 &#x1f40d;生成蛇模块 ❀定义蛇的结构体 ❀初始化蛇的相关信息 ❀初始化食物的相关信息 &#x1f40d;光标定位和…

无人值守大数据平台(CDH6.3.2+Flink+海豚调度器)如何实现大数据平台稳定及顺利跑出离线报表和实时报表(持续更新方案)

目录 背景 一、影响因素 (一)硬件方面 服务器硬件故障 资源不足 (二)软件方面 大数据组件故障 源数据问题 二、解决方案 (一)硬件冗余与监控 硬件冗余 (二)软件容错 1.配置高可用和分布式 HDFS (Hadoop Distributed File System) 高可用性 2. YARN (Yet …

湖仓一体架构解析:数仓架构选择(第48天)

系列文章目录 1、Lambda 架构 2、Kappa 架构 3、混合架构 4、架构选择 5、实时数仓现状 6、湖仓一体架构 7、流批一体架构 文章目录 系列文章目录前言1、Lambda 架构2、Kappa 架构3、混合架构4、架构选择5、实时数仓现状6、湖仓一体架构7、流批一体架构 前言 本文解析了Lambd…