当前位置:文档之家› java飞机大战源代码

java飞机大战源代码

java飞机大战源代码
java飞机大战源代码

飞机大战实验报告

飞机大战实验报告 专业:网络工程132班 学号:139074298 姓名:孙仁强 计算机科学与技术学院二零一六年十二月

一、软件运行所需要的软硬件环境 本系统是以Windows系统为操作平台,用Java编程语言来实现本系统所需功能的。本机器的配置如下: 处理器:CORE i7 主频:1.2Hz以上 内存:4G以上 硬盘:HHD 50G 编程语言:Java 开发环境:windows7 开发软件:Eclipse Mars 二、游戏流程 1.用户打开游戏,进入开始菜单。 2.用户点击开始游戏按钮,进入游戏界面; 3.用户通过触屏方式控制玩家飞机上下左右移动,躲避与子弹相撞; 4.游戏失败后,显示本次游戏得分,用的秒数和水平; 5.退出游戏 三、主要代码 1、准备代码设置窗口使用双缓冲使飞机不闪烁 Constant设置窗口大小 package com.ahut.准备代码; publicclass Constant { publicstaticfinalint GAME_WIDTH = 350; publicstaticfinalint GAME_HEIGHT = 600; } package com.ahut.准备代码; import java.awt.Image; import java.awt.image.BufferedImage;

import java.io.IOException; import https://www.doczj.com/doc/4617799062.html,.URL; public class GameUtil { private GameUtil () {} public static Image getImage(String path) { BufferedImage bi = null; try { URL u = GameUtil.class.getClassLoader().getResource(path); bi = javax.imageio.ImageIO.read(u); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return bi; } } package com.ahut.准备代码; import java.awt.Frame; import java.awt.Graphics; import java.awt.Image; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class MyFrame extends Frame{ public void lauchFrame() { setSize(Constant.GAME_WIDTH, Constant.GAME_HEIGHT); setLocation(100, 100); setVisible(true); new PaintThread().start(); addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { System.exit(0); } }); }

程序设计基础之飞机大战说明书

X X大学 程序设计基础课内项目说明书 XXXX年XX月XX日

1.设计目的(小标题黑体五号字) 制作一个简单的飞机大战游戏。 2.设计内容 此飞机大战游戏是一款射击游戏,它随着你的分数增加,而不断改变你的等级,同时等级越高难度就会越大,一旦敌机逃离那么你的分数将会减少,与敌机相撞你的生命值将会减少,按鼠标左键可以连续发射子弹,鼠标移动控制我机移动。 3.本设计所采用的数据结构 使用了两个动态链表,分别储存敌机图片的左上角坐标(X,Y)以及子弹图片的左上角坐标(X,Y),删除子弹与敌机以及敌机与我机的碰撞都是基于图片的左上角坐标(X,Y)来判定。 4.功能模块详细设计 4.1 子弹相关模块 4.1.1详细设计思想 当检测到左键按下时,调用添加子弹的函数并进行传参(鼠标的位置坐标)产生新的子弹;当子弹击中敌机(移动子弹的函数来判断是否击中)后调用删除子弹函数来删除子弹并释放内存;移动子弹函数在中还包括子弹是否出界并删除的函数;游戏结束后把所有的子弹都删掉。 4.1.2 核心代码 //子弹 int bulletvx=0; int bulletvy=-20; int bulletwidth=6; int bullethigh=11; typedef struct Tag_Bullet { int x; int y; struct Tag_Bullet*Next; }bullet,*lbullet; bullet bullethead; lbullet lbhead=&bullethead,lbtail=&bullethead;

