基于Java的飞机大战游戏开发

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

毕业设计(论文)题目基于Java的飞机大战游戏开发I摘要飞机大战是电脑游戏发展史中早期最为经典的游戏之一,无论是在电脑端、移动端、还是游戏机上,都能见到与飞机相关的射击类游戏。不过,最初常见的飞机大战游戏是二维平面上的,并且大多以黑白的形式出现,而如今,在电脑上,不仅机型多,而且五颜六色,3D视觉冲击强。Java自面世后就非常流行,发展迅速,对C++语言形成了有力冲击,Java技术具有卓越的通用性、高效性、平台移植性和安全性,广泛应用于个人PC、数据中心、游戏控制台、科学超级计算机、移动电话和互联网,同时拥有了全球最大的开发者专业社群。在全球云计算和移动互联网的产业环境下,Java更具备了显著优势和广阔前景。因此,本论文主要阐述以面向对象的程序开发语言Java及Eclipse为开发工具的飞机大战游戏。首先简要介绍课题的研究背景、目的及意义,Java的发展历程、当前国内外的发展现状。然后介绍Eclipse平台开发环境及环境搭建,最后讲述了基于Java飞机大战游戏功能的实现。其功能模块如下:主界面模块,Hero模块,Enemy模块,Bullet的类模块,检测子弹与敌机碰撞模块检测,相信其基于Java的飞机大战游戏将会受到更大的欢迎。关键词:飞机大战,游戏,Java,EclipsIIAbstractPlaneWaristheoneofthemostclassicgamesintheearlyhistoryofthedevelopmentofcomputergames.Wecanalwaysseeaircraft-relatedshootinggamewhetheritisonacomputerteminalormobileterminal.However,thefirstcommonplanewargameisatwo-dimensionalplane,andmostlyappearsintheformofblackandwhite,butnow,onthecomputer,notjustmodelsandmorecolorful,3Dstrongvisualimpact.Javaisverypopularwithdeveloperssinceitappeared,formedthepowerfulshockfortherapidevelopmentoftheC++language.Javatechnologyhasexcellentversatility,efficiency,platformportability,andsecurityandiswidelyusedinpersonalPC,datacenter,gameconsoles,scientificsupercomputers,cellphonesandtheInternet.What’smore,Javahastheworld'slargestdeveloperofprofessionalcommunity.IntheglobalcloudcomputingandmobileInternetindustryenvironment,Javahasmoresignificantadvantagesandbroadprospects.Therefore,thispaperdescribesthedevelopmentofobject-orientedprogramminglanguageJavaandEclipsedevelopmenttoolsforaircraftwargame.Firstly,itintroducesresearchbackground,purposeandmeaning,andtelledJavadevelopmentprocessandthecurrentdevelopmentstatusathomeandabroad.ThenintroducestheEclipseplatformdevelopmentenvironmentandbuiltenvironment,andfinallytellstheJava-basedaircraftwargamefeaturesimplementation.Itsfunctionmodulesareasfollows:themaininterfacemodule,Heromodule,Enemymodule,Bulletmodule,andthedetectionmoduledetectingacollisionwiththeenemybullets.WebelievesitsJava-basedaircraftwargamewouldbewelcomedgreater.KeyWords:lightning,Game,Java,EclipseIII目录前言..........................................................................................................................................1第一章开发技术和开发平台..............................................................................................31.1Java语言特性..........................................................................................................31.2Java技术在游戏开发中的应用..............................................................................41.2.1绘图技术........................................................................................................41.2.2游戏开发中的交互........................................................................................41.2.3基于AWT及SWING的游戏界面开发......................................................51.2.4多线程技术的应用........................................................................................51.2.5Java网络技术的应用....................................................................................51.2.6Eclipse............................................................................................................61.3开发平台搭建..........................................................................................................61.3.1安装JDK和Eclipse......................................................................................61.3.2JDK环境变量配置........................................................................................6第二章飞机大战游戏需求分析..........................................................................................82.1用户需求分析..........................................................................................................82.2可行性分析..............................................................................................................82.3总体设计原则..........................................................................................................92.4功能模块设计........................................................................................................102.5游戏难点分析........................................................................................................10第三章飞机大战功能模块实现........................................................................................113.1项目模块介绍........................................................................................................113.2游戏首页的实现....................................................................................................123.2.1界面实现......................................................................................................123.2.2核心代码......................................................................................................133.3游戏战场实现........................................................................................................143.4界面实现................................................................................................................143.5核心代码..........................................................................................

1 / 38
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功