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

  1. 1、本文档共116页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于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精品文档

相关文档