精品文档---下载后可任意编辑本论文着眼于 J2ME 技术的应用,开发一款可商用的手机游戏程序——坦克大战。本程序的界面和运作方式继承于日本任天堂公司在 20 世纪 80 年代开发的 Battle City 游戏,将老少皆宜的经典作品移植到手机上来,为更流行的硬件平台提供应用软件。本游戏中设计的主要讨论的内容:敌我双方的坦克以及子弹均以图片方式显示,并且添加游戏包含河、墙、草等环境元素。使用多线程来控制坦克的动作同时使用缓冲技术来减少游戏过程中屏幕的闪动率,游戏的难度会随杀死敌人数量的增加而自动提高。敌人中包含特别坦克,杀死后会随机出现奖励物品,我方坦克是有生命值控制的,共三条命。本游戏采纳版本升级的方式逐步完善游戏功能。本游戏中包括游戏主窗口程序模块,坦克类模块,子弹模块,河流模块,墙壁模块,及容纳这些物体的父类容器模块,奖励模块,爆炸显示模块,配置读取模块,这些模块之间相互联系。关键词 多线程双缓冲技术容器AbstractThis paper focuses on the application of J2ME technology, developed a commercial mobile phone games -- tank war. The program interface and operation mode of inheritance in the Nintendo Co of Japan in the nineteen eighties developed Battle City game, the ages of classics ported to mobile phone, for more popular hardware platform to provide application software.The main research content of the game design:the bullets between us and the enemy displayed in picture, and the game contains river, wall, grass and other environmental elements. The use of multiple threads to control the tank action, at the same time using buffer technology to reduce the course of the game screen flicker rate.The difficulty of the game will raise automatically with the increase of the number of the killed enemy.The enemy has special tanks,and it will randomly appear rewards after killing enemys,and our tanks has the life value control. The game uses the method of version upgrading to perfect game features gradually.The game includes a mai...