您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 项目/工程管理 > 坦克大战毕业论文--正式版
IJava版坦克大战摘要Java是近几十年来随着各种技术的发展,尤其是编程语言飞速发展而诞生的一项新的开发语言。随着信息技术的飞速发展,计算机的使用也日渐普及,各种各样游戏也纷纷出现在我们的视野中。本论文从实际应用出发,向大家介绍坦克大战游戏的设计与实现。该版本的坦克大战是基于Java语言设计开发的,本设计采用面向对象的设计模式,对游戏中的所有物体赋予对象的概念和属性。在开始游戏后,启动客户端,在主程序运行的线程中,画面刷新将以一定的频率采用双缓冲技术对屏幕重绘,实时反映整个游戏的进行状态。用户控制的坦克运行在主线程中,随屏幕刷新的频率而移动。坦克将在游戏开始时进行初始化,然后将坦克绘制在地图的上层。本设计主要实现的功能是让坦克能向八个方向移动,并且打出炮弹,子弹击中敌人坦克,子弹和敌人坦克同时消失,产生爆炸,敌方坦克能智能的移动并且打出炮弹。能够支持单人对战和两人对战两种模式。完成这个项目的主要目的是让自己尽可能全面的掌握Java的基础知识。在整个坦克大战的开发过程中将涉及到Java基本知识的大部分内容,这个自己本身对Java知识的巩固有很好的作用。关键词:Java;坦克;游戏;智能IIJavaversionoftheBattleCityAbstractJavaisanewdevelopmentlanguageinrecentdecadeswiththedevelopmentofvarioustechnologies,especiallytherapiddevelopmentoftheprogramminglanguageandbirth.Withtherapiddevelopmentofinformationtechnology,theuseofcomputershasbecomemorepopular,avarietyofgameshavealsoappearedinourfieldofvision.Fromthepracticalapplicationofthispaper,weintroducethedesignandimplementationofBattleCitygame.ThisversionoftheBattleCityisdesignedanddevelopedbasedontheJavalanguage,thedesignofobject-orienteddesignpatterns,forallobjectsinthegametogivetheconceptofobjectsandattributes.Afterthebeginningofthegame,starttheclient,inthemainthreadsrunning,thescreenwillrefreshcertainfrequencyusingdoublebufferingtechnologytoredrawthescreeninrealtimetoreflectthestateoftheentiregame.User-controlledtanksruninthemainthread,withthescreenrefreshfrequencyandmovement.Tankswillbeinitializedwhenthegamestarts,andthendrawintheuppertankofthemap.Themainfunctionisdesignedsothatthetankcanbemovedtoeightdirections,andshotshells,bulletshittheenemytanks,bulletsandenemytankssimultaneouslydisappear,resultinginanexplosion,enemytankscanmoveandplaysmartbombs.Abletosupportbothsingle-playergameandbattlemodes.Themainobjectiveofthisprojectistocompleteasmuchaspossiblemaketheircomprehensivegraspofthebasicsofjava.BattleCityduringtheentiredevelopmentprocessinmostofthecontentrelatedtothebasicsofjava,javatoconsolidatingtheknowledgeitselfhasaverygoodrole.Keywords:Java;tanks;games;smart目录摘要.....................................................................IAbstract................................................................II1前言..................................................................11.1游戏设计的需求分析...............................................11.1.1国内外电子网络游戏的现状...................................11.1.2本系统设计的目的和意义.....................................21.1.3本系统和其他开发游戏区别...................................21.2开发技术概述....................................................21.2.1Java、C语言、C++三种主流编程技术比较.......................21.3本章小结........................................................32相关技术理论..........................................................42.1系统运行环境.....................................................42.1.1系统运行的软件环境.........................................42.2相关理论.........................................................42.2.1关于Eclipse的介绍.........................................42.2.2J2SE框架...................................................42.2.3Java图形用户界面编程.......................................52.3本章小结.........................................................53系统设计..............................................................63.1系统可行性分析...................................................63.1.1技术可行性.................................................63.1.2经济可行性.................................................63.1.3操作可行性.................................................63.2系统需求分析.....................................................73.2.1在单人模式下实现的功能.....................................73.2.2在两人模式下实现的功能.....................................73.3系统功能设计.....................................................73.3.1坦克大战总体功能设计.......................................73.3.2StartFrame类基本功能分析...................................83.3.3TankClient类和TankClient2类基本功能分析...................93.3.4Tank类基本功能分析........................................123.3.5Missile类基本功能分析.....................................173.3.6Explode类基本功能分析.....................................183.3.7Blood类基本功能分析.......................................193.4本章小结........................................................194系统实现.............................................................204.1游戏主窗体实现..................................................204.2单人游戏的实现..................................................204.3两人游戏功能的实现..............................................234.4本章小结........................................................245总结与展望...........................................................255.1总结...........................................................255.2设计中的不足之处...............................................255.3展望...........................................................25参考文献................................................................26致谢...................................................................27附录...................................................................28外文原文................................................................30中文翻译...............................................................
本文标题:坦克大战毕业论文--正式版
链接地址:https://www.777doc.com/doc-4857756 .html