Hello大家好,我是文宇.
没什么好说的,更新了
#include
#include
#include
#include
#include
#include
#include
using namespace std;
string name,wh,wh3,hsm;
int xthl=0;//先天魂力
int hldj=0;//魂力等级
int wh1=999;//武魂
int wh2=999;//武魂2
long long sxhl=20;//所需魂力
long long gj,fy,jy=0,hp,zdhp,ds=3;//属性
long long hj[9]={0};//九个魂环的年限
long long hj2[9]={0};//第二武魂九个魂环的年限
int hh=0;//第一武魂魂环数量
int hh2=0;//第二武魂魂环数量
int jl=0;//魂环吸收几率
int jhb=0;//金魂币
int zgn=0;//诸葛弩
int zmd=0;//子母胆
int ywt=0;//阎王帖
int bylh=0;//暴雨莲花
int fntl=0;//佛怒唐莲
long long nx;//魂兽年限
long long dfsh;//魂兽的伤害
long long dfsm;//魂兽的生命值
int n,a,p,jg,hs,ct,xs,zd,jn,sz,o,fh,pd,w=0,xlxl=100,syaq;//亿些变量
int main() {
srand(time(NULL));
cout<<"-------------------斗罗大陆-----------------------"<> name;
cout<=0&&n<=4){
wh1=rand()%8;
if(wh1==0) {
wh="昊天锤";
}
if(wh1==1) {
wh="蓝电霸王龙";
}
if(wh1==2) {
wh="七杀剑";
}
if(wh1==3) {
wh="邪火凤凰";
}
if(wh1==4) {
wh="蓝银皇";
}
if(wh1==5) {
wh="六翼天使";
}
if(wh1==6) {
wh="邪眸白虎";
}
if(wh1==7){
wh="幽冥灵猫";
}
cout<<"你的武魂 :"<10){
xthl/=2;
}
if(xthl<=1) {
cout<<"你只是一个普通人,没有魂力,平凡的度过一生!!!"<>a;
if(a==1)
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"\n电脑正在拼命加载中...\n\n\n";
Sleep(1000);
goto aqd;
}
if(a==2){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"\n电脑正在拼命加载中...\n\n\n";
Sleep(1000);
goto hssl;
}
if(a==3){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"\n电脑正在拼命加载中...\n\n\n";
Sleep(1000);
goto xl;
}
if(a==4){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"\n电脑正在拼命加载中...\n\n\n";
Sleep(1000);
goto zcd;
}
if(a==111028){
jhb=1000000;
goto cz;
}
if(a==888888){
jy+=999999999;
goto cz;
}
aqd:
system("color 0F");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
FOREGROUND_BLUE);
cout<<" -------------*暗器店*----------------------------------------------- \n";
cout<<" |1.诸葛弩箭矢5只 2.子母胆 3.阎王帖 4.暴雨莲花 5.佛怒唐莲 6.返回 | \n";
cout<<" | 500金魂币 1000金币 5000金币 10000金币 50000金币 | \n";
cout<<" -----------祝您玩的开心--------------------------------------------- \n";
cin>>p;
if(p==1){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"你有"<>jg;
if(jhb>=jg*500){
jhb-=jg*100;
zgn +=jg*5;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |FOREGROUND_RED);
cout<<"购买成功!\n"<>jg;
if(jhb>=jg*1000){
jhb-=jg*1000;
zgn +=jg*2;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |FOREGROUND_RED);
cout<<"购买成功!\n"<>jg;
if(jhb>=jg*5000){
jhb-=jg*5000;
zgn +=jg;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |FOREGROUND_RED);
cout<<"购买成功!\n"<>jg;
if(jhb>=jg*10000){
jhb-=jg*10000;
zgn +=jg;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |FOREGROUND_RED);
cout<<"购买成功!\n"<>jg;
if(jhb>=jg*50000){
jhb-=jg*50000;
zgn +=jg;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY |FOREGROUND_RED);
cout<<"购买成功!\n"<=2||hh<=4) nx=rand()%8999+1001;
else nx=rand()%899999+10001;
cout<>ct;
if(ct==1){
dfsh=nx/100;
dfsm=nx/2;
hp=zdhp;
for(;;){
system("color 0F");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
FOREGROUND_GREEN);
cout<<"战斗开始 \n";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
FOREGROUND_BLUE);
cout<<"1.攻击 2.使用魂技 3.暗器"<>zd;
if(zd==1){
dfsm-=gj;
if(dfsh<=0){
hp-=0;
}else{
hp-=dfsh-fy/2;
}
cout<<"敌方生命"<>jn;
if(jn==1&&hh>=1){
cout<<"你使用了第一魂技"<=2){
cout<<"你使用了第二魂技"<=3){
cout<<"你使用了第三魂技"<=4){
cout<<"你使用了第四魂技"<=5){
cout<<"你使用了第五魂技"<=6){
cout<<"你使用了第六魂技"<=7){
cout<<"你使用了第七魂技"<=8){
cout<<"你使用了第八魂技"<=9){
cout<<"你使用了第九魂技"<=1){
cout<<"你使用了第一魂技"<=2){
cout<<"你使用了第二魂技"<=3){
cout<<"你使用了第三魂技"<=4){
cout<<"你使用了第四魂技"<=5){
cout<<"你使用了第五魂技"<=6){
cout<<"你使用了第六魂技"<=7){
cout<<"你使用了第七魂技"<=8){
cout<<"你使用了第八魂技"<=9){
cout<<"你使用了第九魂技"<>syaq;
if(syaq==1){
dfsm-=100;
zgn-=1;
}
if(syaq==2){
dfsm-=250;
zmd-=1;
}
if(syaq==3){
dfsm-=550;
ywt-=1;
}
if(syaq==4){
dfsm-=1000;
bylh-=1;
}
if(syaq==5){
dfsm-=5000;
fntl-=1;
}
}
if(dfsm<=0){
cout<<"成功击杀!"<=sxhl){
while(jy>=sxhl){
hldj+=1;
cout<<"恭喜"<>xs;
if(xs==1){
if(wh1>=0&&wh1<=9){
cout<<"吸收成功!!!"<=0&&wh2<=9){
cout<<"魂环给哪个武魂吸收 (1 or 2)"<>sz ;
if(sz==1){
cout<<"吸收成功!!!"<>o;
if(o==1){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"\n电脑正在拼命加载中...\n\n\n";
Sleep(1000);
goto cz;
}
if(o==2){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"\n电脑正在拼命加载中...\n\n\n";
Sleep(1000);
goto cksx;
}
if(o==3){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"\n电脑正在拼命加载中...\n\n\n";
Sleep(1000);
goto qt;
}
cksx:
zdhp=0;
hp=zdhp;
gj=0;
fy=0;
ds=3;
sxhl=20;
xlxl=200;
w=0;
while(w>fh;
if(fh==1){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"\n电脑正在拼命加载中...\n\n\n";
Sleep(1000);
goto zcd;
}else {
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"\n电脑正在拼命加载中...\n\n\n";
Sleep(1000);
goto cksx;
}
qt:
system("color 0F");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |
FOREGROUND_GREEN);
cout<<"--------------------制作相关信息--------------------\n";
Sleep(300);
cout<<" 制作者:古拉尔周某 \n";
Sleep(300);
cout<<" 制作时间:天 \n";
Sleep(300);
cout<<" 制作日期:2024年8月7日-2024年8月日 \n";
Sleep(300);
cout<<" 可以自己修改 \n";
cout<<"输入 1返回主菜单"<>fh;
if(fh==1){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"\n电脑正在拼命加载中...\n\n\n";
Sleep(1000);
goto zcd;
}else {
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE| BACKGROUND_GREEN| BACKGROUND_RED);
cout<<"\n电脑正在拼命加载中...\n\n\n";
Sleep(1000);
goto qt;
}
xl:
cout<<"你正在修炼…………"<=sxhl){
if(hldj%10==0){
cout<<"魂力达到瓶颈,请吸收魂环"<
马上开学了,作者的更新速度会下降很多.