lbullet pushbullet(int bx,int by); //添加子弹-返回添加的子弹指针lbullet removebullet(lbullet it); //删除子弹-返回下一个子弹的指针lbullet freebullet(); //删除全部子弹 lbullet movebullet(); //移动子弹 //添加子弹 lbullet pushbullet(int bx,int by) { lbtail=lbtail->Next=(lbullet)malloc(sizeof(bullet)); lbtail->x=bx; lbtail->y=by; lbtail->Next=NULL; return lbtail; } //删除子弹 lbullet removebullet(lbullet It) { lbullet cbullet; for (cbullet=lbhead;cbullet->Next!=NULL;cbullet=cbullet->Next) { if(cbullet->Next==It) { if(It==lbtail)//尾节点单独处理 lbtail=cbullet; cbullet->Next=It->Next; free(It); break; } } return cbullet->Next;

基于JAVA的飞机大战游戏的设计与实现计算机毕业设计论文

基于Java的飞机大战游戏的设计与实现 摘要 飞机大战是电脑游戏发展史中早期最为经典的游戏之一,经常能在掌上游戏机、手机以及电脑上见到这个游戏。不过,以往常见的飞机大战游戏是二维平面上的,并且大多以黑白的形式出现,当然在电脑上可以看到多种颜色的飞机大战。 Java自面世后就非常流行,发展迅速,对C++语言形成了有力冲击。Java 技术具有卓越的通用性、高效性、平台移植性和安全性,广泛应用于个人PC、数据中心、游戏控制台、科学超级计算机、移动电话和互联网,同时拥有全球最大的开发者专业社群。在全球云计算和移动互联网的产业环境下,Java更具备了显著优势和广阔前景。 本游戏是一个基于java的飞机大战游戏,利用Eclipse平台实现经典的飞机大战游戏。游戏主要涉及了游戏状态控制功能、游戏难度的调整、游戏界面绘画功能、玩家游戏控制功能,最终展示了游戏开发的基本开发过程和设计思路。 关键词:飞机大战;游戏;java;Eclipse平台

Design and implementation of airplane wargame based on Java Abstract Lightning is the history of the development of computer games in the early one of the most classic game, often on a handheld game consoles, mobile phone and computer to see this game. However, the previous common lightning game is two-dimensional plane, and mostly in black and white, in the course of the computer can see lightning in color. Since Java is very popular after the launch, the rapid development of the C + + language to form a strong impact. Java technology has excellent versatility, efficiency, platform portability and security, widely used in personal PC, data center, game consoles, scientific supercomputers, cell phones and the Internet, also has the world's largest developer of professional community . In the world of cloud computing and mobile Internet industry environment, Java and more have a significant advantage and broad prospects. This game is a game based on the realization of Java lightning, lightning classic game based on Eclipse platform. The game is mainly involved in the game state control function, the difficulty of the game, the game interface to adjust the drawing function, game player control function, finally shows the basic development process of game development and design ideas. Keywords: lightning; game; Java; Eclipse platform

C语言飞机大战源码

#include #include #include #include #include using namespace std; /*=============== all the structures ===============*/ typedef struct Frame { COORD position[2]; int flag; }Frame; /*=============== all the functions ===============*/ void SetPos(COORD a)// set cursor { HANDLE out=GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleCursorPosition(out, a); } void SetPos(int i, int j)// set cursor { COORD pos={i, j}; SetPos(pos); } void HideCursor() { CONSOLE_CURSOR_INFO cursor_info = {1, 0}; SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursor_info); } //把第y行,[x1, x2) 之间的坐标填充为ch void drawRow(int y, int x1, int x2, char ch) { SetPos(x1,y); for(int i = 0; i <= (x2-x1); i++) cout<

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

