#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
using namespace std;
int z[100][2];bool zc[100];int px,py,sm,df,l=0;char c;void color(int a);void gotoxy(int x,int y);void full_screen();int chu();void start();void csh();void drawmap();void drawplayer();void clsplayer();void _cin();void move();void drawz();void clsz();void change(int k);void print_s_d();void swa(int k);
int poss1_x=12,poss1_y=5;int way=0,poss1sm=200;int p1z[50][2];bool p1zc[50];void printposs1();void clsposs1();void moveposs1z();void changeposs1z();void drawp1z();void clsp1z();void po1_p();void p_po1();void prints(int posssm);void poss1();
int poss2_x=10,poss2_y=5,poss2sm=400;int p2z[100][2];bool p2zc[100];void printposs2();void clsposs2();void moveposs2z();void changep2(int k);void drawp2z();void clsp2z();void poss2();void po2_p();void p_po2();
int poss3_x=10,poss3_y=5,poss3sm=400;int p3z[100][2],sorty[100],sortx[100];bool p3zc[100];void quick_sort(int l,int r);void printposs3();void clsposs3();void moveposs3z();void changep3(int k);void drawp3z();void clsp3z();void p3move();void po3_p();void p_po3();void poss3();
int main(){full_screen();csh();start();while(true){system("cls");df=0;csh();if(chu()==0){color(7);drawmap();color(11);drawplayer();print_s_d();l=0;poss1_x=12;poss1_y=5;way=0;poss1sm=200;poss2_x=10;poss2_y=5;poss2sm=400;poss3_x=10;poss3_y=5;poss3sm=400;while(true){_cin();clsz();move();drawz();_sleep(50);l++;if(l%20==0){df++;print_s_d();}if(l==100){poss1();clsp1z();clsposs1();gotoxy(9,58);printf(" ");clsz();color(11);drawplayer();if(sm<=0){color(12);gotoxy(23,21);printf("游 戏 结 束");_sleep(3000);system("cls");break;}df+=20;clsplayer();csh();color(11);drawplayer();swa(1);color(7);drawmap();color(11);drawplayer();print_s_d();l=100;}if(l==200){poss2();clsp2z();clsposs2();gotoxy(9,58);printf(" ");clsz();color(11);drawplayer();if(sm<=0){color(12);gotoxy(23,21);printf("游 戏 结 束");_sleep(3000);system("cls");break;}df+=50;clsplayer();csh();color(11);drawplayer();swa(2);color(7);drawmap();color(11);drawplayer();print_s_d();l=200;}if(l==300){sm+=df;df=0;poss3();clsp3z();clsposs3();gotoxy(9,58);printf(" ");clsz();color(11);drawplayer();if(sm<=0){color(12);gotoxy(23,21);printf("游 戏 结 束");_sleep(3000);system("cls");break;}system("cls");color(14);printf("WIN!\n");system("pause");break;}}}else{color(7);drawmap();color(11);drawplayer();print_s_d();l=0;poss1_x=12;poss1_y=5;way=0;poss1sm=200;poss2_x=10;poss2_y=5;poss2sm=400;poss3_x=10;poss3_y=5;poss3sm=400;while(sm>0){_cin();clsz();move();drawz();_sleep(50);l++;if(l%20==0){df++;print_s_d();}if(l==300){poss3();clsp3z();clsposs3();gotoxy(9,58);printf(" ");if(sm<=0){color(12);gotoxy(23,21);printf("游 戏 结 束");_sleep(3000);system("cls");df+=300;break;}sm+=240;df+=800;color(11);drawplayer();print_s_d();l=0;}else if(l==200){poss2();clsp2z();clsposs2();gotoxy(9,58);printf(" ");if(sm<=0){color(12);gotoxy(23,21);printf("游 戏 结 束");_sleep(3000);system("cls");break;}sm+=120;df+=100;color(11);drawplayer();print_s_d();l=200;}else if(l==100){poss1();clsp1z();clsposs1();gotoxy(9,58);printf(" ");if(sm<=0){color(12);gotoxy(23,21);printf("游 戏 结 束");_sleep(3000);system("cls");break;}sm+=60;df+=20;color(11);drawplayer();print_s_d();l=100;}poss1_x=12;poss1_y=5;way=0;poss1sm=200;poss2_x=10;poss2_y=5;poss2sm=400;poss3_x=10;poss3_y=5;poss3sm=400;}system("cls");color(14);print
-飞机大战-
于 2022-07-31 13:54:43 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)