基于JAVA的坦克大战设计和实现-代码.doc

     JISHOU UNIVERSITY 本科生毕业设计 题 目: 基于JAVA的坦克大战设计与实现 作 者: 学 号: 所属学院: 专业年级: 指导教师: 职 称: 完成时间: 2012年5月7日 吉首大学 基于JAVA的坦克大战设计与实现 摘 要 J2SE是近年来随着各种不同技术的发展,尤其是编程语言飞速发展而诞生的一项新的开发语言。随着信息技术的飞速发展,计算机的使用也日渐普及,本文从实际应用出发,向大家介绍坦克大战游戏的设计与实现。本文所介绍的游戏是JAVA平台,用Eclipse开发一款休闲类游戏玩家可以java的相关技术及本程序的结构分析和具体功能的实现。 关键词: JAVA平台;游戏;坦克大战;网络对战 The Design and Development of Tank Battle Based on JAVA Platform Abstract J2SE is in recent years with various technical development, especially the rapid development of programming language and the birth of a new development language. With the rapid development of information technology, the use of computers is also becoming increasingly common, in this paper, introduce the Tank Wars game design and implementation. This game is based on the JAVA platform, Eclipse developed a leisure game. Game player can control the tank to defend your base, to obtain small props, annihilating the enemy tanks to win. The paper introduced the game of the design idea and development of game of multithreading, low-level graphics interface use. This paper introduces the tank war history, Java technology and the procedures for structural analysis and specific function of the realization of. Key words: JAVA; Game; Tank battle; Network war 目?录 第一章 绪论 1 1.1 开发背景 1 1.2 国内外研究现状 1 1.3 游戏设计目标 2 第二章 相关技术 2 2.1 开发环境 2 2.2 JAVA语言的特点 2 2.3 关于Eclipse 5 第三章 系统设计 6 3.1 系统可行性分析 6 3.1.1 技术可行性 6 3.1.2 经济可行性 6 3.1.3 操作可行性 6 3.2 系统需求分析 6 3.2.1 单机模式下实现的功能 6 3.2.2 网络对战模式下实现的功能 7 3.3 系统总体设计 7 3.3.1 坦克大战总体功能设计 7 3.3.2 客户端TankClient 设计 7 3.3.3 坦克类设计 8 3.3.4 子弹类设计 9 3.3.5 地图类设计 9 3.3.6 爆炸类设计 10 3.3.7 加载声音和图片类设计 10 3.3.8 网络对战模式设计 10 第四章 系统详细设计与现实 11 4.1 系统类的介绍 11 4.2 单机模式 12 4.2.1 窗口创建 12 4.2.2 坦克的创建与移动 14 4.2.3 子弹的创建与飞行 17 4.2.4 敌人坦克的创建与AI 18 4.2.5 将敌人坦克击毙 20 4.2.6 击毙坦克时产生爆炸 21 4.2.7 加载地形 22 4.2.8 消除图片的重叠 25 4.2.9 加入小道具 26 4.2.10 加入声音 28 4.2.11 单机模式下的补充与修改 29 4.3 网络对战模式 30 4.3.1 服务端的建立 30 4.3.2 客户端的建立 32 4.3.3 定义消息发送的格式 35 4.3.4 网络模式下的补充与修改 36 第五章 软件测试 37 5

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档