正文
增加 23 行删除 23 行
769 行未改动全部展开770771772773774775776777778104 行未改动全部展开88388488588688788888989089134 行未改动92692792892993093193293393415 行未改动95095195295395495595695795895996096196296387 行未改动10511052105310541055105610571058105925 行未改动10851086108710881089109010911092109319 行未改动111311141115111611171118111911201121112230 行未改动115311541155115611571158115911601161152 行未改动全部展开131413151316131713181319132013211322325 行未改动全部展开1648164916501651165216531654165516562 行未改动165916601661166216631664166516661667279 行未改动全部展开194719481949195019511952195319541955178 行未改动全部展开21342135213621372138213921402141214242 行未改动21852186218721882189219021912192219331 行未改动222522262227222822292230223122322233223422352236223722382239224022412242224340 行未改动2284228522862287228822892290229122922293229422952 行未改动22982299230023012302230323042305230620 行未改动23272328232923302331233223332334233575 行未改动24112412241324142415241624172418241930 行未改动769 行未改动全部展开' ','&','&',' ','&','&',' ',' ','&',' ',' ','&','&',' ','&',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',},{//'' ',' ','"',' ',' ',' ',' ','"',' ',' ',104 行未改动全部展开' ','[',' ',' ',' ',' ','[',' ',' ',' ',' ','[','[','[',' ',},{//\'/',' ',' ',' ',' ','/',' ',' ',' ',' ',' ','/',' ',' ',' ',' ','/',' ',' ',' ',34 行未改动' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','_','_','_','_','_',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',},{//`' ','`',' ',' ',' ',' ',' ','`',' ',' ',15 行未改动int arrow;string bow;string knife;};void SetPos(COORD a)// set cursor{HANDLE out=GetStdHandle(STD_OUTPUT_HANDLE);SetConsoleCursorPosition(out, a);}void SetPos(int i, int j)// set cursor{COORD pos={i, j};SetPos(pos);87 行未改动cout<<lan<<endl;if(lan==1){outside("English selscted");}else if(lan==2){outside("已选择中文");}else{outside("ERROR");exit(0);}25 行未改动outside("道具七:金色的管子。功能:传送你到地图上随机星星商人的位置(25元)");outside("道具八:夹娃娃机。功能:可作为任何道具使用(30元)");outside("道具9:嘘(boo)。功能:从指定玩家那里偷10块钱,再加35元可以从指定玩家那里偷一颗星星(15块钱)");outside("道具十:战斗手套。功能:让你和一个指定的玩家战斗,如果你赢了,你可以偷那个玩家的一半钱(15钱)");outside("按wsad移动。");outside("按1掷骰子");outside("按2使用道具");}else{outside("1 will give you 3 money ");19 行未改动outside("Prop nine:boo.Function:Steal 10 money from the designated player;if you add 35 yuan more, you can steal a star from the designated player(15 money)");outside("Prop ten:combat gloves.Function:let you fight with a designated player,if you win, you can steal half of that player's money(15 money)");outside("Press 1 to roll the dice");outside("Press 2 to use the prop");outside("Press 'w','s','a','d'to move.");}system("pause");return;}void say2(){30 行未改动outside("Bata 1.2.0:Fixed some bugs.");SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);outside("Bata 1.3.0:Update to 2D!Fixed some bugs.");outside("Beta 1.4.0:Added the minigames!Fixed some bugs.");}system("pause");return;}void merchant(int c){152 行未改动全部展开yuan=0;cout<<"player "<<pl<<"'s money has been cleared. X("<<endl<<endl;sleep(1);return;}elsepstar[pl]--;cout<<"player "<<pl<<"'s star -1. XX("<<endl<<endl;if(pstar[pl]<0){pstar[pl]++;325 行未改动全部展开tim=(double)clock()/CLOCKS_PER_SEC;win=fight1_1();winnerbyminigamesfight();}return;}void fight_(int fgame){for(;;){outside("Which player do you want to fight?");2 行未改动if(lan==1){cout<<"You can't fight with you!"<<endl;}else{cout<<"你不能和你自己战斗!"<<endl;}}else{break;}}279 行未改动全部展开case 4:move3+=5;moved(b);break;case 5:move3+=10;moved(b);break;case 6:nowx[j]=(random(100));nowy[j]=(random(100));moved(b);break;case 7:nowx[j]=st[going=(random(30))][0];nowy[j]=st[going][1];prop[j][10]--;prop[j][6]--;moved(b);break;case 8:outside("Prohibited use!");dcm();break;case 9:boo();moved(b);break;case 10:fight_(b);prop[j][10]--;prop[j][9]--;moved(b);break;}}178 行未改动全部展开system("pause");outside("GOGOGO");sleep(1);system("cls");double tim=(double)clock()/CLOCKS_PER_SEC;short ran=-32767;for(;;){char go;SetPos(0,1);for(int i=0;i<9;i++){42 行未改动void minigame(){cout<<"MINI GAME"<<endl;minigame1();}int main(){qnn();int m,m2,ran,ran2,s=0;char mm,mm2,ee;memset(nowx,0,sizeof(nowx));31 行未改动cout<<"----Press three to view update log---"<<endl;}else{cout<<"-------------按1查看帮助-------------"<<endl;cout<<"------------按2不查看帮助------------"<<endl;cout<<"-----------按3查看更新日志-----------"<<endl;}mm2=getch();m2=mm2-48;cout<<m2<<endl;if(lan==2){cout<<" 开始 "<<endl;cout<<"小贴士:按h查看帮助。"<<endl;//h=88}else{cout<<" GO "<<endl;cout<<"Tip:Press 'h' to view help"<<endl;}if(mm2=='#'){do_you_want_to_open_the_debug+=1;}40 行未改动a2[i][j]=a[i][j];a3[i][j]=a[i][j];countbymap++;SetPos(0,0);if(lan==2){cout<<countbymap<<"/10000 加载中..."<<endl;}else{cout<<countbymap<<"/10000 loading..."<<endl;}usleep(10);}}2 行未改动say();}else if(m2==3){say2();}if(lan==2){cout<<"加载中..."<<endl;}else{cout<<"loading..."<<endl;}20 行未改动a3[ran][ran2]=7;}system("cls");for(int i=0;i<100;i++){for(int j=0;j<100;j++){colour(a[i][j]);cout<<a[i][j]<<" ";if(a[i][j]==7){st[s][0]=i;75 行未改动}if(debug){int inputmoney=0;if(debug2=="stop"){game=32767;}if(debug2=="P1's money++"){outside("Input number.");cin>>inputmoney;30 行未改动769 行未改动全部展开770771772773774775776777778104 行未改动全部展开88388488588688788888989089134 行未改动92692792892993093193293393415 行未改动95095195295395495595695795895996096196296387 行未改动10511052105310541055105610571058105925 行未改动10851086108710881089109010911092109319 行未改动111311141115111611171118111911201121112230 行未改动115311541155115611571158115911601161152 行未改动全部展开131413151316131713181319132013211322325 行未改动全部展开1648164916501651165216531654165516562 行未改动165916601661166216631664166516661667279 行未改动全部展开194719481949195019511952195319541955178 行未改动全部展开21342135213621372138213921402141214242 行未改动21852186218721882189219021912192219331 行未改动222522262227222822292230223122322233223422352236223722382239224022412242224340 行未改动2284228522862287228822892290229122922293229422952 行未改动22982299230023012302230323042305230620 行未改动23272328232923302331233223332334233575 行未改动24112412241324142415241624172418241930 行未改动769 行未改动全部展开' ','&','&',' ','&','&',' ',' ','&',' ',' ','&','&',' ','&',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',},{//'' ',' ','"',' ',' ',' ',' ','"',' ',' ',104 行未改动全部展开' ','[',' ',' ',' ',' ','[',' ',' ',' ',' ','[','[','[',' ',},{//\'/',' ',' ',' ',' ','/',' ',' ',' ',' ',' ','/',' ',' ',' ',' ','/',' ',' ',' ',34 行未改动' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','_','_','_','_','_',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',},{//`' ','`',' ',' ',' ',' ',' ','`',' ',' ',15 行未改动int arrow;string bow;string knife;};void SetPos(COORD a)// set cursor{HANDLE out=GetStdHandle(STD_OUTPUT_HANDLE);SetConsoleCursorPosition(out, a);}void SetPos(int i, int j)// set cursor{COORD pos={i, j};SetPos(pos);87 行未改动cout<<lan<<endl;if(lan==1){outside("English selscted");}else if(lan==2){outside("已选择中文");}else{outside("ERROR");exit(0);}25 行未改动outside("道具七:金色的管子。功能:传送你到地图上随机星星商人的位置(25元)");outside("道具八:夹娃娃机。功能:可作为任何道具使用(30元)");outside("道具9:嘘(boo)。功能:从指定玩家那里偷10块钱,再加35元可以从指定玩家那里偷一颗星星(15块钱)");outside("道具十:战斗手套。功能:让你和一个指定的玩家战斗,如果你赢了,你可以偷那个玩家的一半钱(15钱)");outside("按wsad移动。");outside("按1掷骰子");outside("按2使用道具");}else{outside("1 will give you 3 money ");19 行未改动outside("Prop nine:boo.Function:Steal 10 money from the designated player;if you add 35 yuan more, you can steal a star from the designated player(15 money)");outside("Prop ten:combat gloves.Function:let you fight with a designated player,if you win, you can steal half of that player's money(15 money)");outside("Press 1 to roll the dice");outside("Press 2 to use the prop");outside("Press 'w','s','a','d'to move.");}system("pause");return;}void say2(){30 行未改动outside("Bata 1.2.0:Fixed some bugs.");SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);outside("Bata 1.3.0:Update to 2D!Fixed some bugs.");outside("Beta 1.4.0:Added the minigames!Fixed some bugs.");}system("pause");return;}void merchant(int c){152 行未改动全部展开yuan=0;cout<<"player "<<pl<<"'s money has been cleared. X("<<endl<<endl;sleep(1);return;}elsepstar[pl]--;cout<<"player "<<pl<<"'s star -1. XX("<<endl<<endl;if(pstar[pl]<0){pstar[pl]++;325 行未改动全部展开tim=(double)clock()/CLOCKS_PER_SEC;win=fight1_1();winnerbyminigamesfight();}return;}void fight_(int fgame){for(;;){outside("Which player do you want to fight?");2 行未改动if(lan==1){cout<<"You can't fight with you!"<<endl;}else{cout<<"你不能和你自己战斗!"<<endl;}}else{break;}}279 行未改动全部展开case 4:move3+=5;moved(b);break;case 5:move3+=10;moved(b);break;case 6:nowx[j]=(random(100));nowy[j]=(random(100));moved(b);break;case 7:nowx[j]=st[going=(random(30))][0];nowy[j]=st[going][1];prop[j][10]--;prop[j][6]--;moved(b);break;case 8:outside("Prohibited use!");dcm();break;case 9:boo();moved(b);break;case 10:fight_(b);prop[j][10]--;prop[j][9]--;moved(b);break;}}178 行未改动全部展开system("pause");outside("GOGOGO");sleep(1);system("cls");double tim=(double)clock()/CLOCKS_PER_SEC;short ran=-32767;for(;;){char go;SetPos(0,1);for(int i=0;i<9;i++){42 行未改动void minigame(){cout<<"MINI GAME"<<endl;minigame1();}int main(){qnn();int m,m2,ran,ran2,s=0;char mm,mm2,ee;memset(nowx,0,sizeof(nowx));31 行未改动cout<<"----Press three to view update log---"<<endl;}else{cout<<"-------------按1查看帮助-------------"<<endl;cout<<"------------按2不查看帮助------------"<<endl;cout<<"-----------按3查看更新日志-----------"<<endl;}mm2=getch();m2=mm2-48;cout<<m2<<endl;if(lan==2){cout<<" 开始 "<<endl;cout<<"小贴士:按h查看帮助。"<<endl;//h=88}else{cout<<" GO "<<endl;cout<<"Tip:Press 'h' to view help"<<endl;}if(mm2=='#'){do_you_want_to_open_the_debug+=1;}40 行未改动a2[i][j]=a[i][j];a3[i][j]=a[i][j];countbymap++;SetPos(0,0);if(lan==2){cout<<countbymap<<"/10000 加载中..."<<endl;}else{cout<<countbymap<<"/10000 loading..."<<endl;}usleep(10);}}2 行未改动say();}else if(m2==3){say2();}if(lan==2){cout<<"加载中..."<<endl;}else{cout<<"loading..."<<endl;}20 行未改动a3[ran][ran2]=7;}system("cls");for(int i=0;i<100;i++){for(int j=0;j<100;j++){colour(a[i][j]);cout<<a[i][j]<<" ";if(a[i][j]==7){st[s][0]=i;75 行未改动}if(debug){int inputmoney=0;if(debug2=="stop"){game=32767;}if(debug2=="P1's money++"){outside("Input number.");cin>>inputmoney;30 行未改动