毕业设计(论文)基于Android平台2048游戏开发教学单位:计算机学院专业名称:软件工程(游戏与数字媒体)学号:2012031201011学生姓名:高振东指导教师:宋喜佳(讲师)指导单位:计算机学院完成时间:2016年4月30日电子科技大学中山学院教务处制发电子科技大学中山学院毕业设计(论文)摘要I基于Android平台2048游戏开发【摘要】在生活节奏不断加快的现代社会,轻松的益智游戏对缓解生活压力调节情绪具有重要的意义。《2048》这款小游戏是一款流行的数字游戏。第一款《2048》小游戏是由GabrieleCirulli首度发布在GitHub上。《2048》是当时基于《1024》和《小三传奇》这两款的玩法而开发的新型数字游戏,而游戏设计初衷是一款益智类的游戏,其特点在于轻松,简单,因此,开发要求做到各项功能要完备、操作要简便、易学易用。现在开发出来的版本有普通版、六边形版、朝代版、3D版、后宫版等等。本文采用JAVA语言开发了2048小游戏,通过Android平台实现了2048的基本运行,本着简单,易于操作的原则和缓解生活压力、降低生活节奏的初衷,游戏中没有繁多的按钮,也不用特别复杂的操作,只需动动手指,即可操纵自如。游戏经过图形界面的处理,以不同的颜色显示不同的数字,并拥有了最高成绩记录,撤销上一步,重置游戏的各项功能。对于游戏的逻辑实现部分进行测试,测试结果正常,目前没有发现异常。但是游戏界面可能有些简单,日后可以通过美化界面来获得更好的游戏体验。【关键词】游戏;益智;数字电子科技大学中山学院毕业设计(论文)AbstractIIBasedontheAndroidplatform2048game【Abstract】Intheacceleratedpaceoflifeinthemodernsociety,easypuzzlegametoeasethepressureoflife.Force,adjustthemoodhasimportantmeaning2048thissmallgameisapopulardigitalgame.Thefirst2048smallgamewasreleasedbyCirulliGitHubonGabrieleforthefirsttime.2048wasbasedon1024andsmallthreeLegendofthetwogameplayandthedevelopmentofanewtypeofdigitalgamesandgamedesignoriginalintentionisapuzzlegame,itscharacteristicsiseasyandsimple,therefore,development.Seekingtoachievethefunctiontocomplete,easytooperate,YiXueyiuse.Nowdevelopedaversionoftheordinaryversion,hexagonalversion,Dynastyversion,3Dversion,thepalaceversion,etc.TheJavalanguagetodevelopthe2048smallgame,2048,thebasicoperationisrealizedthroughtheAndroidplatform,thepurposeofsimpleandeasyoperationprincipleandalleviatethepressureoflife,reducetheoriginalintentionoftherhythmoflife,thegamewithoutdifferentbutton,alsoneednotparticularlycomplexoperations,onlyneedtomoveafinger,youcanmaneuverability.Gamethroughtheprocessingofthegraphicalinterfacetodisplaydifferentcolorswithdifferentnumbers,andhavethehighestscorerecords,undothelaststep,resetthefunctionofthegame.Thelogicofthegametoachievepartofthetest,thetestresultsarenormal,thereisnoabnormal.Butthegameinterfacemaybealittlesimple,inthefuturecanbeusedtobeautifytheinterfacetogetabettergamingexperience.【KeyWords】game;puzzle;numbel电子科技大学中山学院毕业设计(论文)目录III目录第1章绪论.............................................................11.1游戏开发背景....................................................11.2国内外研究现状..................................................11.3游戏开发意义....................................................21.4论文结构........................................................2第2章相关技术和理论基础...............................................32.1Java语言........................................................32.2Android操作系统.................................................42.2.1简介......................................................42.2.2系统架构..................................................52.2.3Android版本...............................................62.3开发平台介绍....................................................62.3.1Eclipse...................................................62.3.2ADT.......................................................72.3.2JDK.......................................................7第3章可行性分析.......................................................83.1可行性研究目的..................................................83.1.1技术可行性................................................83.1.2经济可行性................................................83.1.3操作可行性................................................8第4章游戏设计.........................................................94.1游戏规则....................................................94.2总体设计....................................................94.3详细设计...................................................11第5章游戏测试........................................................185.1测试过程........................................................185.2测试内容........................................................185.3测试结果........................................................22第6章心得体会........................................................23参考文献...............................................................24附录游戏实现代码.....................................................25致谢...................................................................33电子科技大学中山学院毕业设计(论文)图目录IV图目录图2.1JavaLogo...................................................................................................3图2.2AndroidLogo.............................................................................................4图2.3Android系统架构......................................................................................5图4.2.1系统功能.................................................................................................9图4.2.2计分显示...............................................................................................10图4.2.3游戏内容...............................................................................................10图4.2.4游戏菜单...............................................................................................10图4.2.5游戏流程................................................................................................11图4.3.1游戏主界面...........................