斗罗大陆,测试,许多都不可用

#include<bits/stdc++.h>
#include <iostream>
#include <conio.h>
#include <string>
#include <map>
#include <cmath>
#include <windows.h>
#include <time.h> 
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
using namespace std;
string ji[10],name,hun,zh,hm;
string wuhun[8]={"光明女神蝶","蓝银草","邪火凤凰","蓝电霸王龙","修罗神","天使神","罗刹神","海神"};
long long fu,fu2,xuan,hun1,hunli1,jixu,nianling=6,hp,mm,j,yi,huns,x,n,wh;
long long hhp,hg,h,hs,g,wj[9],jj,thp,jjj,huan[10],hh[100],js,kj,zhuang;
long long n1[100],she=100,jy;

int donghua(int k)
{
	system("cls");
	Sleep(100);cout<<"====================================="<<endl;
	thp=hp;
	while(jjj<=100)
	{
		cout<<name<<" VS "<<hm<<n<<endl;
		cout<<"回合数:"<<jjj<<"/100"<<endl;
		cout<<"你的血量: "<<hp<<"   "<<hm<<"的血量: "<<hhp<<endl;
		cout<<"你的攻击力: "<<g<<"   "<<hm<<"的攻击力: "<<hg<<endl;
		cout<<"========================"<<endl;
		cout<<"|                      |"<<endl;
		cout<<"|                      |"<<endl;
		cout<<"|                      |"<<endl;
		cout<<"|   ( )                |"<<endl;
		cout<<"|  ↙|↘     ( )_____  |"<<endl;
		cout<<"|    |         |_____| |"<<endl;
		cout<<"|   /\        |   |  |"<<endl;
		cout<<"|                      |"<<endl;
		cout<<"========================"<<endl;
		cout<<"普通攻击  0"<<endl; 
		cout<<"第一魂技  1 "<<ji[1]<<endl;
		cout<<"第二魂技  2 "<<ji[2]<<endl;
		cout<<"第三魂技  3 "<<ji[3]<<endl;
		cout<<"第四魂技  4 "<<ji[4]<<endl;
		cout<<"第五魂技  5 "<<ji[5]<<endl;
		cout<<"第六魂技  6 "<<ji[6]<<endl;
		cout<<"第七魂技  7 "<<ji[7]<<endl;
		cout<<"第八魂技  8 "<<ji[8]<<endl;
		cout<<"第九魂技  9 "<<ji[9]<<endl;
		cin>>x;
		system("cls");
		if(x==1&&wj[0]!=0){cout<<name<<" 使用了 "<<ji[0]<<endl;hhp=hhp-wj[0];}
		if(x==2&&wj[1]!=0){cout<<name<<" 使用了 "<<ji[1]<<endl;}
        if(x==3&&wj[2]!=0){cout<<name<<" 使用了 "<<ji[2]<<endl;}
        if(x==4&&wj[3]!=0){cout<<name<<" 使用了 "<<ji[3]<<endl;}
        if(x==5&&wj[4]!=0){cout<<name<<" 使用了 "<<ji[4]<<endl;}
        if(x==6&&wj[5]!=0){cout<<name<<" 使用了 "<<ji[5]<<endl;}
        if(x==7&&wj[6]!=0){cout<<name<<" 使用了 "<<ji[6]<<endl;}
        if(x==8&&wj[7]!=0){cout<<name<<" 使用了 "<<ji[7]<<endl;}
        if(x==9&&wj[8]!=0){cout<<name<<" 使用了 "<<ji[8]<<endl;}
        if(x==0){cout<<name<<" 使用了普通攻击"<<endl;hhp=hhp-g;}
        if(hhp<=0){cout<<"你杀死了"<<hm<<endl;hhp=0;jy+=n;hp=thp;jjj=0;return n;}
        hp-=hg;
        cout<<hm<<"攻击了你"<<endl;
        if(hp<=0){cout<<hm<<"杀死了你"<<endl;hp=thp;jjj=0;return 0;}
        jjj++;
	}
}
void color(int a)
{
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);
}
void geren(int k)
{
	Sleep(100);cout<<"====================================="<<endl;
	color(15);
	Sleep(100);cout<<"姓名:"<<name<<endl;
	color(9);
	Sleep(100);cout<<"魂力:"<<hunli1<<"级"<<endl;
	color(11);
	Sleep(100);cout<<"年龄:"<<nianling<<"岁"<<endl;
	color(6);
	Sleep(100);cout<<"武魂:"<<hun<<endl;
	color(4); 
	Sleep(100);cout<<"血量:"<<hp<<endl;
	color(2);
	Sleep(100);cout<<"攻击:"<<g<<endl;
	color(3);
	Sleep(100);cout<<"经验:"<<jy<<"/"<<she<<endl;
	color(5);
	Sleep(100);cout<<"魂环年限:";for(int i=0;i<=8;i++)if(wj[i]!=0)cout<<wj[i]<<" ";cout<<endl;
}
void hunli(int k)
{
	Sleep(100);cout<<"(按1继续)"<<endl;
	cin>>jixu;
	system("cls");
	color(15);
	Sleep(100);cout<<name<<",测试魂力"<<endl;
	srand(time(0));
	hunli1=rand()%10;
	hunli1++;
	color(8);
	Sleep(100);cout<<"先天魂力:"<<hunli1<<endl;
	Sleep(100);cout<<"(按1继续)"<<endl;
	cin>>jixu;
	she=hunli1*100;
	system("cls");
} 
void juexin(int k)
{
	srand(time(0));
	wh=rand()%4;
	hun=wuhun[wh];
	if(hun=="光明女神蝶")
	{
		ji[1]="翅翼铡刀";
		ji[2]="蝶神之光";
		ji[3]="蝶神斩";
		ji[4]="六芒星阵";
		ji[5]="光神附体";
		ji[6]="蝶神舞";
		ji[7]="武魂真身";
		ji[8]="龙舞耀阳";
		ji[9]="海神降临";
	} 
	if(hun=="蓝银草")
	{
		ji[1]="缠绕";
		ji[2]="寄生";
		ji[3]="蛛网束缚";
		ji[4]="蓝银囚笼";
		ji[5]="蓝银霸皇枪";
		ji[6]="虚无";
		ji[7]="武魂真身";
		ji[8]="蓝银虎鲸镜之灭";
		ji[9]="蓝银天青龙之魂";
	} 
	if(hun=="邪火凤凰")
	{
		ji[1]="凤凰火线";
		ji[2]="浴火凤凰";
		ji[3]="凤翼天翔";
		ji[4]="凤凰甲";
		ji[5]="凤凰啸天击";
		ji[6]="凤凰流星雨 ";
		ji[7]="武魂真身";
		ji[8]="凤凰裂地舞 ";
		ji[9]="凤凰霸天舞 ";
	} 
	if(hun=="蓝电霸王龙")
	{
		ji[1]="雷霆龙爪";
		ji[2]="神龙摆尾";
		ji[3]="霸道雷霆";
		ji[4]="雷霆龙甲";
		ji[5]="蓝电霸王枪";
		ji[6]="雷霆审判";
		ji[7]="武魂真身";
		ji[8]="蓝电龙皇傲";
		ji[9]="蓝电神龙破";
	} 
}
int main()
{
	system("title 斗罗大陆.梦之始 测试版");
	system("mode con cols=110 lines=30");
	Sleep(200);
	for(int i=1;i<=9;i++) cout<<endl;
	cout<<"                                        抵制不良游戏,拒绝盗版游戏。"<<endl;
	cout<<"                                        注意自身保护,谨防受骗上当。"<<endl;
	cout<<"                                        适度游戏益脑,沉迷游戏伤身。"<<endl;
	cout<<"                                        合理安排时间,享受健康生活。"<<endl;
	Sleep(1000);
	cout<<endl<<endl<<endl<<endl;
	cout<<"                                                游戏加载中..."<<endl;
	cout<<"                                            ";
	for(int i=1;i<=10;i++)
	{
		cout<<"▊";
		Sleep(500);
	}
	cout<<endl<<endl<<endl<<endl;
	cout<<"                                               CH工作室出品"<<endl;
	Sleep(600);
	cout<<"                                             ";
	system("pause");
	system("cls");
	cout<<"公告:"<<endl;
	cout<<"1.当前游戏为测试版,以下部分功能不可用:"<<endl;
	cout<<"    (1)学院不可用"<<endl;
	cout<<"    (2)武魂殿不可用"<<endl;
	cout<<"    (3)杀戮之都不可用"<<endl;
	cout<<"    (4)落日大森林外围不可用"<<endl;
	cout<<"    (5)落日大森林核心不可用"<<endl;
	cout<<"    (6)极北之地外围不可用"<<endl;
	cout<<"    (7)极北之地核心不可用"<<endl;
	cout<<"    (8)魂技不可用"<<endl;
	cout<<"    (9)系统不可用"<<endl;
	cout<<"2.现有武魂:"<<endl;
	cout<<"    (1)光明女神蝶"<<endl;
	cout<<"    (2)蓝银草"<<endl;
	cout<<"    (3)邪火凤凰"<<endl;
	cout<<"    (4)蓝电霸王龙"<<endl;
	system("pause"); 
	system("cls");
	Sleep(100); 
	printf("        	    	   *^--{|欢迎来到 [斗罗大陆.梦之始] 测试版|}--^*             \n");
	printf("            	    	     ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔\n"); 
	color(2);
	Sleep(100);cout<<"你出生在圣魂村,相传从这里走出来过魂圣......"<<endl; 
	color(1);
	Sleep(100);cout<<"请为你的第一位魂师命名"<<endl;
	Sleep(100);cout<<"名字:";
	cin>>name;
	if(name=="萧培跟")jy+=100000000;
	system("cls");
	color(2);
	Sleep(100);cout<<"注意看,武魂殿的素云涛大师(26级大魂师)来帮助你们觉醒武魂了"<<endl;
	Sleep(100);cout<<"11-20魂师  21-30大魂师 \n31-40魂尊  41-50魂宗  \n51-60魂王  61-70魂帝 \n71-80魂圣 81-90魂斗罗  \n90-94封号斗罗  95-98超级斗罗  99极限斗罗"<<endl;
	Sleep(1000);juexin(1);
	Sleep(100);cout<<"素云涛:武魂竟然是"<<hun<<endl;Sleep(1000);
	hunli(1);
	Sleep(100);cout<<"素云涛:魂力"<<hunli1<<"级"<<endl; 
	hp=hunli1*100;
	g=hunli1*10;
	Sleep(100);cout<<"这时一旁的人全都惊呼出声,因为铁匠的儿子唐三先天满魂力,但只觉醒出了蓝银草"<<endl;
	Sleep(100);cout<<"但你一眼就看到了唐三另一只手中的昊天锤"<<endl;Sleep(1000);system("cls");
	color(4);Sleep(100);cout<<"这时你的脑中发出了叮的声音。"<<endl;
	Sleep(100);cout<<"=-----------------------------="<<endl;
	Sleep(100);cout<<"|   斗罗养成系统绑定中......  |"<<endl;
	Sleep(100);cout<<"=-----------------------------="<<endl;
	Sleep(100);cout<<"绑定完成!!!"<<endl;
	Sleep(1000);
	system("cls");
	color(1);
	Sleep(100);cout<<"个人面板:"<<endl;
	geren(1);
	Sleep(100);cout<<"是否开始游戏?1.是 2.否"<<endl;
	cin>>jixu;
	if(jixu==2)
	return 0; 
	system("cls");
	while(j==0)
	{
		if(jy>=she&&hunli1%10!=0)
		{
			hunli1+=1;
			jy=jy-she;
			if(hunli1<=10)she=hunli1*100;
			else if(hunli1<=20&&hunli1>10){she=hunli1*100;hp=hunli1*100;g=hunli1*10;}
			else if(hunli1<=30&&hunli1>20){she=hunli1*200;hp=hunli1*150;g=hunli1*15;}
			else if(hunli1<=40&&hunli1>30){she=hunli1*300;hp=hunli1*200;g=hunli1*20;}
			else if(hunli1<=50&&hunli1>40){she=hunli1*400;hp=hunli1*250;g=hunli1*25;}
			else if(hunli1<=60&&hunli1>50){she=hunli1*500;hp=hunli1*300;g=hunli1*30;}
			else if(hunli1<=70&&hunli1>60){she=hunli1*600;hp=hunli1*350;g=hunli1*35;}
			else if(hunli1<=80&&hunli1>70){she=hunli1*700;hp=hunli1*400;g=hunli1*40;}
			else if(hunli1<=90&&hunli1>80){she=hunli1*800;hp=hunli1*450;g=hunli1*45;}
			else if(hunli1<=95&&hunli1>90){she=hunli1*900;hp=hunli1*500;g=hunli1*50;}
			else if(hunli1<=99&&hunli1>95){she=hunli1*1000;hp=hunli1*550;g=hunli1*55;}
			else if(hunli1==100)she=10000000;
		}
		color(6);
		Sleep(100);cout<<"=========================================="<<endl;;
		Sleep(100);cout<<"1.移动 2.个人 3.魂环背包 4.系统 5.退出游戏 "<<endl;
		cin>>xuan;
		if(xuan==1)
		{
			color(3);
			Sleep(100);cout<<"====================================="<<endl;
			Sleep(100);cout<<"1.学院 2.武魂殿 3.杀戮之都 4.魂兽区域"<<endl;
			cin>>yi;
			if(yi==1){cout<<"敬请期待"<<endl;}
			if(yi==2){cout<<"敬请期待"<<endl;}
			if(yi==3){cout<<"敬请期待"<<endl;}
			if(yi==4)
			{
				color(4);
				Sleep(100);cout<<"====================================="<<endl; 
				color(12); 
				Sleep(100);cout<<"1.星斗大森林外围 危险指数:★★"<<endl;
				Sleep(100);cout<<"2.星斗大森林核心 危险指数:★★★★★"<<endl;
				Sleep(100);cout<<"3.落日大森林外围 危险指数:★"<<endl;
				Sleep(100);cout<<"4.落日大森林核心 危险指数:★★★"<<endl;
				Sleep(100);cout<<"5.极北之地外围   危险指数:★★★★"<<endl;
				Sleep(100);cout<<"6.极北之地核心   危险指数:★★★★★"<<endl;
				cin>>huns;
				while(js<100)
				{
					js++;
					if(hh[js]==0)
					break;
				}
				if(huns==1)
				{
					srand(time(0));
					hs=rand()%6;
					Sleep(100); 
					if(hs==0||hs==6)
					cout<<"没有遇到魂兽"<<endl;
					else if(hs==1)
					{
						hm="甲壳虫";
						hhp=230;
						hg=20;
						n=23;
						donghua(n);
						hh[js]=n;
					}
					else if(hs==2)
					{
						hm="独狼";
						hhp=250;
						hg=25;
						n=74;
						donghua(n);
						hh[js]=n;
					}
					else if(hs==3)
					{
						hm="曼陀罗蛇";
						hhp=278;
						hg=31;
						n=423;
						donghua(n);
						hh[js]=n;
					}
					else if(hs==4)
					{
						hm="鬼藤";
						hhp=345;
						hg=34;
						n=873;
						donghua(n);
						hh[js]=n;
					}
					else if(hs==5)
					{
						hm="人面魔蛛 ";
						hhp=567;
						hg=56;
						n=2333;
						donghua(n);
						hh[js]=n;
					}
				}
				if(huns==2)
				{
					srand(time(0));
					hs=rand()%6;
					Sleep(100); 
					if(hs==0||hs==6)
					cout<<"没有遇到魂兽"<<endl;
					else if(hs==1)
					{
						hm="人面蛛皇";
						hhp=9000;
						hg=435;
						n=12556;
						donghua(n);
						hh[js]=n;
					}
					else if(hs==2)
					{
						hm="千钧蚁皇";
						hhp=10000;
						hg=975;
						n=34563;
						donghua(n);
						hh[js]=n;
					}
					else if(hs==3)
					{
						hm="暗魔邪神虎";
						hhp=19000;
						hg=1109;
						n=83745;
						donghua(1); 
						hh[js]=n;
					}
					else if(hs==4)
					{
						hm="泰坦巨猿";
						hhp=30000;
						hg=1234;
						n=133241;
						donghua(n);
						hh[js]=n;
					}
					else if(hs==5)
					{
						hm="天青牛蟒";
						hhp=31000;
						hg=2143;
						n=233452;
						donghua(n);
						hh[js]=n;
					}
				}
				if(huns==3){cout<<"敬请期待"<<endl;}
				if(huns==4){cout<<"敬请期待"<<endl;}
				if(huns==5){cout<<"敬请期待"<<endl;}
				if(huns==6){cout<<"敬请期待"<<endl;}
			}
		} 
		if(xuan==2)
		geren(1);
		if(xuan==3)
		{
			color(15);
			Sleep(100);cout<<"====================================="<<endl;
			Sleep(100);cout<<"1.查看魂环 2.装备魂环 3.查看魂技"<<endl; 
			cin>>yi;
			if(yi==1)
			{
				for(int i=1;i<=100;i++)
				if(hh[i]!=0)
				{
					kj++;
					Sleep(100);cout<<kj<<". "<<hh[i]<<endl;
					
				}
				kj=0; 
			} 
			if(yi==2)
			{
				for(int i=1;i<=100;i++)
				if(hh[i]!=0)
				{
					kj++;
					Sleep(100);cout<<kj<<". "<<hh[i]<<endl;
				}
				kj=0; 
				if(hunli1%10==0)
				{
					cout<<"你要装备:";
					cin>>zhuang;
					if(hh[zhuang]!=0)
					{
						wj[hunli1/10]=hh[zhuang+1];
						hh[zhuang]=0;
						hunli1++;
						cout<<"成功"<<endl;
					}
				}
			} 
			if(yi==3)
			{
				color(1);Sleep(100);cout<<"====================================="<<endl;
				color(2);Sleep(100);cout<<ji[1]<<endl;
				color(3);Sleep(100);cout<<ji[2]<<endl;
				color(4);Sleep(100);cout<<ji[3]<<endl;
				color(5);Sleep(100);cout<<ji[4]<<endl;
				color(6);Sleep(100);cout<<ji[5]<<endl;
				color(7);Sleep(100);cout<<ji[6]<<endl;
				color(8);Sleep(100);cout<<ji[7]<<endl;
				color(9);Sleep(100);cout<<ji[8]<<endl;
				color(10);Sleep(100);cout<<ji[9]<<endl;
			}
		}
		if(xuan==4)
		{
			color(13); 
			Sleep(100);cout<<"====================================="<<endl;
			Sleep(100);cout<<"1.主线任务  2.系统商店 3.支线任务"<<endl;
			cin>>yi;
			if(yi==1)
			{
				color(1);Sleep(100);cout<<"1.觉醒武魂"<<endl;
				color(2);Sleep(100);cout<<"2.突破到魂师"<<endl;
				color(3);Sleep(100);cout<<"3.突破到大魂师"<<endl;
				color(4);Sleep(100);cout<<"4.突破到魂尊"<<endl;
				color(5);Sleep(100);cout<<"5.突破到魂宗"<<endl;
				color(6);Sleep(100);cout<<"6.突破到魂王"<<endl;
				color(7);Sleep(100);cout<<"7.突破到魂帝"<<endl;
				color(8);Sleep(100);cout<<"8.突破到魂圣"<<endl;
				color(9);Sleep(100);cout<<"9.突破到魂斗罗"<<endl;
				color(10);Sleep(100);cout<<"10.突破到封号斗罗"<<endl;
				color(11);Sleep(100);cout<<"11.突破到超级斗罗"<<endl;
				color(12);Sleep(100);cout<<"12.突破到极限斗罗"<<endl;
				color(13);Sleep(100);cout<<"13.获得神考"<<endl;
				color(14);Sleep(100);cout<<"14.成神"<<endl;
				color(15);Sleep(100);cout<<"15.到达神界"<<endl;
				color(1);Sleep(100);cout<<"16.成为神官及以上"<<endl;
				color(2);Sleep(100);cout<<"17.成为三级神及以上"<<endl;
				color(3);Sleep(100);cout<<"18.成为二级神及以上"<<endl;
				color(4);Sleep(100);cout<<"19.成为一级神及以上"<<endl;
				color(5);Sleep(100);cout<<"20.成为神王及以上"<<endl;
				color(6);Sleep(100);cout<<"21.成为创世神"<<endl;
				color(7);Sleep(100);cout<<"22.创造位面"<<endl;
				color(8);Sleep(100);cout<<"23.吞噬其他位面"<<endl;
			}
			if(yi==2)
			{
				Sleep(100);cout<<"还未开启"<<endl;
			}
			if(yi==3)
			{
				Sleep(100);cout<<"无"<<endl;
			} 
		}
		if(xuan==5)
		{
			MessageBox(NULL,"      确认退出吗?\n退出会导致存档消失","斗罗大陆 游戏退出提示(CH工作室出版)",MB_OK); 
			Sleep(100);cout<<"再见!!!"<<endl; 
			return 0;
		} 
	} 
} 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值