摘要 Unity3D是由Unity Technologies开发,可以让玩家轻松创建诸如三维视频游戏、建筑可视化、实时三维动画等类型互动内容的多平台的综合型游戏开发工具,是一个全面整合的专业游戏引擎。Unity的编辑器运行在Windows 和Mac OS X 下,可发布游戏至Windows、Mac、iPhone和Android平台也可以利用Unity web player插件发布网页游戏,支持Mac 和Windows的网页浏览。它的网页播放器也被Mac widgets所支持。 本课题是基于Unity3D的飞机大战游戏开发,利用Unity3D系统和C#语言开发,实现了简单的飞机大战游戏。主要的功能模块如下:提供背景的循环播放模块,提供敌机的孵化器类模块,提供玩家战机的类模块,主界面模块,游戏奖励类模块,包括超级子弹和导弹,游戏控制模块,包括检测子弹与敌机碰撞,检测敌机与玩家战机碰撞木块,游戏的暂停、播放功能,其中玩家战机还添加了一个血条,玩家战机可以被敌机打中四次才死亡,可以让新手更好的试玩游戏,除此以外还为用户提供更加人性化的设计和方便人员的操作流程。 游戏还有很多需要完善和扩充的地方,比如可以做不同的模式,多关卡模式或挑战模式。也可以做成多人模式和小伙伴一起玩,游戏的界面也可以补充的更加完善,包括音乐、设置、帮助和商店等模块。后期还需要更加努力去完善修改自己的游戏 关键词:游戏开发;飞机大战;移动端;单机;碰撞检测;脚本语言

ABSTRACT Unity3D developed by Unity Technologies, allows gamers to easily create such comprehensive three-dimensional video game development tools, games, architectural visualization, real-time three-dimensional animation and other types of multi-platform interactive content, is a fully integrated professional game engine. Unity Editor runs under Windows and Mac OS X, you can publish your game to Windows, Mac, iPhone and Android platform can also use the Unity web player plugin released web games, support for Mac and Windows web browser. Its Web Player Mac widgets are also supported. This paper is based on Unity3D aircraft war game development, utilization Unity3D system and C # language, to achieve a simple airplane war game. The main function modules are as follows: to provide background loop module which provides the aircraft incubator class module offers players fighter class module, the main interface module, the game rewards class modules, including super bullets and missiles, the game control module, comprising detecting bullet collision with the enemy, and the player to detect enemy aircraft collision block, pause the game, the player, in which the player warplanes also added a health bar, the player can be enemy aircraft hit four times before death, allowing novices better demo games, in addition also provides users with the operation process more convenient and user-friendly design staff. Games have a lot to improve and expand the place, for example, can do different mode, multi-level mode or challenge mode. Multiplayer mode and can also be made small partner to play with, the game's interface can also add more sophisticated, including music, Settings, Help, and shops and other modules. Late also need to work harder to revise and improve their game. Keywords:Game Development; Aircraft War; Mobile Terminal; Single; Collision Detection; Scripting Language

【黑马程序员】Python书籍推荐:系统地快速入门Python应该读什么书(1)

【黑马程序员】Python书籍推荐:系统地快速入门Python 应该读什么书(1) 内容简介: Python是一种面向对象、解释性的高级程序语言,它已经被应用在众多领域,包括Web开发、操作系统管理、服务器运维的自动化脚本、科学计算、桌面软件、服务器软件(网络软件)、游戏等方面。 本书以Window平台、系统全面的讲解了Python3的基础知识,其中,第1章主要是带领大家认识Python;第2章主要针对Python的基础语法进行讲解;第3章主要介绍的是Python中的常用语句;第4~5章主要介绍了字符串、列表、元组、字典等类型;第6~7

章讲解了函数的基础和高级知识。第8章讲解了Python中的文件操作;第9章讲解了Python中异常的相关知识;第10章讲解了Python中的模块;第11~12章侧重讲解了面向对象编程思想;第13章围绕着面向对象的编程思想,开发了一个飞机大战的小游戏。 黑马程序员视频库网址:https://www.doczj.com/doc/4617799062.html,(海量热门编程视频、资料免费学习)学习路线图、学习大纲、各阶段知识点、资料网盘免费领取+QQ 3285264708 / 3549664195 适合群体: Python是一种面向对象、解释性的高级程序语言,它已经被应用在众多领域,包括Web开发、操作系统管理、服务器运维的自动化脚本、科学计算、桌面软件、服务器软件(网络软件)、游戏等方面。 本书以Window平台、系统全面的讲解了Python3的基础知识,其中,第1章主要是带领大家认识Python;第2章主要针对Python的基础语法进行讲解;第3章主要介绍的是Python中的常用语句;第4~5章主要介绍了字符串、列表、元组、字典等类型;第6~7章讲解了函数的基础和高级知识。第8章讲解了Python中的文件操作;第9章讲解了Python中异常的相关知识;第10章讲解了Python中的模块;第11~12章侧重讲解了面向对象编程思想;第13章围绕着面向对象的编程思想,开发了一个飞机大战的小游戏。 图书特色: 特色一:全新Python3语法,一步提升Python编程水平 相对于Python2,Python3更加优秀。但考虑到Python3兼容Python2还有一段很长的路要走,本书在重点讲解Python3的同时,在很多地方对比着讲解了Python2,涵盖

