直接上代码
#include <bits/stdc++.h>
#include <conio.h>
#include <pthread.h>
#include <windows.h>
using namespace std;
int h,w,cp=0,kp=0,HP=1;
int tq1,tq2;
int p=0;
int tq3,tq4;
int score;//得分
int xn_x,xn_y,b1,b2,b3;
char asd;
int score2=0,score3=0;
void data() {
h=18;
w=48;
xn_x=h/2-3;
xn_y=w/3;
b3=w;
b1=h/4;
b2=h/2;
score=score2;
cp=0;
}
void gotoxy(int x, int y) {
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
COORD pos;
pos.X = x;
pos.Y = y;
SetConsoleCursorPosition(handle, pos);
}
int rgb(int R,int G,int B) {
printf("\033[38;2;%d;%d;%dm",R,G,B);
}
void page() {
int i,j;
char dad;
srand(time(NULL));
if(cp==0) {