网学网为广大网友收集整理了,手机游戏(堡垒)的设计与开发,希望对大家有所帮助!
包括论文,设计,论文字数:10343,页数:27
摘要
随着手机业务的迅速发展,手机游戏逐渐成为移动增值服务的兴奋点。本毕业设计就着眼于J2ME技术的应用,设计与开发一款探险类手机游戏(堡垒)。
该堡垒游戏是基于J2ME开发的手机RPG游戏,采用midp2.0技术实现了菜单、地图、主角动作及怪物动作和AI等,主要通过精灵间的碰撞检测来触动事件发生。游戏的主流程是玩家利用手机键盘操作主角在堡垒中拾取道具破解迷宫,并且随着关数的增加,游戏的难度也逐渐增加。另外,游戏中还包括了排行榜,声音设置,帮助等各种附加功能。其中充满了趣味性和刺激性,是适合各年龄段的益智冒险类游戏。
本论文介绍了J2ME的相关技术及该堡垒游戏程序的结构分析和具体功能的实现。
关键词:J2ME; 手机游戏; 堡垒
The Design and Development of a Handset Game (Castle)
Abstract
With the rapid development of cell phone business, cell phone games have gradually become the hotspot of mobile value-added services. This graduate design which focuses on J2ME technology designs and develops a handset adventure game (castle).
This castle game is a handset RPG game based on J2ME which mainly examines the demon’s collision to touch off the event. It uses midp2.0 technology to achieve the menu, the map, the hero moves, monster AI etc. The game has included the order list, the sound establishment, helps of function etc. Player operates the lead through the handset to collect the stage prop in the castle to break through the labyrinth. The difficulty of the game will gradually increase along with the increase of stage. Otherwise, this intelligence and risk game is filled with enjoyment and the irritating quality witch suits many ages.
This paper introduces related technology of the J2ME and the structure analysis and the concrete function realization of this castle game procedure.
Key words: J2ME;handset game;castle
目 录
1引 言 1
2 手机游戏的现状和J2ME的概况 1
2.1软件现状 1
2.2 J2ME概况 2
2.2.1 J2ME的由来 2
2.2.2 J2ME的3层体系结构及MIDP简介 2
2.2.3 Configuration和Profiles 3
2.3 J2ME现状和前景 4
2.4 手机游戏业务 5
3 开发环境介绍 5
3.1开发环境 5
3.2 关于SonyEricsson Wireless Tool Kit 5
4手机游戏(堡垒)的开发 5
4.1 游戏的的思路、构想 5
4.1.1 游戏想法的产生 5
4.1.2 对游戏设计的初步认识 6
4.1.3 模块成型阶段 6
4.2 程序的类结构 7
4.3 游戏的流程图 7
4.4 游戏的实现 8
4.4.1 主类GameMIDlet的实现 8
4.4.2 游戏画布MyGame类的实现 13
4.4.3 玩家精灵GamePlayer类的实现 17
4.4.5 SoundEffects类的实现 19
5 程序设计过程中遇到的一些重要问题 19
5.1 关于碰撞的问题 19
5.2 关于游戏画面的显示问题 20
结 论 20
参考文献 20
致 谢 22
声 明 23