控制台飞机大战代码

////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////pos.h #ifndef _POS_ #define _POS_ //节点,表示飞机或子弹 class pos { public: pos(int a = 0,int b = 0):x(a),y(b){} pos(const pos &b) {x=b.x,y=b.y;} public: bool operator==(pos a) const { return x==a.x && y==a.y; } bool operator!=(pos a) const { return x!=a.x || y!=a.y; } pos operator+(pos a) { x += a.x;

y += a.y; return *this; } pos &operator=(pos b) { x=b.x; y=b.y; return *this; } public: int x; int y; }; #endif ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////plane.h #include "pos.h" #include #include using namespace std; //?? #define M 23 extern void gotoXY(pos s); #ifndef _PLANE_ #define _PLANE_ //飞机 class plane { public:

java飞机大战项目总结

java飞机大战项目总结 :大战飞机项目 java 达内飞机大战项目总结java飞机大战项目描述j ava飞机大战答辩ppt 篇一:飞机大战JAVA程序设计报告 中国地质大学长城学院 Java 程序设计 题目基于Java的打飞机游戏设计与实现 系别信息工程系专业计算机科学与技术学生姓名马辉学号041120101 指导教师田玉龙 2015 年6 月18 日 基于Java的打飞机游戏设计与实现 1、软件运行所需要的软硬件环境 本系统是以Windows系统为操作平台,用Java编程语言来实现本系统所需功能的。本机器的配置如下: 处理器:AMD A4 或英特尔同级别处理器主频:1.2Hz以上内存:1G以上硬盘:HHD 50G或更高采用的主要技术和软件编程语言:Java 开发环境:windows7 开发软件:Eclipse 3.7 2、软件开发环境配置 JAVA_HOME = F:\JAVA\jdk PATH = % JAVA_HOME%\bin;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib;

