基于Android的2048游戏设计内容报告DesignandImplementationof2048MiniGameBasedonAndroidPlatform摘要《2048》小游戏是智能手机上的一款休闲益智游戏,2014年该游戏发布出来后,Android系统上的休闲益智游戏风靡一时,现在,该游戏还推出了关卡模式、朝代模式、六边形模式等。本课题利用Java语言在Android平台上进行开发《2048》这款游戏,并在模拟器和真机上进行运行测试。本人在手机上玩过该游戏,当时便喜欢上了这款游戏,也相信很多人也玩过,后来了解到这款游戏是基于Android平台开发的,所以,本人决定利用自己所学的知识,结合指导老师的帮助,开发一款单机版的《2048》小游戏,该游戏包括记录当前分数,记录最高分数,重新开始,切换模式以及选择菜单等的功能,同时本人还自主创新新模式与设计新模式的通关要求。本文首先通过介绍Java语言的一些基本知识点,而后引申出Android平台的基础及其特点,然后介绍了整个游戏的开发过程,游戏开发完成后,还对游戏的各部分功能模块都进行了不同程度的测试,测试结果一切正常,就目前来说没有发现任何问题。关键字:Java;Android;游戏;益智休闲Abstract2048isakindofleisurepuzzlegameonsmartphones.Afterthegamewasreleasedin2014,therewasaboomofleisurepuzzlegamesonAndroidplatform.Now,thegamehasalsolaunchedthecheckpointmode,dynastymode,hexagonmode,etc.Inthispaper,weusejavalanguagetodevelop2048gamesonAndroidplatform,andrunthemonsimulatorsandrealmachines.I'veplayedthisgameonmymobilephone,andIfellinlovewithitatthattime.Ibelievemanypeoplehavealsoplayedthisgame.Later,IlearnedthatthisgamewasdevelopedbasedonAndroidplatform.Therefore,Idecidedtousemyknowledgeandthehelpofmyinstructortodevelopastand-aloneversionof2048game,whichincludesrecordingthecurrentscoreandthehighestscore,Atthesametime,Ialsoindependentlyinnovatethenewmodeanddesignthecustomsclearancerequirementsofthenewmode.ThispaperfirstintroducessomebasicknowledgepointsofJavalanguage,thenextendsthebasisandcharacteristicsofAndroidplatform,andthenintroducesthedevelopmentprocessofthewholegame.Afterthecompletionofthegamedevelopment,thefunctionalmodulesofeachpartofthegamearetestedtovaryingdegrees,andthetestresultsareallnormal.Atpresent,noproblemshavebeenfound.Keywords:Java;Android;Games;Puzzleleisure目录第一章绪论....................................................................................................11.1课题概述.................................................................................................11.2涉及的技术和理论基础.........................................................................11.2.1Java语言.....................................................................................11.2.2Android操作系统.......................................................................21.3国内外发展现状.....................................................................................21.4本文的结构安排.....................................................................................4第二章开发环境的介绍和搭建....................................................................52.1开发环境的介绍.....................................................................................52.1.1JDK的介绍.................................................................................52.1.2Eclipse的介绍............................................................................52.1.3AndroidSDK的介绍..................................................................52.2开发环境的搭建...............................................................................