资源描述:
《毕业设计(论文)-俄罗斯方块的Java实现》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、SHANDONGUNIVERSITYOFTECHNOLOGY毕业设计说明书俄罗斯方块的Java实现学院:理学院专业:信息与计算科学学生姓名:学号:指导教师:2012年6月摘要在现今电子信息高速发展的时代,电子游戏已经深入人们的口常生活,俄罗斯方块就是电子游戏中老幼皆宜的一款小游戏。它由俄罗斯人阿列克谢•帕基特诺夫发明,故得此名,由于上手简单、玩家众多,从而家喻户晓,风靡世界。俄罗斯方块的实现由四块正方形的色块组成,然后存储在一个数组的四个元素中,计算机随机产生不同七种类型的方块,根据计算机时钟控制它在一定的时间不停的产生,用户根据键盘的四个方向键控制
2、翻转、向左、向右和向下操作,(控制键的实现是由键盘的方向键的事件处理实现)。然后程序根据这七种方块堆叠成各种不同的模型。论文描述了游戏的历史,开发此游戏的环境,游戏开发的意义。遵循软件工程的知识,从软件问题定义开始,接着进行可行性研究、需求分析、概要设计、详细设计,最后对软件进行了测试,整个开发过程贯穿软件工程的知识体系。此次设计在MicrosoftWindowsXP系统卜,以Java为开发语言,在eclipse开发平台上进行游戏的设计与实践。关键词:俄罗斯方块、算法、数组AbstractInthecurrenteraofrapiddevelopme
3、ntofelectronicinformation,electronicgameshasbeendeeplyPeople'sDailylife,Russiansquareisyoungandoldcomputergamesallappropriateofalittlegame・ItconsistsofRussianalex•palmerjeterpanovinvention,sothename,becausetosimple,enjoyedbyyoungandold,thuswidelyknown,hasswepttheworld.Therealiz
4、ationoftheRussiansquarebyfoursquareofcolorpiece,andthenstoredinanarrayofthefourelements,computerrandomgenerationdifferentseventypesofsquare,accordingtothecomputerclockcontrolitincertaintimekeepproduce,usersaccordingtothekeyboardfourthedirectionkeycontrolflip,left,rightanddownop
5、erations,(controlofthekeyistoberealizedbythekeyboarddirectionkeyeventhandlingrealize).Thenaccordingtothesevensquareprogramarestackedintoadifferentmodel.Thepaperdescribesthehistory,thedevelopmentofthegameenvironment,themeaningofgamedevelopment.Followthesoftwareengineeringknowled
6、ge,fromthesoftwareproblemdefinitionbeginning,thencarryoutafeasibilitystudy,needsanalysis,generaldesign,detaileddesign,finallytosoftwaretest,thewholedevelopmentprocessthroughthesoftwareengineeringknowledgesystem.ThedesigninMicrosoftWindowsXPsystem,toJavafordevelopmentoflanguage,
7、eclipsedevelopmentplatformgamedesignandpractice.Keywords:Russiansquare,algorithm,array摘要1ABSTRACT1I第一章弓I言11.1课题的背景和意义11.2主要的开发技术和工具简介1第二章概要设计32.1游戏需求32.2功能模块划分32.3系统模块结构42.4方块与画布模块设计42.4.1得到方块52.4.2方块的移动62.4.3方块的翻转72・5满行消除102.6升入下一关11第三章详细设计123.1游戏的操作说明及简介123.2方块类的实现133.3控制面板类的
8、具体实现193・4方格类的具体实现203.6游戏主类ErsBlocksGame的实现2436373839第四