C语言小游戏俄罗斯方块代码及结果

C语言小游戏俄罗斯方块代码及结果 代码(结过在下面) #include #include #include #include #include

#define BLKCHAR \■\#define NUCHAR \□\#define P_X 8 #define P_Y 5 #define M_X 10 #define M_W 58 #define M_Y 13 #define M_H 11

#define NEXTBLOCK_X 29 #define NEXTBLOCK_Y 10 #define PL_W 12 #define PL_H 20 #define N_S 4 #define N_T 7

#define B_W 4 #define B_H 4

#define INFO_NAME_X 32 #define INFO_NAME_Y 20 #define INFO_LEVEL_X 32 #define INFO_LEVEL_Y 23 #define INFO_MARK_X 32 #define INFO_MARK_Y 26 #define TIME_WAIT 10

#define TIME_FALL 50/curuser.level

#define WIN_CWSIZE \#define FILE_WELCOME \#define FILE_OUTLINE \#define FILE_GAMEOVER \#define FILE_BLOCKS \#define FILE_PROGRESS \#define FILE_HELP \#define DEF_NAME \

struct tpblk {

int x, y; int type; int state; };

struct tpuser {

long level; long mark; char name[30]; }curuser;

int panel[PL_H][PL_W]={0}; int blocks[N_T][N_S][B_H][B_W];

void gotoxy(int x,int y) {

COORD c; c.X = x*2, c.Y = y;

SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), c);

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4