ImageVerifierCode 换一换
格式:DOCX , 页数:20 ,大小:18.30KB ,
资源ID:21296071      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/21296071.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(一个俄罗斯方块的源代码Word文档下载推荐.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

一个俄罗斯方块的源代码Word文档下载推荐.docx

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