- 2024tysc1368 的博客
勇者之路1.51(持续更新,已更新到[海岸]游戏才开始!才度过收集物质阶段!)更新日期 2024 年 12月 20日 21:25
- @ 2024-12-1 18:01:50
由于这是我和我团队(我是队长(^ v ^))一起做的,有语言逻辑错误,不喜快喷。注:[山]和[矿洞]的加载不是伪加载
#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
using namespace std;
long long sr=0,gj=5,t=1,jlsx=100,kkz=100,bsd=100,xl=100,pd=0,mf=0,sf=0,rq=0,yg=0,mg=0,sg=0,mc=0,sz=0,rou=0,cao=0,ds=0,jg=0,st=0,tk=0,mt=0,tiek=0,hj=0,zs=0,tong=0,thj=0,yin=0,hd=0,sha=0,bl=0,tg=0,tf=0,thjg=0;
long long tongjianmifang=0,tongjian=0,shenwumifang=0,shenwu;
string m[10]={
"树林 生产物/动物:木材、浆果、树脂、野狼、石头、草",
"草原 生产物/动物:水源、野兔、野狼、鹿、鱼",
"山 生产物/动物:水、雪狐、石头、铁矿、煤矿",
"矿洞 生产物/动物:石头、铁矿、煤矿、黄金、铜、钛合金、银",
"海岸 生产物/动物:沙子、海鱼、海带、各种特殊秘方(铜剑秘方、圣物秘方)",
"血肉之地 生产物/动物:血剑秘方、血肉模糊的怪物(需要圣物才能攻击它)、血木、血锭",
};
//srand(time(0));
int xrzd(){
cout<<"你可以探索无限次...但你有这个实力吗";
}
int haian(){
cout<<"你可以探索15次,这将是最后的安全地,不用考虑血量,当到下一个地方时,游戏才刚刚开始\n";
for(int i=1;i<=15;i++){
srand(time(0));
int hp=rand()%100+1;
if(hp>=1 and hp<=50){
cout<<"你没发现什么,是否挖沙子?(1~50)是按[1]";
int a;
cin>>a;
if(a==1){
srand(time(0));
int sp=1+rand()%50;
sha+=sp;
cout<<"你获得了"<<sp<<"单位的沙子";
}
}
if(hp>=51 and hp>=70){
srand(time(0));
int hdp=1+rand()%10;
cout<<"你发现了"<<hdp<<"条海带";
hd+=hdp;
}
if(hp>=71){
if(!(shenwumifang)and!(tongjianmifang)){
int a=1+rand()%2;
if(a==1){
tongjianmifang++;
}else{
shenwumifang++;
}
}else{
if(shenwumifang and!(tongjianmifang)){
tongjianmifang++;
}else{
if(tongjianmifang and !(shenwumifang)){
shenwumifang++;
}else{
cout<<"你发现了血肉之地";
}
}
}
}
Sleep(1000);
system("cls");
}
return 1;
}
int wks(){
char dt[10][10];
for(int i=0;i<=9;i++){
for(int j=0;j<=9;j++){
srand(time(0));
int wkd=rand()%3+1;
if(wkd==1){
dt[i][j]='s';
}else{
if(wkd==2){
dt[i][j]='t';
}else{
dt[i][j]='m';
}
}
system("cls");
cout<<"加载中...(大概1分钟)\n已完成"<<(i*10)+j+1<<"%";
Sleep(1000);
}
}
dt[0][0]='x';
int x=0,y=0;
cout<<"x是你,煤炭、石头需木镐挖,铁要石镐挖,t是铁,s是石头,m是煤炭"<<endl;
Sleep(1000);
system("cls");
for(int i=60;i>=1;i--){
cout<<"你还剩"<<i<<"次"<<endl;
for(int j=0;j<=9;j++){
for(int h=0;h<=9;h++){
cout<<dt[j][h];
}
cout<<endl;
}
cout<<"wsad是上下左右";
char a;
a=getch();
if(a=='w' and x-1>=0){
if(dt[x-1][y]=='s'){
st++;
}else{
if(dt[x-1][y]=='t'){
if(sg){
tiek++;
}else{
cout<<"需要石镐挖!!!";
}
}else{
mt++;
}
}
x=x-1;
dt[x][y]='x';
dt[x+1][y]=' ';
}
if(a=='s' and x+1<=9){
if(dt[x+1][y]=='s'){
st++;
}else{
if(dt[x+1][y]=='t'){
if(sg){
tiek++;
}else{
cout<<"需要石镐挖!!!";
}
}else{
mt++;
}
}
x=x+1;
dt[x][y]='x';
dt[x-1][y]=' ';
}
if(a=='a' and y-1>=0){
if(dt[x][y-1]=='s'){
st++;
}else{
if(dt[x][y-1]=='t'){
if(sg){
tiek++;
}else{
cout<<"需要石镐挖!!!";
}
}else{
mt++;
}
}
y=y-1;
dt[x][y]='x';
dt[x][y+1]=' ';
}
if(a=='d' and y+1<=9){
if(dt[x][y+1]=='s'){
st++;
}else{
if(dt[x][y+1]=='t'){
if(sg){
tiek++;
}else{
cout<<"需要石镐挖!!!";
}
}else{
mt++;
}
}
y=y+1;
dt[x][y]='x';
dt[x][y-1]=' ';
}
Sleep(100);
system("cls");
}
}
int kd(){
char dt[20][20];
for(int i=0;i<=9;i++){
for(int j=0;j<=9;j++){
srand(time(0));
int wkd=rand()%7+1;
if(wkd==1){
dt[i][j]='s';
}else{
if(wkd==2){
dt[i][j]='t';
}else{
if(wkd==3){
dt[i][j]='h';
}else{
if(wkd==4){
dt[i][j]='j';
}else{
if(wkd==5){
dt[i][j]='t';
}else{
if(wkd==6){
dt[i][j]='y';
}else{
dt[i][j]='o';
}
}
}
}
}
}
system("cls");
cout<<"加载中...(大概6分钟)\n已完成"<<((i*10)+j+1)/4.0<<"%";
Sleep(1000);
}
}
dt[0][0]='x';
int x=0,y=0;
cout<<"x是你,煤炭、石头需木镐挖,铁要石镐挖,t是铁,s是石头,m是煤炭,h是钛合金,j是金子,y是银,o是铜"<<endl;
Sleep(1000);
system("cls");
char k[8]={'s','m','o','t','y','j','h'};
for(int i=100;i>=1;i--){
cout<<"你还剩"<<i<<"次"<<endl;
for(int j=0;j<=9;j++){
for(int h=0;h<=9;h++){
cout<<dt[j][h];
}
cout<<endl;
}
cout<<"wsad是上下左右";
char a;
a=getch();
if(a=='w' and x-1>=0){
for(int i=0;i<=6;i++){
if(k[i]==dt[x-1][y]){
if(i==0){
st++;
}
if(i==1){
mt++;
}
if(i>=2 and i<=3){
if(sg or tg or thjg){
if(i==2){
tong++;
}else{
tiek++;
}
}else{
cout<<"要用石镐以上的镐子!!!";
}
}
if(i>3){
if(tg or thjg){
cout<<"需要铁镐以上的镐子!!!";
}else{
if(i==4){
yin++;
}
if(i==5){
hj++;
}
if(i==6){
thj++;
}
}
}
}
}
}
if(a=='s' and x+1<=20){
for(int i=0;i<=6;i++){
if(k[i]==dt[x+1][y]){
if(i==0){
st++;
}
if(i==1){
mt++;
}
if(i>=2 and i<=3){
if(sg or tg or thjg){
if(i==2){
tong++;
}else{
tiek++;
}
}else{
cout<<"要用石镐以上的镐子!!!";
}
}
if(i>3){
if(tg or thjg){
cout<<"需要铁镐以上的镐子!!!";
}else{
if(i==4){
yin++;
}
if(i==5){
hj++;
}
if(i==6){
thj++;
}
}
}
}
}
}
if(a=='a' and y-1>=0){
for(int i=0;i<=6;i++){
if(k[i]==dt[x][y-1]){
if(i==0){
st++;
}
if(i==1){
mt++;
}
if(i>=2 and i<=3){
if(sg or tg or thjg){
if(i==2){
tong++;
}else{
tiek++;
}
}else{
cout<<"要用石镐以上的镐子!!!";
}
}
if(i>3){
if(tg or thjg){
cout<<"需要铁镐以上的镐子!!!";
}else{
if(i==4){
yin++;
}
if(i==5){
hj++;
}
if(i==6){
thj++;
}
}
}
}
}
}
if(a=='d' and y+1<=20){
for(int i=0;i<=6;i++){
if(k[i]==dt[x][y+1]){
if(i==0){
st++;
}
if(i==1){
mt++;
}
if(i>=2 and i<=3){
if(sg or tg or thjg){
if(i==2){
tong++;
}else{
tiek++;
}
}else{
cout<<"要用石镐以上的镐子!!!";
}
}
if(i>3){
if(tg or thjg){
cout<<"需要铁镐以上的镐子!!!";
}else{
if(i==4){
yin++;
}
if(i==5){
hj++;
}
if(i==6){
thj++;
}
}
}
}
}
}
Sleep(100);
system("cls");
}
return 1;
}
int zd(int dxl,int dgj){
cout<<"你与它展开了搏斗"<<endl;
srand(time(0));
int d1=1+rand()%2;
int hh=1;
if(d1==1){
Sleep(100);
cout<<"它反应灵敏,率先攻击你"<<endl;
while(1){
if(xl<=0){
cout<<"你死了";
return 0;
}
if(dxl<=0){
cout<<"你赢了";
rou+=10;
return 1;
}
cout<<"你的血量:"<<xl<<"\n你的攻击:"<<gj<<endl;
cout<<"它的血量:"<<dxl<<"\n它的攻击:"<<dgj<<endl;
if(hh%2==0){
cout<<"你的回合"<<endl;
Sleep(100);
cout<<"你可以按[1]吃东西"<<endl;
int ll;
cin>>ll;
if(ll==1 and jg>0){
cout<<"你要吃浆果(1)或肉(2)?";
int lll;
cin>>lll;
if(lll==1){
cout<<"\n你要吃多少?";
int llll;
cin>>llll;
if(llll<=jg){
cout<<"\n血量+"<<llll*5<<",饱食度+"<<llll*10;
xl+=llll*5;
bsd+=llll*10;
jg-=llll;
}else{
cout<<"\n你没有这么多,只有"<<jg<<"个,已自动吃完,血量+"<<jg*5<<",饱食度+"<<jg*10;
bsd+=jg*10;
xl+=jg*5;
jg=0;
}
}else{
cout<<"\n你要吃多少?";
int llll;
cin>>llll;
if(llll<=sr){
cout<<"\n血量+"<<llll*10<<",饱食度+"<<llll*20;
xl+=llll*10;
bsd+=llll*20;
sr-=llll;
}else{
cout<<"\n你没有这么多,只有"<<sr<<"个,已自动吃完,血量+"<<sr*10<<",饱食度+"<<sr*20;
bsd+=sr*20;
xl+=sr*10;
sr=0;
}
}
}
srand(time(0));
int sb=1+rand()%2;
if(sb==1){
cout<<"你对它造成了"<<gj<<"点伤害";
Sleep(1000);
system("cls");
dxl-=gj;
}else{
cout<<"它躲开了攻击";
Sleep(1000);
system("cls");
}
}else{
cout<<"它的回合"<<endl;
Sleep(100);
srand(time(0));
int dsb=1+rand()%2;
if(dsb==1){
cout<<"它对你造成了"<<dgj<<"点伤害";
Sleep(1000);
system("cls");
xl-=dgj;
}else{
cout<<"你躲开了它的攻击";
Sleep(1000);
system("cls");
}
}
hh++;
}
}else{
Sleep(100);
cout<<"你反应迅速,率先攻击"<<endl;
while(1){
if(xl<=0){
cout<<"你死了";
return 0;
}
if(dxl<=0){
cout<<"你赢了";
rou+=10;
return 1;
}
cout<<"你的血量:"<<xl<<"\n你的攻击:"<<gj<<endl;
cout<<"它的血量:"<<dxl<<"\n它的攻击:"<<dgj<<endl;
if(hh%2==1){
cout<<"你的回合"<<endl;
Sleep(100);
cout<<"你可以按[1]吃东西"<<endl;
int ll;
cin>>ll;
if(ll==1){
cout<<"你要吃多少浆果?";
int lll;
cin>>lll;
if(lll>jg){
cout<<"你没有那么多,只有"<<jg<<"个,已自动吃完\n";
xl+=jg*5;
bsd+=jg*10;
jg=0;
}else{
jg-=lll;
xl+=lll*5;
bsd+=lll*10;
}
}
srand(time(0));
int sb2=1+rand()%2;
if(sb2==1){
cout<<"你对它造成了"<<gj<<"点伤害";
Sleep(1000);
system("cls");
dxl-=gj;
}else{
cout<<"它躲开了你的攻击";
Sleep(1000);
system("cls");
}
}else{
cout<<"它的回合"<<endl;
Sleep(100);
srand(time(0));
int dsb2=1+rand()%2;
if(dsb2==1){
cout<<"它对你造成了"<<dgj<<"点伤害";
Sleep(1000);
system("cls");
xl-=dgj;
}else{
cout<<"你躲开了它的攻击"<<endl;
Sleep(1000);
system("cls");
}
}
hh++;
}
}
}
int zz(){
int l;
while(1){
int ll;
cout<<"1.木斧:需5木材攻击加5\n2.木稿:需5木材\n3.烤肉:需1木材与一块肉\n4.吃浆果:需一浆果,回复10点饱食度与5点血量\n5.吃熟肉,可回复20点饱食度与10点血量\n6.喝水,消耗100ml淡水,口渴值+10\n7.做石斧,消耗5石头,2木材,攻击+10\n8.石镐,5石头,2木材\n9.铁镐,消耗5铁,1木材\n10.铁斧,消耗5铁,1木材,攻击力+15\n\n0.退出\n";
cin>>l;
if(l==1){
if(mf>=1){
cout<<"你已经有木斧了\n";
}else{
if(mc<5){
cout<<"木材不够5个,快去收集吧";
}else{
mc-=5;
gj+=5;
mf+=1;
}
}
}
if(l==0){
break;
}
if(l==2){
if(mg>=1){
cout<<"你已经有木镐了\n";
}else{
if(mc<5){
cout<<"木材不够5个,快去收集吧";
}else{
mc-=5;
mg+=1;
}
}
}
if(l==3){
cout<<"要几个呢?\n";
cin>>ll;
if(ll<=mc and ll<=rou){
mc-=ll;
rou-=ll;
sr+=ll;
}else{
if(ll>mc){
cout<<"没有这么多木材啦!\n";
}
if(ll>rou){
cout<<"没有这么多肉啦!\n";
}
}
}
if(l==4){
cout<<"你要吃几个?";
cin>>ll;
if(ll<=jg){
xl+=ll*5;
bsd+=ll*10;
jg-=ll;
}else{
cout<<"没有那么多浆果啦!\n";
}
}
if(l==5){
cout<<"你要吃几块?\n";
cin>>ll;
if(ll<=sr){
sr-=ll;
bsd+=20*ll;
xl+=10*ll;
}else{
cout<<"没有那么多熟肉啦!\n";
}
}
if(l==6){
cout<<"你要喝多少毫升水?(请输入整百数)\n";
cin>>ll;
if(ll<=ds){
ds-=ll;
kkz+=(ll*10)/100;
}else{
cout<<"没水啦!\n";
}
}
if(l==7){
if(sf){
cout<<"你已经有石斧啦!\n";
}else{
if(st<5 or mc<2){
if(st<5){
cout<<"没石头啦!\n";
}
if(mc<2){
cout<<"没木材啦!\n";
}
}else{
st-=5;
mc-=2;
sf+=1;
}
}
}
if(l==7){
if(sg){
cout<<"你已经有石镐啦!\n";
}else{
if(st<5 or mc<2){
if(st<5){
cout<<"没石头啦!\n";
}
if(mc<2){
cout<<"没木材啦!\n";
}
}else{
st-=5;
mc-=2;
sg+=1;
}
}
}
cout<<"状态:\n血量"<<xl<<"\n饱食度:"<<bsd<<"\n饮水值:"<<kkz<<"\n攻击力\n"<<gj<<endl;
cout<<"物质:\n木材:"<<mc<<"\n浆果:"<<jg<<"\n肉:"<<rou<<"\n水"<<ds<<"\n草:"<<cao<<"\n树脂:"<<sz<<"\n石头:"<<st<<"\n铁矿"<<tk<<"\n铁"<<tiek<<"\n煤炭"<<mt<<"\n铜"<<tong<<"\n银"<<yin<<"\n黄金"<<hj<<"\n钛合金"<<thj;
Sleep(2500);
system("cls");
}
}
int cy(){
cout<<"你可以探险5次,请确保血量充足"<<endl;
for(int i=1;i<=5;i++){
srand(time(0));
int cyd=1+rand()%100;
if(cyd>=1 and cyd<=50){
cout<<"你遇到了泉水,如果你有容器的话,你可以获得 淡水100ml"<<endl;
if(rq>=1){
rq--;
ds+=100;
}
srand(time(0));
int cyd1=1+rand()%2;
if(cyd1==1){
cout<<"你运气不错,有一条鱼在水里,你获得肉3块"<<endl;
rou+=3;
}
}
if(cyd>=51 and cyd<=80){
cout<<"你正走在草原上,突然一只兔子跳出来了,你如果追它,需耗费0~20饱食度,有50%概率捉到,可能获得2~5块肉,按[1]捉\n";
int a;
cin>>a;
if(a==1){
srand(time(0));
int cyd=1+rand()%2;
if(cyd==1){
srand(time(0));
int cyrou=rand()%5+2;
cout<<"你捉到了它,肉+"<<cyrou<<"块\n";
rou+=cyrou;
srand(time(0));
int cyb=0+rand()%20;
bsd-=cyb;
}else{
srand(time(0));
int cyb=rand()%20;
cout<<"你没捉到它,你反而消耗了"<<cyb<<"点饱食度\n";
bsd-=cyb;
}
}
}
if(cyd>=81 and cyd <=95){
cout<<"你遇见了狼!";
cout<<endl;
if(zd(50,10)==0){
return 0;
}
}
if(cyd>=96 and cyd<=100 and pd==1){
cout<<"你发现了山,解锁地图:山\n";
pd++;
}
if(cyd>=96 and cyd<=100 and pd>=2){
cout<<"你遇见了狼!\n";
if(zd(50,10)==0){
return 0;
}
}
cout<<"状态:\n血量"<<xl<<"\n饱食度:"<<bsd<<"\n饮水值:"<<kkz<<"\n攻击力"<<gj<<endl;
Sleep(2500);
system("cls");
}
return 1;
}
int san(){
cout<<"你可以探险5次,请谨慎选择跳过或收集,注:野兽或怪物无法跳过,请尽量保证血量充足"<<endl;
for(int i=1;i<=5;i++){
srand(time(0));
int sd=1+rand()%10;
if(sd>=1 and sd<=50){
cout<<"你遇见了泉水,如果你有容器的话,你可以获得300ml淡水"<<endl;
if(rq){
ds+=3;
}
}
if(sd>=51 and sd<=80){
cout<<"你找到了一座疑似有铁矿与煤矿的矿脉,你如果有镐子的话,你可以消耗剩下的次数来挖,按[1]。注:是疑似有铁矿"<<endl;
int a;
cin>>a;
if(a==1 and mg>=1 or sg>=1){
wks();
return 1;
}
}
if(sd>=81 and sd<=90){
cout<<"一只雪狐跳了出来"<<endl;
if(zd(60,15)){
rou+=5;
}else{
return 0;
}
}
if(sd>=91 and sd<=100 and pd==3){
cout<<"解锁地图矿洞";
pd++;
}
}
return 1;
}
int sl(int jl){
cout<<"你可以探险10次,请谨慎选择跳过或收集,注:野兽或怪物无法跳过,请尽量保证自己血量充足"<<endl;
Sleep(5000);
system("cls");
for(int i=1;i<=10;i++){
srand(time(0));
int dp=1+rand()%100;
if(dp>=1 and dp<=50){
cout<<"你运气不错遇到了树,如果有木斧,需消耗2饱食度;如果有石斧,需消耗1饱食度;否则消耗5饱食度;可获得木材1~10个、树脂1~3个。注:树脂要容器收集"<<endl<<"目前饱食度:"<<bsd;
cout<<"\n1.采摘\n2.离去";
int a;
cin>>a;
if(a==1){
if(sf){
bsd=bsd-1;
srand(time(0));
int ms=1+rand()%10;
mc+=ms;
}else{
if(mf){
bsd=bsd-2;
srand(time(0));
int ms=1+rand()%10;
mc+=ms;
}else{
bsd=bsd-5;
srand(time(0));
int ms=1+rand()%10;
mc+=ms;
}
}
if(rq){
srand(time(0));
int zs=1+rand()%3;
sz+=zs;
}
cout<<"目前木材:"<<mc<<endl;
}
}
if(dp>=51 and dp<=80){
cout<<"你运气不错,遇见了灌木丛,里面可能有浆果1~30,石头0~5,草1~10"<<endl;
cout<<"1.采摘\n2.离去"<<endl;
int a;
cin>>a;
if(a==1){
srand(time(0));
int pgm=1+rand()%30;
srand(time(0));
int pst=rand()%6;
srand(time(0));
int pc=1+rand()%10;
cout<<"你获得了浆果"<<pgm<<"个,石头"<<pst<<"个,草"<<pc<<"个,血量-1,饱食度-2"<<endl;
jg+=pgm;
st+=pst;
cao+=pc;
xl--;
bsd-=2;
}
}
if(dp>=81 and dp<=85){
cout<<"你遇见了狼!它的血量是50,攻击力10";
if(zd(50,10)==0){
return 0;
}
}
if(dp>=86 and dp<=100 and pd==0){
cout<<"你遇见了草原,解锁地图:草原";pd++;
}
if(dp>=86 and dp<=100 and pd>0){
cout<<"你捡到了一瓶空瓶子,是谁留下的呢?";
rq++;
}
cout<<"状态:\n血量"<<xl<<"\n饱食度:"<<bsd<<"\n饮水值:"<<kkz<<"\n攻击力"<<gj<<endl;
Sleep(2500);
system("cls");
}
return 1;
}
int mx(){
int jl=jlsx;
cout<<"新的一天来了,今天是第"<<t<<"天。"<<endl;
cout<<"请问你要去:"<<endl;
cout<<"0.在家呆着"<<endl;
for(int i=0;i<=pd;i++){
cout<<i+1<<"."<<m[i]<<endl;
}
int k;
cin>>k;
if(k==0){
zz();
}
if(k==1 and k<=pd+1){
if(sl(jl)==0){
return 0;
}
}
if(k==2 and k<=pd+1){
if(cy()==0){
return 0;
}
}
if(k==3 and k<=pd+1){
if(san()==0){
return 0;
}
}
if(k==4 and k<=pd+1){
if(kd()==0){
return 0;
}
}
if(k==5 and k<=pd+1){
if(haian()==0){
return 0;
}
}
if(bsd<=30){
cout<<"你饿了"<<endl;
xl=xl-5;
}
if(kkz<=30){
cout<<"你渴了"<<endl;
xl=xl-5;
}
if(xl<=0){
cout<<"你死了...";
return 0;
}
bsd=bsd-5;
kkz=kkz-5;
cout<<"物质:\n木材:"<<mc<<"\n浆果:"<<jg<<"\n肉:"<<rou<<"\n水"<<ds<<"\n草:"<<cao<<"\n树脂:"<<sz<<"\n石头:"<<st<<"\n铁矿"<<tk<<"\n铁"<<tiek<<"\n煤炭"<<mt<<"\n铜"<<tong<<"\n银"<<yin<<"\n黄金"<<hj<<"\n钛合金"<<thj<<"\n沙子"<<sha<<"\n木斧"<<mf<<"\n木镐"<<mg<<"\n石斧"<<sf<<"\n石镐"<<sg<<"\n铁镐"<<tg<<"\n铁斧"<<tf<<"合金镐"<<thjg;
t++;
cout<<"\n状态:\n血量"<<xl<<"\n饱食度:"<<bsd<<"\n饮水值:"<<kkz<<"\n攻击力"<<gj<<endl;
Sleep(5000);
cout<<"是否吃东西或做东西?是按[1]";
int y;
cin>>y;
if(y==1){
zz();
}
if(t==100){
cout<<"你活下来了...";
return 0;
}else{
system("cls");
return mx();
}
}
int main(){
cout<<"欢迎来到勇者之路"<<endl;
Sleep(100);
for(int i=1;i<=3;i++){
cout<<"注册中";
for(int j=1;j<=3;j++){
cout<<".";
Sleep(500);
}
system("cls");
cout<<"欢迎来到勇者之路"<<endl;
}
cout<<"请输入姓名,你的名字是:";
string s1;
cin>>s1;
cout<<"好的,用户 "<<s1<<" ,开始你的游戏吧!";
Sleep(1000);
system("cls");
cout<<"接下来,就是考验你运气的时刻!"<<endl;
Sleep(1000);
cout<<"按[1]开始,按[0]看规则";
long long k;
cin>>k;
string jq="这是一个未知的大陆...没人知道发生了什么...而你...却来到了这里\n未知的生物!传说中的神!一只腥红的眼睛!一种未知的物质!一个疯狂的想法!一个个疯了的人!它!它!是它来了!!!";
if(k==1){
for(int i=0;i<=jq.size()-1;i++){
cout<<jq[i];
Sleep(50);
}
system("cls");
mx();
}else{
if(k==0){
system("cls");
cout<<"滚滚滚!!!";
Sleep(500);
system("start https://m.bilibili.com/video/BV1Ti4y1f7td/");
}else{
cout<<"好好好,这么玩是吧,滚!!!";
Sleep(500);
system("start https://m.bilibili.com/video/BV1Ti4y1f7td/");
}
}
}
}