俄罗斯方块源码:#include<stdio.h>#include<stdlib.h>#include<windows.h>#include<conio.h>#include<time.h>#include<mmsystem.h>#pragmacomment(lib,"WINMM.LIB")#defineSL28//边框边长#defineLF19//右边框#defineN4structLocation{intx,y,loc;}sqxy[N][N];//方块位置structTemporary{inttemx;inttemy;}Tem[N];//临时存储方块对应值intmap[SL][SL];//数组点阵charmap_col[SL-2][LF-2];//存储方块的颜色intcur_sq[N+1][N];//当前方块储存数组intnex_sq[N+1][N];//下个方块储存数组inttem_sq[N+1][N];//临时方块储存数组voidgotoxy(intx,inty,intcol);//定位坐标函数voidHideCursor();//隐藏光标voidEnter();//初始界面voidDraw_window();//绘制窗口voidLoad_the_game();//加载游戏进度条voidGame_name();//游戏名voidDraw_window();//绘制窗口以及数组阵voidDraw_sq(intsx,intsy,intsq[][N],structLocationp[][N]);//画方块函数voidMove_sq();//移动方块intOther_sq(intsx,intsy,intsq[][N]);//判断是否触碰到已存在的方块voidRand_square(intrsq[][N]);//随机产生方块voidCopy_sq(intsq[][N],inttmp[][N]);//把随机产生的方块对应的值储存到临时数组中voidCopy_map();//把随机产生的方块拷贝到数组点阵中intKeyboad(intsleeptm);//运动函数voidDef_sq();//方块变形voidDraw_next_sq();//画下一个方块intEliminate_sq();//消除满行方块及计算得分voidDate();//日期函数voidBackground_music();//随机背景音乐voidTime();//时间intp=SL-2;intx,y;intscore;intsq_1[N+1][N]={{1,1,1,1},{0,0,0,0},{0,0,0,0},{0,0,0,0},0x0a};intsq_2[N+1][N]={{1,0,0,0},{1,1,1,0},{0,0,0,0},{0,0,0,0},0x0b};intsq_3[N+1][N]={{0,0,1,0},{1,1,1,0},{0,0,0,0},{0,0,0,0},0x0c};intsq_4[N+1][N]={{1,1,0,0},{1,1,0,0},{0,0,0,0},{0,0,0,0},0x0d};intsq_5[N+1][N]={{0,1,1,0},{1,1,0,0},{0,0,0,0},{0,0,0,0},0x0e};intsq_6[N+1][N]={{1,1,0,0},{0,1,1,0},{0,0,0,0},{0,0,0,0},0x06};intsq_7[N+1][N]={{0,1,0,0},{1,1,1,0},{0,0,0,0},{0,0,0,0},0x09};intt=40;voidgotoxy(intx,inty,intcol){staticHANDLEhOut;staticCOORDpos;pos.X=x*2;pos.Y=y;hOut==NULL?(hOut=GetStdHandle(STD_OUTPUT_HANDLE)):hOut;SetConsoleCursorPosition(hOut,pos);SetConsoleTextAttribute(hOut,col);}voidHideCursor()//隐藏光标{CONSOLE_CURSOR_INFOcursor_info={1,0};SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);}voidEnter(){inti;intt=29;gotoxy(0,0,0xfa);for(i=0;i<30;i++){printf("");■Sleep(20);}for(i=1;i<26;i++){gotoxy(29,i,0xfb);printf("");■Sleep(20);}for(i=29;i>0;i--){gotoxy(i,26,0xfc);printf("");■Sleep(20);}for(i=26;i>0;i--){gotoxy(0,i,0xfd);printf("");■Sleep(20);}Game_name();}voidLoad_the_game(){inti;gotoxy(1,18,0x0f);printf("");╔═════════════════════════╗gotoxy(1,19,0x0f);printf("");║║gotoxy(1,20,0x0f);printf("");╚═════════════════════════╝for(i=2;i<=26;i++){gotoxy(i,19,0x09);printf("");█gotoxy(15,21,0x0f);printf("正在拼了命的为您加载%d%%",4*(i-1));gotoxy(20,23,0x0f);printf("Waiting");Sleep(50);printf(".");Sleep(50);printf(".");Sleep(50);printf(".");Sleep(50);gotoxy(24,23,0x00);printf("");}}voidGame_name(){charstr;intk=0;gotoxy(2,5,0x0e);printf("□□□□□□□□□□□□□□□□□□");Sleep(200);gotoxy(2,6,0x0e);printf("□□□□□□□");Sleep(200);gotoxy(2,7,0x0e);printf("□□□□□□□□□□□");Sleep(200);gotoxy(2,8,0x0e);printf("□□□□□□□");Sleep(200);gotoxy(2,9,0x0e);printf("□□□□□□□□□□□□□");Sleep(200);gotoxy(12,12,0x0f);printf("俄罗斯方块");while(!kbhit()){switch(k){case1:gotoxy(10,15,0x0a);printf("请按Enter键进入游戏");break;case2:gotoxy(10,15,0x0b);printf("请按Enter键进入游戏");break;c...