基于 Java 的坦克网战游戏的设计和实现学生: 指导老师: 内容摘要:坦克游戏是一款众所周知的休闲游戏,在网络日益发达的今日,局域网游戏为上班一族在工作闲暇之际提供了很好的放松空间。Java 语言简单易学,并且能够在所有的计算机上运行,所以越来越多的程序员用它编写游戏。而本文介绍了基于Java 的坦克网战游戏的设计和实现,主要介绍了相关技术理论,系统总体设计,各功能设计以及游戏的实现。本游戏在 Eclipse 平台上开发调试,分为两大部分,即服务器端和客户端。服务器端建立主机,客户端通过连接主机 IP 地址进行联机,联机成功自动进入游戏。游戏过程中玩家通过键盘来控制坦克,可以进行聊天,选择暂停,游戏结束玩家可以选择重玩,但需要另一玩家同意。关键词:Java 坦克 局域网 EclipseDesign and achievement of network Tanks based on JavaAbstract: Tanks is a well-known casual game. With the increasing development of the Internet, LAN-based game provide a good relax platform for those office workers to spend their leisure time. A growing number of programmer choice to use Java language to program game because this kind of language is easy to learn and it can be operated on all the computers. This article is about the design and achievement of the Tanks which is based on Java ,and it mainly introduces some relevant technological theories, the system integrated design, diverse function design and the game’s achievement. This game is developed and debugged on Eclipse platform, which contains Server-side and Client-side. The Server-side aims at building mainframe, and the Client-side through connecting mainframe’s IP address to load game automatically. Players can control tank through keyboard and chat or suspend while playing the game. They can also choice to restart the game if another player permits.Keywords:Java Tanks network Eclipse目 录前言......................................................................11了解 java..........