CLASSPATH = %JAVA_HOME%\lib;%JAVA_HOME%\jre\lib; 3、软件功能框图 4、软件所实现的截图 5、主要功能部分的源代码 import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.util.Random; import java.util.Vector; import javax.swing.JOptionPane; import javax.swing.Timer; public class Controller extends KeyAdapter{ public static VectorBang bangs = new VectorBang(); public static VectorEBullet ebullets = new VectorEBullet(); public static VectorPBullet pbullets = new VectorPBullet(); public static VectorEPlane eplanes = new VectorEPlane(); public static PPlane pplane = new PPlane(); private GamePanel gamePanel; private Random random = new Random(); public static int baoZhaNum; public Controller(VectorBang bang,VectorEBullet ebullet,VectorPBullet pbullet, VectorEPlane eplane,PPlane pplane,GamePanel gamePanel) { super(); this.bangs = bang; this.ebullets = ebullet; this.pbullets = pbullet;

c语言飞机大战源代码

#include #include #include #include #define N 35 void print(int [][N]);//输出 void movebul(int [][N]);//子弹移动 void movepla(int [][N]);//敌机移动 void setting();//设置 void menu();//菜单 int scr[22][N]={0},pl=9,width=24,speed=3,density=30,score=0,death=0;//界面,位置,宽度,速度,密度,分数,死亡 main() { menu(); int i=0,j=0,c; scr[21][pl]=1; scr[0][5]=3; while(1) //控制阶段(开始) {if(kbhit())switch(getch()) {case 'a': case 'A': if(pl>0) scr[21][pl]=0,scr[21][--pl]=1;break; case 'd': case 'D': if(pl

飞机大战--毕业论文--初稿

毕业设计(论文) 题目:基于安卓平台的飞机大战游戏 学院:计算机科学学院 专业班级:计算机科学与技术10级2班指导教师:黄国兵职称:高级工程师学生:兵 学号:41009010216

摘要 自从第一台计算机研发以来,计算机行业得到了迅速的发展,成就了很多优秀的企业,例如国外的IBM,微软,GOOGLE,ARM,苹果等,国的腾讯,阿里巴巴,百度等,而引领计算机行业的主要因素除了硬件的支撑外,就数操作系统了,而操作系统从Dos,UNIX,LINUX Windows等PC端正在逐渐向移动端转变如:从Linux 到Android;从Unix到IOS;从Windows到Windows phone,主要还是因为移动端的便携性,轻巧性深受人们的喜爱,就在这样的移动互联网浪潮中,Android系统更是高达移动端操作系统80%的占有率,真可谓前景无限,而在Android平台的应用中游戏业务又占着最大的比例,所以本次选题为基于Android的飞机大战游戏,其主要目的研究移动互联网的发展趋势,对其未来的发展有深刻清晰的认识。 本论文主要阐述以面向对象的程序开发语言Java及Eclipse为开发工具,而基于智能手机Android系统之上的飞机大战游戏。首先简要介绍课题的研究背景、目的及意义,Android的发展历程、当前国外的发展现状。然后介绍了Android 平台开发环境及环境搭建,最后讲述了基于Android飞机大战游戏功能的实现。其功能模块如下:提供敌机的类模块,提供子弹的类模块,主界面模块,天空背景模块,检测子弹与敌机碰撞模块,检测,敌机与我拥有的战机碰撞木块等,除此以外还为用户提供更加人性化的设计和方便人员的操作流程。由于Android 逐渐成为智能手机技术的主导,相信其基于Android的飞机大战游戏将会受到更大的欢迎。 关键字:安卓,游戏,飞行射击,飞机

飞机大战 java 源代码

package com; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Image; import java.awt.Rectangle; import java.awt.event.KeyEvent; import java.io.IOException; import javax.imageio.ImageIO; public class Plane { Image feijiImage = null; int x = 300; int y = 700; int lifeCount=5; public Plane() { try { feijiImage = ImageIO.read(Plane.class.getClassLoader() .getResourceAsStream("images/feiji.png")); } catch (IOException e) { e.printStackTrace(); } } public void draw(Graphics g) { // 画飞机图片 g.drawImage(feijiImage, x, y, null); // 飞机移动 this.move(); // 血条 if(lifeCount>0){ g.setColor(Color.WHITE); g.fillRect(20, 80, 100, 10); g.setColor(Color.red); g.fillRect(20, 80, (100/5)*lifeCount, 10); g.setColor(Color.blue); g.setFont(new Font("幼圆", Font.BOLD, 30)); g.drawString("Score:"+Play01.count, 20, 60); } }

飞机大战java源代码

飞机大战j a v a源代码 Document serial number【KK89K-LLS98YT-SS8CB-SSUT-SST108】

package com; import class Plane { Image feijiImage = null; int x = 300; int y = 700; int lifeCount=5; public Plane() { try { feijiImage = .getResourceAsStream("images/")); } catch (IOException e) { (); } } public void draw(Graphics g) { etResourceAsStream("images/")); } catch (IOException e) {

(); } } public void draw(Graphics g) { etResourceAsStream("images/")); } catch (IOException e) { (); } } int bgY1 = 0; int bgY2 = -600; int fireTime = 0; boolean flag=false; public void draw(Graphics g) { tart(); etResourceAsStream("images/"));

} catch (IOException e) { (); } } public void draw(Graphics g) { etResourceAsStream("images/diji_"+r+".png")); } catch (IOException e) { (); } } public void draw(Graphics g) { etResourceAsStream("images/")); } catch (IOException e) { (); } }

