基于J2ME的手机网络游戏的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
信息社会中手机及其它无线设备越来越多地走进普通老百姓的工作和生活中,随着信息网络化的不断发展,手机及其它无线设备上网也势在必行。J2ME是Java技术专门为嵌入式系统定制的版本,已经成为当前业界流行的无线应用开发支柱平台。基于J2ME能够方便地利用各种Java技术在手机上实现许多复杂的功能。
     随着手机性能的不断提高,手机休闲娱乐应用的市场发展趋势已经越来越明朗,它将成为继个人电脑休闲娱乐应用之后又一重要业务增长点。当前,手机游戏可以分为三类:嵌入式游戏、短消息游戏和浏览器游戏,其中,浏览器游戏是当前和未来最流行的一种,用户可以使用移动电话的内嵌微型浏览器访问游戏的web站点,在线或下载后离线来玩这类游戏。
     此外,虽然理论上J2ME为开发人员提供了“一次编写,到处运行”的环境,但是由于手机设备间的巨大差异,在针对手机设备的开发过程中,同一款游戏程序很难直接运行在不同的手机设备上。如何有效快捷地将应用程序移植到众多的手机平台上,也是手机游戏开发中面临的主要问题。
     本系统基于J2ME平台开发,实现了手机与手机之间的互动游戏,并在此基础上开发了五子棋游戏。本文的主要工作集中在:
     (1)阐述了手机游戏的研究背景和发展趋势,详细分析了开发手机应用软件所需的关键技术——J2ME的体系结构和此架构中的关键技术,研究了连接受限设备配置的软硬件需求和功能范围以及移动信息设备简表的设备需求和功能。
     (2)在分析手机游戏开发特点的基础上,总结了手机游戏开发及部署的一般流程,设计实现了一款手机网络游戏——五子棋。
     (3)分析研究了手机网络游戏开发中的关键问题:在J2ME技术基础上,设计了手机端和服务器端的网络接口,实现了两者之间的HTTP协议通信,在此基础上实现两个手机端之间的互动。
     (4)分析了现有的移植解决方案,提出了更有效的移植方法,提高了游戏质量和开发的效率。
More and more mobile telephone and other wireless device take part in our work and life. At the same time, it is imperative that mobile telephone and other wireless link with the network. J2ME is a prevalent technology and an important infrastructure development platform of wireless applications. Various Java techniques can be implemented and complex functions can be achieved on mobile devices based on J2ME.
     With the continuous improvement of mobile phone's performance, the development trend of the entertainment market based on the mobile phone is very obvious. The entertainment market based on the cell phone will follow the PC entertainment market to be the new important business increase point. Mobile phone games can be categorized into three branches: embedded games, SMS-based games and browser-based games. The browser-based games are the hottest in the nowadays and tomorrow. Phone users can utilize the embedded micro browser to open game sites, download or play the games online. The creativity of web-based games and exuberance of multimedia contents can be studied deeply.
     Moreover, J2ME provides developers with a write once and run anywhere environment theoretically: However, during the period of developing, the same game can hardly run in a different mobile phone device. This is mainly due to the lack of compatibility between the different brands and different types of mobile platforms. How to port applications to such a large number of mobile platforms efficiently and effectively is also the main problem of the development of games which we have to face.
     This system can generate wireless games for mobile phones, based on J2ME, to realize interactive gaming between mobile phones. This thesis will check the feasibility of this system by giving the example of GOBANG game. This article will focus on the following points:
     (1) First introduced the research background and development trends of mobile phone games, elaborated on the development of application software for mobilephone key technologies-- the main function of J2ME architecture, researched thesoftware and hardware requirement of Connected Limited Device Configuration, researched the equipment and function of Mobile Information Device Profile.
     (2) Analyzed the peculiarity of the mobile phone game development; summarized the development process and the way to deploy mobile phone game, designed and realized a mobile phone network game--GOBANG
     (3) Researched the key issues of the mobile phone network game development, it is to realize HTTP communication protocols between mobile phones and game servers based on J2ME, And further realized the interactive gaming between two mobile phones.
     (4) Analyzed the existing porting solution and then put forward a more effective porting methods to improve the quality of the game and the efficiency of development.
