急求一个简单的用C语言写的俄罗斯方块游戏代码!可以用vc运行!
# include & ltdos.h & gt
# include & ltconio.h & gt
# include & ltgraphics.h & gt
# include & ltstdlib.h & gt
#ifdef __cplusplus
#define __CPPARGS...
#否则
#define __CPPARGS
#endif
#define MINBOXSIZE 15 /*最小方形尺寸*/
#定义背景颜色7 /*背景颜色*/
#定义GX 200
#定义GY 10
#define SJNUM 10000 /*玩家每打到一万级,加一级*/
/*键码*/
#定义VK _左0x4b00
#定义VK _右0x4d00
#定义VK_DOWN 0x5000
#定义VK_UP 0x4800
#定义VK_HOME 0x4700
#定义VK_END 0x4f00
#定义VK空间0x3920
#定义VK_ESC 0x011b
#定义VK _输入0x1c0d
/*定义俄罗斯方块的方向(我定义为四)*/
#定义F_DONG 0
#定义F_NAN 1
#定义F_XI 2
#定义F_BEI 3
#define NEXTCOL 20 /*要打印的下一个框的纵坐标*/
#define NEXTROW 12 /*要绘制的下一个框的水平标签*/
#define MAXROW 14 /*游戏屏幕大小*/
#定义MAXCOL 20
#定义SCCOL 100 /*在游戏屏幕大监视器上的相对位置*/
#定义SCROW 60
int gril[22][16];/*游戏屏幕坐标*/
int col=1,row = 7;/*当前框的水平和垂直坐标*/
int boxfx=0,box GS = 0;/*当前神庙块的形状和方向*/
int nextboxfx=0,nextboxgs=0,maxcol = 22/*下一个方块的形状和方向*/
int minboxcolor=6,nextminboxcolor = 6;
int num = 0;/*游戏分数*/
int dj=0,gamedj[10]={18,16,14,12,10,8,6,4,2,1 };/*游戏等级*/
/*我使用一个3D数组来记录盒子的初始形状和方向*/
int boxstr[7][4][16]={{
{1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0},
{0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0},
{1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0},
{0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0}},
{
{0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0},
{1,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0},
{0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0},
{1,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0}},
{
{1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0},
{1,1,1,0,1,0,0,0,0,