原文地址:俄罗斯方块C语言修改版 - 暑假集训
作者:奔跑的乌龟
#include<stdio.h>
#include<windows.h>
#include<stdlib.h>
#include<time.h>
#include<conio.h>
#define CUBE_R 20 //行
#define CUBE_L 11 //列
#define MOD 28
int cur_x , cur_y , SPEED = 300;
int score , next , cube , cube_color , next_color , map [ CUBE_R + 10 ][ CUBE_L + 10 ], color_map [ CUBE_R + 10 ][ CUBE_L + 10 ];
int GameSpeed = SPEED , system_color , cheat;
int dir [ 28 ][ 4 ][ 2 ] = { //七种方块共28种变形,用x y偏移量表示
};
int color [ 6 ] = { FOREGROUND_RED , FOREGROUND_BLUE , FOREGROUND_GREEN ,
};
void set_Color( int a)
{
}
void gotoxy( int x , int y) //定位输出的函数,照抄即可
{
}
void Move( int x , int y , int id , int state) //移动或者消除方块
{
}
void Clear_Show_next( int x , int y , int id , int state) //显示或者消除下一个方块
{
}
void Add_Cube( int x , int y , int id)
{
}
int Judge( int x , int y , int id) //判断越界或者冲突
{
}
void SHOW_HELP()
{
}
void SHOW_SCORE()
{
}
void SHOW_SPEED()
{
}
void init( int id)
{
}
int Is_GameOver()
{
}
void Relode_Score() //消行加分
{
}
void HideCursor() //消除光标闪烁
{
CONSOLE_CURSOR_INFO cursor_info = { 1 , 0 };
SetConsoleCursorInfo( GetStdHandle( STD_OUTPUT_HANDLE ), & cursor_info);
}
int main()
{
RE:
}