引文
[1]易关国际.中国手机游戏市场年度综合报告.北京:易关国际,2006:1-80.
    [2]中国移动通信联合会http://www.cmca.org.cn/
    [3]林邦杰.Java程序设计入门教程.北京:中国青年出版社,2001:55-96.
    [4]黄聪明.JAVA移动通信程序设计J2ME MIDP.北京:清华大学出版社,2002:110-190.
    [5]The Source for Java Developers http://java.sun.com/http://developers.sun.com/
    [6]Java 2 Micro Edition Produce Web Page http://java.sun.com/javame/index.jsp
    [7]JSR 36:Connected Device Configuration
    [8]JSR 30:J2METM Connected,Limited Device Configuration
    [9]肖炜.J2ME无线设备程序设计.北京:电子工业出版社,2004:227-243.
    [10]JSR 37:Mobile Information Device Profile
    [11]顾晓刚,谢义军,林锐.高质量Java程序设计.北京:电子工业出版社,2003:25-163.
    [12]http://www.itisedu.com/phrase/200605041045465.html
    [13]Dreamtech软件研发组,赵刚,林瑶等译.基于J2ME的无线设备编程源代码解析.北京:电子工业出版社,2002:45-88.
    [14]焦祝军,张威.J2ME无线通信技术应用开发.北京:北京希望电子出版社,2002:12-86.
    [15]卢军.J2ME应用程序开发手机、PDA程序开发捷径.北京:中国铁道出版社,2002:44-57.
    [16]王森.Java手机程序设计入门与应用.北京:中国铁道出版社,2003:13-78.
    [17]胡虚怀,杨志和,李焕.J2ME移动设备程序设计.北京:清华大学出版社,2005:25-79.
    [18]J2ME Wireless Toolkit Product Web Page http://Java.sun.com/products/j2mewtootkit/
    [19]李振鹏,龚剑.J2ME手机游戏开发技术详解.北京:清华大学出版社,2006:15-34.
    [20]J2ME无线平台应用开发http://boluomi123.bokee.com/view.b?diaryld=10140953#
    [21]MIDP2.0中Alert的新特性http://www.ebok.cn/Computer-Development/Java/Java-20435.html
    [22]唐天宾,严毅,陈纬文.基于J2ME的手机游戏开发与实现.广西大学学报(自然科学版),2005,30(1):51-52.
    [23]Mika Tammenkuski.Dealing with A Fragmented Java Lands cap For Mobile Game Development.http://www.gamasutra.com/features/20031217/
    [24]Sun Microsystems,Inc,"J2ME Building Blocks for Mobile Devices",http://www.sun.com,2000.
    [25]Hap-Hua Chu.A seamless application framework.Journal of Systems and Software,2004,69(1):209-226.
    [26]陈林锋,张海翔,陈纯.手机游戏的渲染引擎研究.计算机工程与设计,2002,27(14):2606-2607
    [27]陈晋波.白领就业指南:手机游戏开发实践.北京:电子工业出版社,2005:128-143.
    [28][美]Michael Morison著李强译.J2ME手机游戏编程入门(移动开发系列丛书).北京:人民邮电出版社,2005:130-201.
    [29][美]Bruce Eckel著侯捷译.Java编程思想(第2版),北京:机械工业出版社,2002:65-95.
    [30]Tim Lindholm,Frank Yellin.The Java Virtual Machine Spec f canon Addison-Wesley,1996.28-56.
    [31]Roger Riggs.Programming Wireless Devices with the Java 2 Platform MicroEdition.Addison Wesley.2001:32-39.
    [32]Sun Microsystem,KVM White Paper Java 2 Platform MicroEdition(J2ME)Technology for Creating Mobile Devices Sun,2000:67-89.
    [33]杨仲伟,詹建飞等.J2ME中文教程http://www.j2medev.com
    [34]温小明,吴志刚.基于J2ME的无线游戏开发明.计算机与现代化,2005,1(7):71-73.
    [35]陈小玉.基于J2ME的Java手机游戏开发实例.电脑编程技巧与维护,2005,1(10):67-69.
    [36]杨秋霞.基于J2ME的手机游戏开发简介.计算机时代,2005,1(5):11-13.
    [37]蒙梅.基于J2ME平台的手机网络PRG游戏的开发:[硕士学位论文].北京:北京邮电大学,2006:17-23.
    [38]雷剑.基于J2ME的手机游戏开发关键技术的研究与实现:[硕士学位论文].南昌:江西师范大学,2007:23-29.
    [39]荣钦科技.游戏设计概论.北京:科海电子出版社,2003:85-90.
    [40]周勇杰.基于J2ME的手机在线棋类游戏系统.计算机工程与设计,2005,26(12):3427-3428.
    [41][美]Laura Lemay,Rogers Cadenhead著束闻等译.Java 2编程21天自学通.北京:清华大学出版社,2002:13-186.
    [42]王勇.基于J2ME的手机游戏程序的几个实现技巧.计算机时代,2004,1(4):41-42.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700