登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 计算机类 > 计算机科学与技术 > 正文

基于java的坦克大战游戏的设计与实现

 2023-10-25 09:10  

论文总字数:26477字

摘 要

:伴随着人们对生活品质的要求一天比一天高,为了让人们更好地挖掘各人本身所蕰涵的智慧,游戏由此应运而生,迅速地进入了公众的眼帘,并且在人们的日常生活中扮演着重要角色,已然变得必不可缺。“坦克大战游戏”毫无疑问是每个人童年期间不可缺少的一款经典游戏。通过JAVA游戏开发以及代码设计的剖析,采用Eclipse开发环境实现了坦克大战游戏,通过java的接口类,使得一个类可以实现多个接口,利用套接字Socket来完成client端和server端的连接。服务器端玩家建立主机后,客户端玩家通过输入IP地址后,实现客户端连接访问进入游戏,通过键盘监听来实现操纵坦克,并且完成守卫基地的目的。玩家还可以不断地通过获取随机生成的超级武器来实现提升坦克属性,在玩家摧毁了全部敌方坦克后即可获取胜利,操作便捷简单。

关键词:Java 坦克大战游戏 Socket

Abstract: With people"s demands on the quality of life increasing day by day, in order to enable people to better tap into the wisdom of the people themselves, the game came into being and quickly entered the eyes of the public, And plays an important role in people"s daily life, has become indispensable. The game industry is constantly promoting the upgrading of high-tech technology, which greatly promotes the rapid growth of the economy and the rapid growth of the "fourth industry" economy. Tank Wars is no doubt an indispensable classic game in everyone"s childhood, and we are familiar with it. Through the analysis of java game development and code design, the game uses eclipse development environment to develop tank war game. Through the interface class of java, one class can realize multiple interfaces. Use socket to complete the perfect connection between client and server. Players enter the game by entering the ip address and connect to the game, manipulate the tank through keyboard monitoring, and complete the purpose of guarding the base. Players can also continuously improve tank properties by acquiring randomly generated super weapons. After the player destroys all enemy tanks, it is easy to operate and easy to operate. At the same time, it has a high mass base and popularity, which basically meets the entertainment requirements of all people. The game not only satisfies people"s personalized needs, but also allows players to ease their worries, lose pressure, and release their negative energy perfectly during the game.

Key words: Java Tank war game Socket

目录

1 绪论 3

1.1 选题背景和研究意义 3

1.2 国内外游戏发展现状 3

1.3 课题所涉及的关键技术 4

2 系统可行性分析 4

2.1 技术可行性 4

2.2 经济可行性 5

2.3 法律可行性 5

2.4 操作可行性 5

3 需求分析 5

3.1 需求分析 5

3.2 运行环境需要分析 6

3.3 功能分析 6

4 系统设计 7

4.1 总体功能设计 7

4.2 基础功能设计 8

4.3 服务器与客户端设计 10

5. 系统实现 14

5.1 面板功能实现 14

5.2 坦克功能实现 19

5.3 服务器与客户端的实现 21

6. 游戏测试 23

6.1 测试方法 23

6.2 系统测试 23

6.3 测试分析和小结 26

结论 28

参考文献 29

致谢 30

1 绪论

1.1 选题背景和研究意义

电子游戏(Electronic Games)也称电玩游戏(简称电玩),是在自然游戏行为过程中,随着科技不断发展,由自然媒介转变为电子设备作为媒介的娱乐行为。而电子媒介的差异,大抵可以分成四种:电脑游戏、主机游戏、便携游戏和街机游戏。较为完善的电子游戏大抵在20世纪末出现,彻底地改变了人类娱乐的行为模式和媒介,属于一种新兴的随着科技发展和进步而诞生的文化娱乐活动。电子游戏亦指“电子游戏软件”,两者是密不可分的。

随着时代的进步,电脑与软件技术也越来越来成熟,人们的娱乐要求也在日新月异,对于游戏的要求也越来越高。目前游戏产业可谓飞速发展,每年创造出很可观的财富。“天下攘攘皆为利往”,这些财富引起了各大商家的广泛关注,同时政府也意识到游戏产业的巨大潜力,在积极的支持游戏产业发展的同时,政府在初期可能并未意识到,伴随着游戏产业的发展而产生的种种社会问题。等到这些问题大量的暴露出来以后,再想起解决可能为时已晚。实际上,游戏产业带来的问题,不仅仅在我国出现过,其他国家同样存在这些由游戏产业所引起的社会问题,不过由于人口基数等问题,可能其他国家的问题并不是那么突出。究其主要原因,大部分可能是由于我国游戏厂商缺少发展的眼光,总是一味的借鉴和抄袭别的国家的游戏模式以及游戏内容,缺乏对自身文化的认同感,看到什么题材的游戏类型火就一窝蜂的做什么,未免会陷入竭泽而渔的境地,等到资源被挖尽,再去寻找另外的游戏资源,可能为时已晚。

1.2 国内外游戏发展现状

作为全球发达国家的主要集中地,欧美游戏市场在全球市场中占有极其重要的地位,大部分占据市场主要的游戏厂商都是欧美国家的,究其原因,无非如下几点:

欧美普遍属于发达国家,人均GDP高,可用作游戏娱乐方面的经济较多

剩余内容已隐藏,请支付后下载全文,论文总字数:26477字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图