飞机大战需求分析报告

飞机大战 需求分析报告 开发小组:STARS 组长: 组员: 2016.05.24

目录 一、概述 (2) 1.1 项目内容 (2) 1.2 项目开发 (2) 1.3 项目组员 (2) 1.4 组员分工 (3) 1.5 项目进度计划表 (3) 1.6 验收标准 (3) 1.7 项目关键问题 (3) 二、项目产品 (4) 2.1 产品中的角色: (4) 2.2 产品功能需求: (4) 2.2.1 游戏具体功能需求 (4) 2.2.2 用户功能需求 (4) 2.2.3 美工音效需求 (5) 2.2.4 游戏性能需求 (5) 三、游戏流程 (5) 3.0 游戏操作 (6) 3.1 游戏流程 (5) 3.2 游戏流程图 (6)

一、概述 1.1 项目内容 本项目产品名称为“飞机大战”,以Java语言开发,界面简洁流畅,游戏方式简单,玩家易于上手。 1.2 项目开发 以java语言进行项目的编程实现,项目开发环境如下: 开发工具:Eclipse 开发语言:Java 1.3 项目组员

1.4 组员分工 1.5 项目进度计划表 1.6 验收标准 1)游戏可正常运行; 2)实现项目需求说明书的大部分需求; 3)游戏界面友好,易于交互; 4)项目具有较高的安全性和稳定性; 1.7 项目关键问题 1)角色之间的碰撞探测要比较准确; 2)游戏要拥有一定难度,不可过于简单,但又能够吸引用户,不可过于太难;3)游戏界面设计要有自己的风格,以达到吸引用户的效果; 4)游戏的交互性要足够好,使得玩家易于上手; 5)测试的次数要充足,保证游戏的正常运行和安全性。

飞机大战游戏开发开题报告

飞机大战游戏开发开题报告 打飞机小游戏开题报告 毕业设计开题报告 篇二:基于android的飞机游戏开发开题报告 开题报告 (1)研究的目的和意义 Android操作系统最初是由 Andy Rubin制作,最初主要支持手机,在2005年被搜索巨头Google收购注资,并组建开放手机联盟开发改良随后,逐渐扩展到平板电脑及其他领域上,2008年全球第一步安卓智能手机问世,标志着安卓的重生。而在2011年11月份的调查,android智能机一跃超过苹果,以全球市场占有率76%,中国90%遥遥领先。在安卓手机中以三星的GALAXY III系列为领头羊,领跑安卓手机最新科技。 当人类步入21世纪,随着科技的日趋发展,智能手机,平板电脑等高端电子产品进入了我们的日常生活,随着3G时代已经慢慢的融入了我们的日常生活,随着社会的进步和科技的发展手机已经从单纯的通讯工具转变为集娱乐,学习,通讯为一体的高端电子产品,随着诺基亚塞班系统的没落,安卓系统迎来了春天。据市场调查,智能手机市场已经形成了二足鼎力的态势,安卓和苹果的IOS作为领军者遥遥领先于windows phone 系统,而在2011年11月份的调查,android智能机一跃超过苹果,以市场占有率76%遥遥领先。同时各种android应用程序已经有了比较明朗的发展前景,尤其以手机游戏这个亮点受到广泛的关注和喜爱,正是由于android拥有广大的用户群,android手机游戏拥有巨大的潜力,它也主宰者手机游戏的未来,此次毕业设

