1、0,0,0,0,1,1,1,0,0,1,0,0,0,0,0,0, 0,1,0,0,1,1,0,0,0,1,0,0,0,0,0,0, 1,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0, 0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0, 0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0, 0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0, 1,0,0,0,1,0,0,0,1,1,0,0,0,0,0,0, 0,0,0,0,1,1,1,0,1,0,0,0,0,0,0,0, 1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0, 0,0
2、,0,0,0,0,1,0,1,1,1,0,0,0,0,0, 0,1,0,0,0,1,0,0,1,1,0,0,0,0,0,0, 0,0,0,0,1,0,0,0,1,1,1,0,0,0,0,0, 1,1,0,0,1,0,0,0,1,0,0,0,0,0,0,0, 0,0,0,0,1,1,1,0,0,0,1,0,0,0,0,0, ;unsigned back2214=1,1,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1;char
3、 ShapeColor7=8,10,11,12,13,14,15;char DigitalShape10=128+119,3,62,31,128+75,128+93,128+125,19,128+127,128+95;char ZodiacBack11=4,6,12,13,11,10,2,3,9,1,8;char ZodiacSoft1814=0,0,0,0,96,0,0,0,0,0,0,0,60,0, 255,248,0,0,96,0,0,0,0,248,0,0,124,0, 255,248,0,0,97,128,0,0,3,248,0,0,192,0, 0,112,0,0,97,128,0
4、,0,7,0,0,1,128,48, 0,224,0,0,96,0,0,0,14,0,0,1,128,48, 1,192,0,0,96,0,0,0,12,0,0,1,128,48, 3,128,120,15,97,128,240,60,12,0,15,15,249,255, 7,0,252,31,225,131,248,127,14,0,31,143,249,255, 7,1,142,48,225,135,24,227,7,240,49,193,128,48, 14,3,134,96,97,142,24,192,3,252,112,193,128,48, 28,3,6,96,97,140,25
5、,192,0,28,96,193,128,48, 56,3,6,96,97,140,25,128,0,6,96,193,128,48, 120,3,6,96,97,140,25,128,0,6,96,193,128,48, 224,1,140,48,225,142,25,195,24,14,49,129,128,48, 255,249,252,63,225,135,252,255,28,28,63,129,128,48, 255,248,240,15,97,131,236,60,15,248,30,1,128,48, 0,0,0,0,0,0,0,0,7,224,0,1,128,0;unsign
6、ed long TotalMark=0;unsigned int Erasered=0,ETimes=0;int Speed=0;int CEr=0;int NumOfLev5=0,0,0,0,0;int TimeDelay10=21,18,17,15,13,11,9,7,5,3;char NewShape2;unsigned PerOnce4;void interrupt ( *oldhandler)(_CPPARGS);void interrupt handler(_CPPARGS) +counter;oldhandler(); void DrawBackground() /setline
7、style void DrawDigital(int x,int y,int a) int i=7;setcolor(DigitalShapeai)&1)*7+4);/printf(%d,(DigitalShapea1);i-;line(x,y+1,x,y+15);line(x+1,y+2,x+1,y+14);line(x+2,y+3,x+2,y+13);line(x,y+17,x,y+31);line(x+1,y+18,x+1,y+30);line(x+2,y+19,x+2,y+29);line(x+1,y,x+16,y);line(x+2,y+1,x+15,y+1);line(x+3,y+
8、2,x+14,y+2);line(x+2,y+15,x+15,y+15);line(x+1,y+16,x+16,y+16);line(x+2,y+17,x+15,y+17);line(x+3,y+30,x+14,y+30);line(x+2,y+31,x+15,y+31);line(x+1,y+32,x+16,y+32);line(x+15,y+3,x+15,y+13);line(x+16,y+2,x+16,y+14);line(x+17,y+1,x+17,y+15);line(x+15,y+19,x+15,y+29);line(x+16,y+18,x+16,y+30);line(x+17,y
9、+17,x+17,y+31);void ArtClear() for(int i=480;i=0;i-=2) setcolor(3);line(0,i-6,639,i-6);setcolor(9);line(0,i-4,639,i-4);setcolor(1);line(0,i-2,639,i-2);setcolor(getbkcolor();line(0,i,639,i);delay(1);for(i=1;i480;i+=2) line(0,i+6,639,i+6);line(0,i+4,639,i+4);line(0,i+2,639,i+2);void end() for(int j=0;
10、jk-) if(ZodiacSoftjik)&1) putpixel(i*8-k+271,j+122,14);delay(10);for(j=17;jj-) putpixel(i*8-k+271,158-j,5);setcolor(15);outtextxy(295,171,PresentArtClear();void DrawShape(int x,int y,int color) /if(x12|y19) / return;setcolor(color);/*line(x4,y4,x4,(y4)+14);line(x4)+14,(x4)+14,(yline(x4)+14,y*16);4)+
11、14,y4,y*16);4)+1,y4,(x4)+1,(y4)+13,(x4)+13);4)+13,(y4)+1);4)+1,x */ for(int i=0;15;4)+i,(x4)+i);setcolor(8);4)+15,(y4)+1,(x4)+15);4)+15,(xsetcolor(color-8);4)+2,(y4)+2,(x4)+12,(y4)+2);4)+12);void DrawNull(int x,int y) 16;void show(int x,int y,int CurrentShape,int Status) int temp;20;for(int j=2;12;i
12、f(backij=1) DrawShape(6+j,4+i,8);else DrawNull(6+j,4+i); /no matter what the status be,I will draw the background for(int l=0;ll+) for(int p=0;pp+) if(l+x11|p+ycontinue;/if(shapeCurrentShapeStatuspl+backy+px+l=1) / DrawShape(3+l+x,3+p+y,8+CurrentShape);/else /coutO;/ DrawNull(3+j,3+i);if(shapeCurren
13、tShapeStatuspl=1) DrawShape(6+l+x,4+p+y,ShapeColorCurrentShape);if(backy+px+l=1) DrawShape(6+l+x,4+p+y,8);void DrawScore() int temp=TotalMark;7;DrawDigital(477-i*20,65,temp%10);temp/=10;temp=Erasered;DrawDigital(491-i*20,111,temp%10);if(Erasered=0) return;5;setfillstyle(1,8);bar(378,163+i*14,508,170
14、+i*14);setfillstyle(1,5);bar(378,163+i*14,378+130*NumOfLevi/ETimes,170+i*14);DrawDigital(466,293,Speed);int CreateNewShape() NewShape1=NewShape0;NewShape0=rand()%7;setfillstyle(1,0);bar(447,240,514,288);if(shapeNewShape00pl=1) DrawShape(28+l,15+p,ShapeColor7);return NewShape1;int Possible(int x,int
15、y,int CurrentShape,int Status) if(shapeCurrentShapeStatusij+backy+ix+j=2) /this line can also write as the following type:/if(shapeCurrentShapeStatusij&backy+ix+j) return 0;return 1;void GoLeft(int&x,int&y,int&CurrentShape,int&Status) if(Possible(x-1,y,CurrentShape,Status) x-;show(x,y,CurrentShape,Status);void GoRight(int&
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1