新增SlowDisplay()函数,文字可以一个个跳出来
新增工作台,可以制造钻石甲或者钻石剑
新增地面探索--繁茂洞穴,可以打僵尸或是史莱姆
给LCR点一个赞吧~~
===上代码===
#include<time.h>
#include<windows.h>
#include<bits/stdc++.h>//目前为1.21版
using namespace std;
int a,b,c,d,ms,maidongxi,e,jiaotan,f,tulong,s,battle=0;
int Power_potion=0,workbench=0,hand_grenade=0,Golden_apples=0,Enchanted_bottle=0;
// 力量药水-------工作台------手榴弹---------金苹果---------附魔之瓶
int Iron_Great_Sword=0,Iron_Cuirass=0,Immortal_Totem=0,first_aid_kit=0,Stick=0;
// 铁大剑-------------铁胸甲---------不死图腾---------急救包----------木棍
int Diamond_Sword=0,Diamond_Cuirass=0;
// 钻石剑----------钻石胸甲
int gongji=0,Iron_Great_Sword_gongji=10,Diamond_Sword_gongji=15;
int fangyu=0,Iron_Cuirass_fangyu=5,Diamond_Cuirass_fangyu=10;
void mingzi();
void zhuangtai();
void daoju();
void jifen();
void skill();
void jijiu();
void direnzhuangtai();
void attack();
void dimiantansuo();
void shangdian();
void tulongzhe();
void elonggu();
void xiangganshenm();
void SlowDisplay(char *);
int suiji();//随机打败敌人获得物品
struct player{
string name;//玩家名
double Armor=1; //护甲值
double Armor_max=50;
double blood_volume=10; //血量
double blood_volume_max=50;
double harm=5; //伤害
double harm_max=50;
int diamond=10; //钻石
int grade=0; //等级
string right_hand,left_hand,body; //左、右手物品,装备
string tag[100];
int kill=0; //判断玩家是否死亡
}player;
struct monster{
char name[30];//怪物名
double Armor; //护甲值
double blood_volume; //血量
double harm; //伤害
int diamond; //怪物掉落钻石
char prompt[100]; //掉落提示
char skill[100]; //技能
int kill; //判断怪是否死亡
int id;
}corpse={"僵尸",3,15,2,3,"掉落3个钻石!","无技能",1,1},
skeleton={"骷髅",2,15,4,4,"掉落4个钻石!","使用弓箭攻击",1,2},
wither_skeleton={"凋零骷髅",2,10,4,4,"掉落4个钻石!","无视你的护甲值",1,3},
creeper={"苦力怕",1,15,15,2,"掉落2个钻石!","没有一下解决掉它会爆炸",1,4},
slime={"史莱姆",3,15,2,5,"掉落5个钻石!","把你黏住",1,5},
ender_man={"末影人",5,25,5,10,"掉落10个钻石!","可以瞬移",1,6},
thunder_dragon={"雷龙",8,50,6,30,"掉落30个钻石!","释放雷电,对你造成二次伤害",1,7},
fire_dragon={"火龙",12,40,8,30,"掉落30个钻石!","释放火焰,伤害x3",1,8},
ice_dragon={"冰龙",15,30,6,30,"掉落30个钻石!","无视你的防具",1,9},
guai={"0",0,0,0,0,"0",0,0};
void mingzi(){
Sleep(500);
SlowDisplay("勇士,请输入你的名字(提示:工作台是个好东西):\n\n");
cin>>player.name;
}
void zhuangtai(){
cout<<'\n'<<"钻石:"<<player.diamond<<"个-------"<<"等级:"<<player.grade<<'\n';
cout<<"护甲值:"<<player.Armor+fangyu<<"/"<<player.Armor_max<<"-------血量:"<<player.blood_volume<<"/"<<player.blood_volume_max<<"-------伤害:"<<player.harm+gongji<<"/"<<player.harm_max<<'\n';
cout<<"武器:"<<player.right_hand<<" 防具:"<<player.body<<" 左手:"<<player.left_hand<<'\n';
Sleep(1000);
}
void daoju(){
cout<<"=====================================================================================\n";
printf("\n1:急救包数:%d ",first_aid_kit);
printf("2:铁大剑数:%d ",Iron_Great_Sword);
printf("3:铁胸甲数:%d ",Iron_Cuirass);
printf("4:不死图腾数:%d ",Immortal_Totem);
printf("5:木棍数:%d ",Stick);
printf("\n6:力量药水数:%d ",Power_potion);
printf("7:工作台数:%d ",workbench);
printf("8:金苹果数:%d ",Golden_apples);
printf("9:手榴弹数:%d ",hand_grenade);
printf("10:附魔之瓶数:%d \n",Enchanted_bottle);
cout<<"-------------------------------------------------------------------------------------\n";
printf("11:钻石剑数:%d 12:钻石胸甲数:%d ",Diamond_Sword,Diamond_Cuirass);
cout<<"\n0:离开\n";
cout<<"=====================================================================================\n";
int shiyong;
cin>>shiyong;
switch(shiyong){
case 1:{
if(first_aid_kit>=1){
cout<<"急救包不可使用!"<<'\n';
}
else cout<<"数量不足!"<<'\n';
daoju();
break;
}
case 2:{
if(Iron_Great_Sword>=1){
cout<<"成功装备铁大剑!"<<'\n';
player.right_hand="铁大剑";
gongji=Iron_Great_Sword_gongji;
if(player.harm+gongji>player.harm_max) player.harm=player.harm_max-gongji;
}
else cout<<"数量不足!";
daoju();
break;
}
case 3:{
if(Iron_Cuirass>=1){
cout<<"成功装备铁胸甲!"<<'\n';
player.body="铁胸甲";
fangyu=Iron_Cuirass_fangyu;
if(player.Armor+fangyu>player.Armor_max) player.Armor=player.Armor_max-fangyu;
}
else cout<<"数量不足!";
daoju();
break;
}
case 4:{
if(Immortal_Totem>=1){
cout<<"不死图腾装备成功!"<<'\n';
player.left_hand="不死图腾";
}
else cout<<"数量不足!";
daoju();
break;
}
case 5:{
if(Stick>=1){
cout<<"木棍不可使用!"<<'\n';
}
else cout<<"数量不足!";
daoju();
break;
}
case 6:{
if(Power_potion>=1){
cout<<"力量药水使用成功!"<<'\n';
player.harm++;
if(player.harm>player.harm_max) player.harm=player.harm_max-gongji;
}
else cout<<"数量不足!";
daoju();
break;
}
case 7:{
if(workbench>=1){
cout<<"工作台使用成功!"<<'\n';
Sleep(700);
int gongzuo;
cout<<"\n你想用工作台制造什么?\n";
Sleep(700);
printf("1:钻石剑 2:钻石胸甲\n");
cin>>gongzuo;
switch(gongzuo){
case 1:{
if(player.diamond>=2||Stick>=1){
cout<<"消耗了2个钻石和1个木棍\n";
Sleep(500);
cout<<"制造成功!\n";
player.diamond-=2;
Stick--;
Diamond_Sword++;
}
else cout<<"材料不足!"<<'\n';
break;
}
case 2:{
if(player.diamond>=8){
cout<<"消耗了8个钻石\n";
Sleep(500);
cout<<"制造成功!\n";
player.diamond-=8;
Diamond_Cuirass++;
}
else cout<<"材料不足!"<<'\n';
break;
}
}
}
else cout<<"数量不足!无法使用工作台...";
daoju();
break;
}
case 8:{
if(Golden_apples>=1&&battle==1){
cout<<"金苹果吃掉了!"<<'\n';
player.harm+=4;
if(player.harm>player.harm_max) player.harm=player.harm_max-gongji;
player.Armor+=2;
if(player.Armor+fangyu>player.Armor_max) player.Armor=player.Armor_max-fangyu;
}
else cout<<"数量不足!";
daoju();
break;
}
case 9:{
if(hand_grenade>=1&&battle==1){
cout<<"手榴弹爆炸了!"<<'\n';
guai.blood_volume-=(40/guai.Armor)*2.0;
hand_grenade--;
}
if(hand_grenade>=1&&battle==0){
cout<<"非战斗状态不可使用!"<<'\n';
}
else cout<<"数量不足!";
daoju();
break;
}
case 10:{
if(Enchanted_bottle>=1){
cout<<"附魔之瓶使用成功,等级+1!"<<'\n';
player.grade++;
player.Armor_max+=10;
player.blood_volume_max+=10;
player.harm_max+=10;
}
else cout<<"数量不足!";
daoju();
break;
}
case 11:{
if(Diamond_Sword>=1){
cout<<"钻石剑装备好了,伤害+15!"<<'\n';
player.right_hand="钻石剑";
gongji=Diamond_Sword_gongji;
if(player.harm>player.harm_max) player.harm=player.harm_max-gongji;
}
else cout<<"数量不足!";
daoju();
break;
}
case 12:{
if(Diamond_Cuirass>=1){
cout<<"成功装备钻石胸甲!"<<'\n';
player.body="钻石胸甲";
fangyu=Diamond_Cuirass_fangyu;
if(player.Armor+fangyu>player.Armor_max) player.Armor=player.Armor_max-fangyu;
}
else cout<<"数量不足!";
daoju();
break;
}
case 0:{
if(battle=1){
attack();
}
else
xiangganshenm();
break;
}
}
}
void jifen(){
cout<<"\n查看状态请按1,查看物品请按2,其余数字跳过查看\n";
Sleep(1000);
int chakan;
cin>>chakan;
if(chakan==1){
zhuangtai();
}
if(chakan==2){
daoju();
}
}
void xiangganshenm(){
cout<<'\n'<<"请选择你接下来要执行的事情:"<<'\n';
Sleep(1000);
cout<<"-----1:前往商店----2:前往恶龙谷----3:查看状态/物品数量----4:在地面探索----5:使用物品-----"<<'\n';
cin>>f;
switch(f){
case 1:{
shangdian();
break;
}
case 2:{
elonggu();
break;
}
case 3:{
zhuangtai();
daoju();
break;
}
case 4:{
dimiantansuo();
break;
}
}
}
void shangdian(){
cout<<'\n'<<"老板:欢迎来到米奇妙妙屋!你想干什么?"<<'\n';
Sleep(1000);
cout<<"-----1:买东西----2:交谈----3:休息(增加护甲)----4:离开-----"<<'\n';
Sleep(1000);
int mai;
cin>>mai;
switch(mai){
case 1:{
cout<<"老板:有以下几样东西"<<'\n';
Sleep(1000);
cout<<"1:急救包(5钻石)----2:铁胸甲(3钻石)----3:铁大剑(4钻石)----4:不死图腾(6钻石)----5:力量药水(3钻石)"<<'\n';
cout<<"6:工作台(1钻石)----7:金苹果(4钻石)----8:手榴弹(4钻石)----9:木棍*16(1钻石)----10:附魔之瓶(8钻石) 0:离开"<<'\n';
cin>>maidongxi;
switch(maidongxi){
case 1:{
if(player.diamond>=5){
player.diamond-=5;
first_aid_kit++;
MessageBox(NULL,"急救包购买成功!","提示",MB_OK);
}
else MessageBox(NULL,"钻石不足!","提示",MB_OK);
Sleep(1000);
break;
}
case 2:{
if(player.diamond>=3){
player.diamond-=3;
Iron_Cuirass++;
MessageBox(NULL,"铁胸甲购买成功!","提示",MB_OK);
}
else MessageBox(NULL,"钻石不足!","提示",MB_OK);
Sleep(1000);
break;
}
case 3:{
if(player.diamond>=4){
player.diamond-=4;
Iron_Great_Sword++;
MessageBox(NULL,"铁大剑购买成功!","提示",MB_OK);
}
else MessageBox(NULL,"钻石不足!","提示",MB_OK);
Sleep(1000);
break;
}
case 4:{
if(player.diamond>=6){
player.diamond-=6;
Immortal_Totem++;
MessageBox(NULL,"不死图腾购买成功!","提示",MB_OK);
}
else MessageBox(NULL,"钻石不足!","提示",MB_OK);
Sleep(1000);
break;
}
case 5:{
if(player.diamond>=3){
player.diamond-=3;
Power_potion++;
MessageBox(NULL,"力量药水购买成功!","提示",MB_OK);
}
else MessageBox(NULL,"钻石不足!","提示",MB_OK);
Sleep(1000);
break;
}
case 6:{
if(player.diamond>=1){
player.diamond--;
workbench++;
MessageBox(NULL,"工作台购买成功!","提示",MB_OK);
}
else MessageBox(NULL,"钻石不足!","提示",MB_OK);
Sleep(1000);
break;
}
case 7:{
if(player.diamond>=4){
player.diamond-=4;
Golden_apples++;
MessageBox(NULL,"金苹果购买成功!","提示",MB_OK);
}
else MessageBox(NULL,"钻石不足!","提示",MB_OK);
Sleep(1000);
break;
}
case 8:{
if(player.diamond>=4){
player.diamond-=4;
hand_grenade++;
MessageBox(NULL,"手榴弹购买成功!","提示",MB_OK);
}
else MessageBox(NULL,"钻石不足!","提示",MB_OK);
Sleep(1000);
break;
}
case 9:{
if(player.diamond>=1){
player.diamond-=1;
Stick+=16;
MessageBox(NULL,"木棍购买成功!","提示",MB_OK);
}
else MessageBox(NULL,"钻石不足!","提示",MB_OK);
Sleep(1000);
break;
}
case 10:{
if(player.diamond>=8){
player.diamond-=8;
Enchanted_bottle++;
MessageBox(NULL,"附魔之瓶购买成功!","提示",MB_OK);
}
else MessageBox(NULL,"钻石不足!","提示",MB_OK);
Sleep(1000);
break;
}
break;
}
break;
}
case 2:{
cout<<"跟谁交谈?"<<'\n'<<"-----1:女仆----2:面具男----3:老板妻子----4:其余客人-----"<<'\n';
cin>>jiaotan;
switch(jiaotan){
case 1:{
cout<<"女仆:听说南山那里有发现了怪物。"<<'\n';
break;
}
case 2:{
if(player.tag[1]=="发现犯人"){
cout<<"面具男:我已经改邪归正了!"<<'\n';
Sleep(1000);
}
if(player.tag[1]!="发现犯人"){
cout<<"你去叫了一下面具男"<<'\n';
Sleep(1000);
cout<<"(他忽然惊慌的浑身抖了一下,只见他的面具掉了下来,他竟然是被通缉的犯人!)"<<'\n';
Sleep(3000);
cout<<"恭喜你发现了犯人,获得10钻石!" <<'\n';
Sleep(2000);
player.diamond+=10;
player.tag[1]="发现犯人";
}
break;
}
case 3:{
cout<<"老板妻子:听说恶龙谷的火龙最近得到了火焰附魔,更厉害了!"<<'\n';
Sleep(1000);
break;
}
case 4:{
cout<<"酒鬼:你也是来这里买饭的吗?哈哈哈哈~~"<<'\n';
Sleep(3000);
cout<<"红衣女子(神情诡异的看了你一眼):疣方块出现在了恶龙谷……"<<'\n';
Sleep(3000);
cout<<"胖男人(跟着说道):说明~嗝!地狱传送门快~嗝!出现了!"<<'\n';
Sleep(3000);
break;
}
}
break;
}
case 3:{
if(player.Armor>=10){
cout<<"护甲值已满,无需休息!"<<'\n';
Sleep(1000);
}
if(player.Armor<10){
if(player.tag[2]!="休息完毕"){
cout<<"休息中。。。"<<'\n';
Sleep(1000);
cout<<"休息完毕!护甲值+2。"<<'\n';
Sleep(1000);
player.tag[2]="休息完毕";
}
if(player.tag[2]=="休息完毕"){
cout<<"您已休息过!"<<'\n';
Sleep(1000);
}
}
break;
}
case 4:{
xiangganshenm();
break;
}
}
shangdian();
}
void elonggu(){
Sleep(1000);
cout<<'\n'<<player.name<<",欢迎来到恶龙谷!"<<'\n';
Sleep(1000);
cout<<"你在这里想:"<<'\n';
Sleep(1000);
cout<<"-----1:屠龙----2:前往地狱传送门----3:交谈----4:自由探索----5:逃走"<<'\n';
cin>>tulong;
switch(tulong){
case 1:{
tulongzhe();
break;
}
}
}
void tulongzhe(){
Sleep(500);
cout<<" @@@@@@@@@@"<<'\n';
Sleep(300);
cout<<" @@@ 传 @@@"<<'\n';
Sleep(300);
cout<<" @@@ 送 @@@"<<'\n';
Sleep(300);
cout<<" @@@ 中 @@@"<<'\n';
Sleep(300);
cout<<" @@@@@@@@@@"<<'\n'<<'\n';
for(int i=3;i>=1;i--){
cout<<i<<' ';
Sleep(970);
}
cout<<'\n'<<"(你进入了一片古老的森林,阳光斜洒,在地上斑驳)"<<'\n';
Sleep(1000);
cout<<"(你的面前有三条道路,一条路电闪雷鸣,另一条路火焰滚滚,最后一条冰天雪地)"<<'\n';
Sleep(2000);
cout<<player.name<<",你想走哪条路?"<<'\n';
Sleep(1000);
cout<<"-----1:电闪雷鸣路----2:火焰滚滚路----3:冰天雪地路----4:逃走"<<'\n';
int lu;
cin>>lu;
if(lu==1){
guai=thunder_dragon;
if(guai.kill!=0){
battle=1;
cout<<"\n欢迎来到雷电峡谷,"<<player.name<<"\n";
Sleep(1000);
cout<<"(只见空中阴云密布,峡谷一副破败景象,雷龙栖息在盘龙柱上)\n";
Sleep(2000);
cout<<player.name<<"想到:好强大的气场!\n";
Sleep(1500);
cout<<"(雷龙逐渐睁开了眼睛):小不点,就你也想打败我?\n";
Sleep(1500);
cout<<player.name<<":我不是小不点!\n";
Sleep(1000);
cout<<"雷龙:那你就靠自己的实力证明吧!\n";
Sleep(1000);
attack();
}
else{
cout<<"\n暂时安全!\n";
Sleep(1000);
xiangganshenm();
}
}
if(lu==2){
guai=fire_dragon;
if(guai.kill!=0){
battle=1;
cout<<"\n欢迎来到熔岩洞窟,"<<player.name<<"\n";
Sleep(1000);
cout<<"(这里处处都是岩浆,炎热的空气顿时让你汗流浃背,可是盘龙柱上的火龙像是没有事一般)\n";
Sleep(2000);
cout<<player.name<<":天哪,这就是传说中浴火重生的火龙吗!\n";
Sleep(1500);
cout<<"(火龙的眼睛看向了你):小不点,你是来干什么的?\n";
Sleep(1500);
cout<<player.name<<":我要来打败你!\n";
Sleep(1000);
cout<<"火龙:呵呵,不自量力的小鬼,不值一提!\n";
Sleep(1000);
attack();
}
else{
cout<<"\n这里安全了!\n";
Sleep(1000);
xiangganshenm();
}
}
if(lu==3){
guai=ice_dragon;
if(guai.kill!=0){
battle=1;
cout<<"\n欢迎来到镜之冰界,"<<player.name<<"\n";
Sleep(1000);
cout<<"(这里寒冷至极,镜子反射的寒光让你感到敌人仿佛就在这里)\n";
Sleep(2000);
cout<<player.name<<"(你徒劳地敲打着结界,想离开这是非之地)\n";
Sleep(1500);
cout<<"(你惊动了睡觉的冰龙):是谁吵醒我睡觉啊?\n";
Sleep(1500);
cout<<player.name<<":就是我!\n";
Sleep(1000);
cout<<"冰龙:过分!觉都没睡好啊啊啊,接招吧!\n";
Sleep(1000);
attack();
}
else{
cout<<"\n这里安全了!\n";
Sleep(1000);
xiangganshenm();
}
}
if(lu==4){
Sleep(500);
cout<<" @@@@@@@@@@"<<'\n';
Sleep(300);
cout<<" @@@ 传 @@@"<<'\n';
Sleep(300);
cout<<" @@@ 送 @@@"<<'\n';
Sleep(300);
cout<<" @@@ 中 @@@"<<'\n';
Sleep(300);
cout<<" @@@@@@@@@@"<<'\n'<<'\n';
for(int i=3;i>=1;i--){
cout<<i<<' ';
Sleep(970);
}
cout<<"逃走成功!"<<'\n';
}
}
void dimiantansuo(){
Sleep(1000);
cout<<"你想去哪里探索?\n";
cout<<"1:繁茂洞穴\n";
int tansuo;
cin>>tansuo;
switch(tansuo){
case 1:{
cout<<player.name<<",欢迎来到繁茂洞穴\n\n";
s=suiji();
if(s<6){
guai=corpse;
cout<<"僵尸向你扑了过来!\n";
attack();
}
else{
guai=slime;
cout<<"史莱姆向你撞了过来!\n";
attack();
}
break;
}
}
}
void jijiu(){
if(player.kill==0){
cout<<'\n'<<"当前血量小于0,是否使用急救包?"<<'\n';
cout<<"-----1:使用急救包-----"<<'\n';
Sleep(1000);
int shiyong;
cin>>shiyong;
if(shiyong==1){
if(first_aid_kit<1){
cout<<"数量不足!"<<'\n';
if(MessageBox(NULL,"你失败了!","提示",MB_OK)){
player.kill=1;
cout<<"游戏结束!";
}
}
if(first_aid_kit>=1){
first_aid_kit--;
player.blood_volume+=5;
cout<<"使用成功!"<<'\n';
attack();
}
}
else jijiu();
}
}
void direnzhuangtai(){
cout<<guai.name<<"的血量:"<<guai.blood_volume;
cout<<guai.name<<"的护甲:"<<guai.Armor<<'\n';
}
void attack(){
if(player.blood_volume<=0&&Immortal_Totem>0){
cout<<"\n不死图腾触发成功!血量恢复至5!"<<'\n';
player.blood_volume=5;
Immortal_Totem--;
player.left_hand="";
}
if(player.blood_volume<=0&&Immortal_Totem<=0) jijiu();
if(player.kill==0){
cout<<"\n-----1:攻击----2:使用道具/装备----3:查看自己状态----4:查看敌人状态----5:逃走-----\n";
int gongji;
cin>>gongji;
switch(gongji){
case 1:{
guai.blood_volume-=(player.harm+gongji)/guai.Armor*3.0;
cout<<"你攻击"<<guai.name<<",造成了"<<(player.harm+gongji)/guai.Armor*3.0<<"点伤害\n";
if(guai.blood_volume<=0){
cout<<'\n'<<"战斗胜利!你打败了"<<guai.name<<"获得"<<guai.diamond<<"钻石"<<'\n';
guai.kill=0;
player.diamond+=guai.diamond;
switch(guai.id){
case 1:{
corpse=guai;
break;
}
case 2:{
skeleton=guai;
break;
}
case 3:{
wither_skeleton=guai;
break;
}
case 4:{
creeper=guai;
break;
}
case 5:{
slime=guai;
break;
}
case 6:{
ender_man=guai;
break;
}
case 7:{
thunder_dragon=guai;
break;
}
case 8:{
fire_dragon=guai;
break;
}
case 9:{
ice_dragon=guai;
break;
}
}
Sleep(1000);
cout<<"\n正在敌人尸体中寻找掉落物...\n";
Sleep(2000);
s=suiji(); //打败怪物获得物品
switch(s){
case 1:{
Sleep(1000);
cout<<"从敌人掉落物中发现力量药水!";
Power_potion++;
break;
}
case 2:{
Sleep(1000);
cout<<"从敌人掉落物中发现手榴弹!";
hand_grenade++;
break;
}
case 3:{
Sleep(1000);
cout<<"从敌人掉落物中发现附魔之瓶!";
Enchanted_bottle++;
break;
}
case 4:{
Sleep(1000);
cout<<"从敌人掉落物中发现金苹果!";
Golden_apples++;
break;
}
case 5:{
Sleep(1000);
cout<<"从敌人掉落物中发现木棍!";
Stick+=8;
break;
}
case 6:{
Sleep(1000);
cout<<"从敌人掉落物中发现不死图腾!";
Power_potion++;
break;
}
case 7:{
Sleep(1000);
cout<<"什么都没有...";
break;
}
case 8:{
Sleep(1000);
cout<<"什么都没有...";
break;
}
case 9:{
Sleep(1000);
cout<<"什么都没有...";
break;
}
}
Sleep(1000);
battle=0;
xiangganshenm();
break;
}
if(guai.kill!=0){
Sleep(1000);
cout<<guai.name<<"对你造成"<<guai.harm/(player.Armor+fangyu)*2.0<<"点伤害";
player.blood_volume-=guai.harm/(player.Armor+fangyu)*2.0;
attack();
}
break;
}
case 2:{
daoju();
break;
}
case 3:{
zhuangtai();
break;
}
case 4:{
direnzhuangtai();
break;
}
case 5:{
s=suiji();
if(s<5){
cout<<"逃走成功!\n\n";
battle=0;
xiangganshenm();
}
else{
cout<<"逃走失败!\n\n";
}
break;
}
}
}
}
void SlowDisplay(char *p)
{
while(1)
{
if(*p!=0)
printf("%c",*p++);
else
break;
Sleep(60);
}
}
int suiji()
{
srand((unsigned)time(NULL));
return rand()%10;
}
int main(){
MessageBox(NULL,"切勿关闭运行页面!!!","提示",MB_OK);
mingzi();
while(player.kill!=1){
xiangganshenm();
}
MessageBox(NULL,"游戏结束","提示",MB_OK);
return 0;
}