学号__200532580143__密级________________(黑体5号)武汉大学本科毕业论文J2MEmobilegamingapplicationstoachieveoptimizationoftheResearchandImplementation应用J2ME实现手机游戏优化技术的研究与实现院(系)名称:国际软件学院专业名称:软件工程学生姓名:安虎指导教师:边馥苓教授二○○九年五月BACHELOR'SDEGREETHESISOFWUHANUNIVERSITYJ2MEmobilegamingapplicationstoachieveoptimizationoftheResearchandImplementationCollege:WuhanUniversitySubject:SoftwareEngineeringName:HuAnDirectedby:FuLingBianProfessorMay2009郑重声明本人呈交的学位论文,是在导师的指导下,独立进行研究工作所取得的成果,所有数据、图片资料真实可靠。尽我所知,除文中已经注明引用的内容外,本学位论文的研究成果不包含他人享有著作权的内容。对本论文所涉及的研究工作做出贡献的其他个人和集体,均已在文中以明确的方式标明。本学位论文的知识产权归属于培养单位。本人签名:日期:摘要J2ME平台是一个移植性高、安全性好的手机软件应用开发平台。现在大部分的手机游戏都运行在J2ME的平台上。随着中国移动,联通,电信先后获得3G牌照,手机联网软件的开发必然会越来越热,手机游戏必将迎来新的一轮游戏热潮!伴随着手机游戏的兴起,相应的应用J2ME技术对手机游戏的优化技术也将高速发展。本文的主要目的是研究与实现当前主流的手机优化技术。本文的主要内容是实现当前主流的手机优化技术并对他们的性能做出一个简要的分析。优化主要是从时间和空间两个方面进行考虑,时间方面具体来讲就是以缩短运行时间和响应时间为优化目的;从空间来讲主要是从内存的占用方面进行考虑,以降低内从使用,提高内存使用效率为目的。论文成果:从理论分析优化后的效率和实验所获得的效率分析并预期优化的前景。关键词:代码优化,图形优化,内存优化,研究与实现。ABSTRACTJ2MEplatformisahighportability,security,goodmobilesoftwareapplicationdevelopmentplatform.MostofthemobilegamenowarerunningontheJ2MEplatform.WithChinaMobile,Unicom,Telecomhasaccessto3Glicenses,thedevelopmentofmobileInternetsoftwareisboundtobecomeincreasinglyhot,mobilegameswillusherinanewroundofgamingcraze!Alongwiththeriseofmobilegames,J2MEapplicationofappropriatetechnologytooptimizethemobilephonegamewillbetherapiddevelopmentoftechnology.Themainpurposeofthispaperistostudyandimplementationofthecurrentmainstreammobileoptimizationtechniques.Optimizationmainlyfromtwoaspectsoftimeandspacetoconsiderthespecifictermsoftimeistoshortentherunningtimeandthepurposetooptimizetheresponsetime;fromspaceismainlyoccupiedbyaspectsofmemory,inordertoreducefromtheuseofimprovetheefficiencyofmemoryusageforthepurpose.Themaincontentsofthispaperistoachieveoptimizationofthecurrentmainstreamtechnologyofmobilephonesandtheirperformancetomakeabriefanalysis.Papersresults:Fromthetheoreticalanalysisoftheefficiencyoftheoptimizedandexperimentalanalysisofacquiredandisexpectedtooptimizetheefficiencyofthefuture.Keywords:codeoptimization;graphoptimization;memoryoptimization;ResearchandImplementation目录第一章绪论...............................................................................................................................11.1研究背景...........................................................................................................................11.2.研究意义...........................................................................................................................31.3.手机游戏优化.................................................................................................................41.3.1手机游戏优化的意义...........................................................................................41.3.2优化的风险...........................................................................................................5第二章J2ME技术简介.....................................................................................................................62.1J2ME的制定......................................................................................................................62.2J2ME平台体系结构..........................................................................................................62.3J2ME的配置....................................................................................................................72.3.1CDC简介:........................................................................................................72.3.2CLDC的简介........................................................................................................7第三章优化技术的实现以及性能分析.........................................................................................93.1代码优化...........................................................................................................................93.1.1优化for循环.......................................................................................................93.1.2对于多条件判断的优化.....................................................................................123.2内存优化..........................................................................................................................153.3图形优化..........................................................................................................................203.3.1图片压缩:............................................................................................................213.3.2图片整合:..........................................................................................................21第四章手机游戏优化技术的未来和展望...................................................................................29结论............................................................................................................................................31致谢............................................................................................................................................33参考文献...................................................