计顺应时代发展潮流,依托现在硬件上的优势,以android为平台,旨在玩家打造一款优秀的飞行类小游戏,使玩家身临其景,爱不释手。 在安卓游戏的市场上,使得android手机游戏种类更加丰富多彩,为安卓手机游戏的发展做出贡献。 (2)国内外同类研究的概况 手机游戏种类和资源日益丰富,游戏界面越来越华丽,游戏规则日益复杂,已经具备了很强的娱乐性和交互性的复杂形态。 2003年10月,Andy Rubin等人创建了Android公司,google公司于2005年8月17日低调收购android以及其团队,Andy Rubin成为Google公司android项目工程部副主任,,在三年后的 GoogleI/O大会上谷歌提出android HAL 架构图,同年九月,谷歌发布android 1.0,这就是android的最早的版本,由于当时受到硬件技术的局限和3D技术的不完善,以及android没有得到公众的认可,所以当时安卓手机游戏并没有得到良好的发展,没有进入人们的日常生活,仅仅只能做出原始的简单的小游戏,而且玩家也不是很多。 时间来到了2011年,android操作系统以绝对的优势领跑只能手机界,而基于良好的平台支持和硬件的发展,使得android手机游戏得到了飞速的发展。 1基于良好的硬件制作更好效果的游戏 随着各平台对OpenGL ES支持能力的大力加强,使得开发复杂的3D场景游戏成为可能。更多显示芯片对Android的支持,硬件性能将不再成为制约专业化游戏发展的瓶颈。越来越多在PC、PSP、 PS3、XBOX360等各游戏平台占有领先地位的专业游戏公司将向Android等手机平台领域快速渗透,使得游戏的规划更加向专业化方向发展。随

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

毕业设计(论文) 题目基于Java的飞机大战游戏开发

飞机大战是电脑游戏发展史中早期最为经典的游戏之一,无论是在电脑端、移动端、还是游戏机上,都能见到与飞机相关的射击类游戏。不过,最初常见的飞机大战游戏是二维平面上的,并且大多以黑白的形式出现,而如今,在电脑上,不仅机型多,而且五颜六色,3D视觉冲击强。 Java自面世后就非常流行,发展迅速,对C++语言形成了有力冲击,Java技术具有卓越的通用性、高效性、平台移植性和安全性,广泛应用于个人PC、数据中心、游戏控制台、科学超级计算机、移动电话和互联网,同时拥有了全球最大的开发者专业社群。在全球云计算和移动互联网的产业环境下,Java更具备了显着优势和广阔前景。 因此,本论文主要阐述以面向对象的程序开发语言Java及Eclipse为开发工具的飞机大战游戏。首先简要介绍课题的研究背景、目的及意义,Java的发展历程、当前国内外的发展现状。然后介绍Eclipse平台开发环境及环境搭建,最后讲述了基于Java飞机大战游戏功能的实现。其功能模块如下:主界面模块,Hero模块,Enemy模块,Bullet 的类模块,检测子弹与敌机碰撞模块检测,相信其基于Java的飞机大战游戏将会受到更大的欢迎。 关键词:飞机大战,游戏,Java ,Eclips

Plane War is the one of the most classic games in the early history of the development of computer games. We can always see aircraft-related shooting game whether it is on a computer teminal or mobile terminal. However, the first common plane war game is a two-dimensional plane, and mostly appears in the form of black and white, but now, on the computer, not just models and more colorful, 3D strong visual impact. Java is very popular with developers since it appeared, formed the powerful shock for the rapid evelopment of the C++ language. Java technology has excellent versatility, efficiency, platform portability, and security and is widely used in personal PC, data center, game consoles, scientific supercomputers, cell phones and the Internet. What’s more, Java has the world's largest developer of professional community. In the global cloud computing and mobile Internet industry environment, Java has more significant advantages and broad prospects. Therefore, this paper describes the development of object-oriented programming language Java and Eclipse development tools for aircraft war game. Firstly, it introduces research background, purpose and meaning, and telled Java development process and the current development status at home and abroad. Then introduces the Eclipse platform development environment and built environment, and finally tells the Java-based aircraft war game features implementation. Its function modules are as follows: the main interface module,Hero module,Enemy module,Bullet module, and the detection module detecting a collision with the enemy bullets. We believes its Java-based aircraft war game would be welcomed

相关主题
文本预览
相关文档 最新文档