(完整版)基于Eclipse平台的飞机游戏的开发毕业设计论文
- 格式:doc
- 大小:248.50 KB
- 文档页数:56
摘要随着科技的发展,现在手机的功能已不仅仅是简单的打接电话、收发短信了。
更多的手机用户希望在工作、学习之余通过方便灵巧可随身携带的仪器休闲娱乐。
因此,为了迎合众多用户的需求并适应现在手机的规模,我们开发出一套适合各阶层人士的具有很强的娱乐性和交互性的飞机小游戏。
虽然现在市面上存在着各种各样的游戏版本,可是飞机游戏其市场还是相当大的。
因为它的特殊在于它能吸引人更深入,爱不释手.随着游戏关卡不断提高,其难度也更大,刺激性也更强。
可以说该游戏的优势在于它的简单易行,不论是手机,还是小游戏机,都能很快顺利的运行。
对于在外忙碌的人,不可能花费大量时间在娱乐上,大型游戏是行不通的。
这样的小游戏刚好迎合了他们的需求。
本游戏是基于安卓系统下开发的应用,采用java语言和安卓自带的xml布局编写,运用intent通信来完成每个布局界面之间的调用,操作简便,容易上手。
游戏通过控制飞机发射子弹击毁敌机来实现,子弹为自动发射,飞机可以进行上下左右移动,当子弹碰撞敌机时即判定击毁,通过击败最后的boss来通关游戏。
关键词:Android;Java;飞机游戏;布局ABSTRACTWith the development of science and technology, the functionality of the phone is not just a simple fight to answer the phone, send and receive SMS. More mobile phone users want to work, learn and dexterity can carry instruments entertainment. Therefore, in order to meet the needs of many users and adapt to the size of the mobile phone, we developed a set of all walks of life with the highly entertaining and interactive aircraft game. Although now on the market there are various version of the game, but the airplane game market is still quite large. Because it special is it attractive and more in-depth, put it down. With the game level, the difficulty is greater, the stimulation is also stronger. Can be said that the game's advantage lies in its simple, whether it is mobile phones, game consoles, can be quickly run smoothly. Out busy people, it is not possible to spend a lot of time for recreation, big game does not work. This game just to cater to their needs.This game is developed applications based on the Andrew system, using java language and Andrews comes to write xml layout, use of intent communications to complete each call to the layout of the interface between the simple, easy to use. The game by controlling the aircraft fired bullets destroyed enemy bullets for automatic launch, the aircraft can move up and down, when the bullet collision enemy determines that destroyed the clearance of the game by defeating the final bossKeywords: Android; the Java; aircraft games; layout目录绪论 (1)1.Android系统简介 (2)2. Android的相关技术介绍及分析 (4)2.1 Android系统架构研究 (4)2.1.1Android的功能特征 (5)2.2 Android架构分析 (6)2.2.1应用程序框架 (7)2.2.2 类库 (7)2.2.3 Android运行时组件 (8)2.3 Android应用的构成和工作机制 (8)3.Android开发环境 (9)3.1 下载JDK 6 (9)3.2 下载Eclipse 3.5 (9)3.3 下载Android SDK (10)3.4 安装ADT (10)4. Android应用程序结构剖析 (12)4.1 Android的API (12)4.2 Android应用程序结构解析 (13)4.2.1 Activities (14)4.2.2 Service (16)4.2.3 Content Provider (17)4.2.3.1 数据模型 (17)4.2.3.2 URI (17)4.2.4 Broadcast Receiver (18)4.3 Intent的详细解析 (19)4.3.1 Intent的抽象描述 (19)4.3.2 Android如何解析Intent (20)5. 飞机游戏设计 (21)5.1研究目标 (21)5.2 需求细则 (21)5.3 UI界面设计 (25)5.4文件结构与用途 (27)5.5功能模块图 (28)6. 各模块设计 (28)6.1 XML界面布局设计 (28)6.1.1 游戏开始界面设计 (28)6.1.2 游戏得分记录界面设计 (30)6.1.3 游戏设置界面设计 (30)6.1.4 玩家记录界面设计 (31)6.2 游戏各功能实现代码 (32)6.2.1 飞机类定义 (32)6.2.2飞机移动设计 (33)6.2.3 子弹的绘制 (34)6.2.4 飞机碰撞设计 (35)6.2.5 数据库存储游戏得分 (38)结论 (40)致谢 (41)参考文献 (43)绪论Android 系统最初由安迪·鲁宾(Andy Rubin)制作,最初主要支持手机。
毕业设计(论文)任务书第1页第2页第3页基于Java的飞机大战游戏的设计与实现摘要现如今,随着智能手机的兴起与普及,加上4G(the 4th Generation mobile communication ,第四代移动通信技术)网络的深入,越来越多的IT行业开始向手机行业转移重心。
而手机行业中游戏方面的利润所占比重较大,并且手机游戏大多数则是由Java语言开发研制的。
所以我想顺应时代发展,用学到的Java知识对游戏进行一次深入的了解与创作。
Java语言在我们大学学习中占了很大的比重,其优点甚多:面向对象,可靠,安全,多平台可移植,高性能,多线程等。
面向对象是相对于c语言的面向过程来说的,在面向对象编程中,我们用Java去新建一个对象,调用其方法就能实现我们的目标,并不需要了解这个对象的方法的具体实现过程;Java的可靠安全特点体现Java不支持指针,禁止第三方访问,杜绝了外部风险。
所以使用Java开发游戏,是一个正确的选择。
大学学习即将结束,在毕业之际,我想用我4年里学习的知识为自己编写一个属于自己的游戏——飞机大战游戏,为我的大学生活画上圆满的句号。
关键词:Java游戏;面向对象;可靠安全;多线程Design And Implementation Of Airplane WargameBased On JavaAbstractNowadays, with the emergence and popularization of smart phones, plus 4 g (the 4 th Generation mobile communication, the fourth Generation mobile communication technology) the development of the Internet, more and more in the IT industry began to shift to the mobile phone industry center of gravity. Aspect of the game of the mobile phone industry profits account for a large proportion, and most mobile game is developed by Java language. So I want to keep up with the development of The Times, use Java knowledge for an in-depth understanding of the game and creation.Java language learning in our universities accounted for a large proportion of its many advantages: Object-oriented, reliable, secure, multi-platform portable, high-performance, multi-threading.Object-oriented process-oriented with respect to the terms of the c language, object-oriented programming, specifically we use Java to create a new object, call its methods will be able to achieve our goal,we do not need to know the object's method of implementation ; reliable safety features reflect Java Java does not support pointers to prohibit third-party access, to eliminate the external risk. Therefore, the use of Java development aircraft war game, is the right choice.University coming to an end, on the occasion of the graduation, I want to use my four years studying knowledge and made themselves a game of their own - Aircraft war game for my college life painting satisfactory conclusion.Keywords:Java game; object oriented; reliable and secure; multi thread目录1 引言 (1)1.1 项目背景 (1)1. 2 国内外研究现状 (3)1.3 项目主要工作 (4)1.4 本文组织结构 (6)2 开发平台与开发技术 (7)2. 1 IntelliJ IDEA简介 (7)2. 2 IntelliJ IDEA与Eclipse 、MyEclipse的比较 (8)2. 3 Java (10)3 可行性研究 (13)3. 1 技术可行性 (13)3. 2 经济可行性 (13)3. 3 操作可行性 (14)3. 4 用户使用可行性 (14)3. 5 法律可行性 (14)4 需求分析 (15)4. 1 系统需求概述 (16)4. 2 功能模块设计 (17)4.2.1 游戏状态控制功能模块 (17)4.2.2 游戏难度的调整模块 (17)4.2.3 游戏界面绘画功能模块 (17)4.2.4 玩家游戏控制功能模块 (17)4. 3 游戏难点分析 (18)4.3.1 绘图美化 (18)4.3.2 多线程技术的实现 (18)4.3.3 防碰撞问题的解决 (18)4.3.4 动画的实现 (18)5 飞机大战功能实现 (19)5.1 模型图 (19)5.2 软件功能模块 (19)5.3 游戏首页的实现 (20)5.3.1 界面实现 (20)5.3.2 流程图 (21)5.3.3 核心代码 (22)5.4 游戏开始模块的实现 (24)5.4.1 界面实现 (24)5.4.2 流程图 (25)5.4.3 核心代码 (25)5.5 发射子弹模块的实现 (27)5.5.1 界面实现 (27)5.5.2 流程图 (28)5.5.3 核心代码 (29)5.6 积分模块的实现 (33)5.6.1 界面的实现 (33)5.6.2 核心代码 (34)5.7 防碰撞逻辑 (37)5.7.1 核心代码 (37)5.8 游戏操作的实现 (39)5.8.1 核心代码 (39)5.9 特殊NPC蜜蜂 (41)6 系统测试 (42)6.1 测试的定义及其重要性 (43)6.1.1 测试的定义 (43)6.1.2 测试的重要性 (44)6.2 测试方法 (46)6.3 测试结果 (50)7 结论 (51)参考文献 (52)致谢 (54)外文文献 (55)中文翻译 (63)1 引言1.1 项目背景90后的我们,童年最开始接触电子游戏是在游戏厅,那时候的飞机大战游戏机前,往往人山人海,绚丽多彩的画面,带感操作让人沉醉不能自拔。
基于Java的飞机大战游戏的设计与实现摘要飞机大战是电脑游戏发展史中早期最为经典的游戏之一,经常能在掌上游戏机、手机以及电脑上见到这个游戏。
不过,以往常见的飞机大战游戏是二维平面上的,并且大多以黑白的形式出现,当然在电脑上可以看到多种颜色的飞机大战。
Java自面世后就非常流行,发展迅速,对C++语言形成了有力冲击。
Java 技术具有卓越的通用性、高效性、平台移植性和安全性,广泛应用于个人PC、数据中心、游戏控制台、科学超级计算机、移动电话和互联网,同时拥有全球最大的开发者专业社群。
在全球云计算和移动互联网的产业环境下,Java更具备了显著优势和广阔前景。
本游戏是一个基于java的飞机大战游戏,利用Eclipse平台实现经典的飞机大战游戏。
游戏主要涉及了游戏状态控制功能、游戏难度的调整、游戏界面绘画功能、玩家游戏控制功能,最终展示了游戏开发的基本开发过程和设计思路。
关键词:飞机大战;游戏;java;Eclipse平台Design and implementation of airplane wargame based on JavaAbstractLightning 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目录摘要 (i)Abstract (ii)1 引言 (1)1.1 项目背景 (1)1.2 国内外研究现状 (1)1.3 项目主要工作 (1)1.4 本文组织结构 (2)2 开发平台与开发技术 (3)2.1 Eclipse (3)2.2 Eclipse平台 (3)2.3 Java (4)2.4 Java语言的特点与优势 (5)2.5 java技术在游戏开发中的应用 (6)2.6 UML (8)3 飞机大战游戏模块设计 (9)3.1 用户需求分析 (9)3.2 可行性分析 (9)3.3 总体设计原则 (10)3.4 功能模块设计 (11)3.4.1 游戏状态控制功能 (11)3.4.2 游戏难度的调整 (11)3.4.3 游戏界面绘画功能 (11)3.4.4 玩家游戏控制功能 (11)3.5 游戏难点分析 (11)4 飞机大战功能实现 (12)4.1 游戏首页的实现 (12)4.1.1 界面实现 (12)4.1.2 流程图 (13)4.1.3 核心代码 (14)4.2 游戏开始模块的实现 (15)4.2.1 界面实现 (15)4.2.2 流程图 (16)4.2.3 核心代码 (17)4.3 发射子弹模块的实现 (18)4.3.1 界面实现 (18)4.3.2 流程图 (19)4.3.3 核心代码 (20)4.4 积分模块的实现 (22)4.4.1 界面的实现 (22)4.4.2 核心代码 (23)4.5 碰撞逻辑 (26)4.5.1 碰撞画面的实现 (26)4.5.2 核心代码 (27)4.6 游戏玩家与BOSS的血条 (28)4.6.1 玩家血条和BOSS血条的实现 (28)4.6.1 核心代码 (29)4.7 游戏操作的实现 (30)4.7.1 核心代码 (30)5 系统测试 (31)5.1 测试的定义及其重要性 (31)5.1.1 测试的定义 (31)5.1.2 测试的重要性 (31)5.2 测试实例的研究与选择 (31)5.3 测试结果 (32)总结和展望 (33)参考文献 (34)致谢 (35)外文原文 (36)中文翻译 (42)1 引言1.1 项目背景90年代的我们,对小时候的一些经典街机游戏肯定是印象深刻,像“飞机大战”、“超级玛丽”、“坦克大战”等,这些游戏伴随了我们童年,怀旧经典,重温这些经典的游戏,我选择“飞机大战”作为设计的项目。
基于移动设备的飞机大战游戏的设计与实现计算机毕业设计论文引言本文旨在介绍基于移动设备的飞机大战游戏的设计和实现计算机毕业设计论文。
该游戏旨在为用户提供轻松,有趣和富有挑战性的游戏体验。
目标该游戏的目标是实现以下功能:- 用户能够在移动设备上游玩该游戏(Android / iOS)- 游戏有多个关卡并且每个关卡有不同的背景和敌人- 游戏中的飞机能够发射子弹并且可以获取各种不同的武器和道具- 游戏有计分系统以便用户能够跟踪其得分,并在高分时记录高分- 游戏的整体设计简洁,易于使用和操作,无操作疑惑,不涉及法律问题设计和实现为实现上述目标,我们将使用以下技术和工具:- Unity3D 引擎- C# 编程语言- Adobe Photoshop / GIMP 图像编辑器- Git 版本控制系统我们将采用以下步骤来设计和实现该游戏:1. 设计游戏界面和素材:使用 Photoshop / GIMP 创建游戏中所需的所有图形素材,包括背景、飞机、敌人、武器和道具等。
2. 开发游戏逻辑:使用 Unity3D 引擎和C#编程语言来实现游戏整体逻辑,包括游戏地图设计、敌人行为逻辑、玩家的操作等。
3. 进行调试和测试:在开发过程中,测试游戏的各种场景,确认游戏反应能力、稳定性、可玩性、易用性、界面性等各方面达到预期目标。
4. 发布和推广:创建 App Store / Google Play 账户,并在这些平台上发布游戏,制定推广计划和策略,增加用户量和曝光度。
结论本文介绍了基于移动设备的飞机大战游戏的设计和实现计算机毕业设计论文。
我们希望该游戏能够成为用户日常娱乐必备的游戏之一,并通过该项目提升我们的编程和项目管理技能。
毕业设计(论文)-基于Java的飞机大战游戏开发毕业设计(论文)题目基于Java的飞机大战游戏开发摘要飞机大战是电脑游戏发展史中早期最为经典的游戏之一,无论是在电脑端、移动端、还是游戏机上,都能见到与飞机相关的射击类游戏。
不过,最初常见的飞机大战游戏是二维平面上的,并且大多以黑白的形式出现,而如今,在电脑上,不仅机型多,而且五颜六色,3D视觉冲击强。
Java自面世后就非常流行,发展迅速,对C++语言形成了有力冲击,Java技术具有卓越的通用性、高效性、平台移植性和安全性,广泛应用于个人PC、数据中心、游戏控制台、科学超级计算机、移动电话和互联网,同时拥有了全球最大的开发者专业社群。
在全球云计算和移动互联网的产业环境下,Java更具备了显著优势和广阔前景。
因此,本论文主要阐述以面向对象的程序开发语言Java及Eclipse为开发工具的飞机大战游戏。
首先简要介绍课题的研究背景、目的及意义,Java的发展历程、当前国内外的发展现状。
然后介绍Eclipse平台开发环境及环境搭建,最后讲述了基于Java飞机大战游戏功能的实现。
其功能模块如下:主界面模块,Hero模块,Enemy模块,Bullet的类模块,检测子弹与敌机碰撞模块检测,相信其基于Java的飞机大战游戏将会受到更大的欢迎。
关键词:飞机大战,游戏,Java ,EclipsIAbstractPlane 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 hasthe 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 enemybullets. We believes its Java-based aircraft war game would be welcomed greater.KeyWords: lightning,Game,Java,EclipseII目录前言 ..................................................................... (1)第一章开发技术和开发平台 ..................................................................... ......................... 3 1.1 Java语言特性 ..................................................................... ..................................... 3 1.2 Java技术在游戏开发中的应用 ..................................................................... (4)1.2.1 绘图技术 ..................................................................... .. (4)1.2.2 游戏开发中的交互 ..................................................................... . (4)1.2.3 基于AWT及SWING的游戏界面开发 (5)1.2.4 多线程技术的应用 ..................................................................... . (5)1.2.5 Java网络技术的应用...................................................................... .. (5)1.2.6Eclipse ................................................................ ............................................ 6 1.3 开发平台搭建 ..................................................................... . (6)1.3.1 安装JDK和Eclipse ................................................................ . (6)1.3.2 JDK环境变量配置...................................................................... (6)第二章飞机大战游戏需求分析 ..................................................................... ..................... 8 2.1 用户需求分析 ..................................................................... ..................................... 8 2.2 可行性分析 ..................................................................... ......................................... 8 2.3 总体设计原则 ..................................................................... ..................................... 9 2.4 功能模块设计 ..................................................................... ................................... 10 2.5 游戏难点分析 ..................................................................... .. (10)第三章飞机大战功能模块实现 ..................................................................... ....................11 3.1 项目模块介绍 ..................................................................... ....................................11 3.2 游戏首页的实现 ..................................................................... . (12)3.2.1 界面实现 ..................................................................... (12)3.2.2 核心代码 ..................................................................... ................................. 13 3.3 游戏战场实现 ..................................................................... ................................... 14 3.4 界面实现 ..................................................................... ........................................... 14 3.5 核心代码 ................................................................................................................ 15 3.6 Hero移动模块实现 ..................................................................... .. (16)3.6.1 核心代码 ..................................................................... (16)III3.7 子弹模块的实现 ..................................................................... . (18)3.7.1 界面实现 ..................................................................... (18)3.7.2 核心代码 ..................................................................... (18)3.8 Enemy移动模块实现 ..................................................................... .. (19)3.8.1 核心代码 ..................................................................... (19)3.9 敌机航线控制模块 ..................................................................... (20)3.9.1 核心代码 ..................................................................... (20)3.10 碰撞检测模块实现 ..................................................................... (22)3.10.1 战机碰撞界面 ..................................................................... (22)3.10.2 核心代码 ..................................................................... .. (23)3.11 积分显示模块实现 ..................................................................... (25)3.11.1 界面实现...................................................................... .. (25)3.11.2 核心代码...................................................................... ................................ 25 第四章软件测试 ..................................................................... . (28)4.1 测试的定义 ..................................................................... (28)4.2 测试的重要性 ..................................................................... .. (28)4.3 测试方法 ..................................................................... . (28)4.4 测试结果 ..................................................................... ........................................... 29 结论 ..................................................................... . (30)致谢 ..................................................................... . (31)参考文献 ..................................................................... ............................................................. 32 附录 ..................................................................... . (33)IV前言项目背景90年代的我们,对小时候的一些经典街机游戏肯定是印象深刻,像“飞机大战”、“超级玛丽”、“坦克大战”等,这些游戏伴随了我们童年,怀旧经典,常温这写经典的游戏,我选择了“飞机大战”作为设计的项目。
毕业设计(论文)题目:基于安卓平台的飞机大战游戏学院:计算机科学学院专业班级:计算机科学与技术10级2班指导教师:黄国兵职称:高级工程师学生:兵学号:***********摘要自从第一台计算机研发以来,计算机行业得到了迅速的发展,成就了很多优秀的企业,例如国外的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的飞机大战游戏将会受到更大的欢迎。
关键字:安卓,游戏,飞行射击,飞机ABSTRACTSince the first computer researched and development , the computer industry has been rapid development , that made a lot of excellent enterprise , such as : IBM , Microsoft , Google , ARM , Apple inc In a foreign country ; Tencent , Alibaba Group , Baidu In the domestic . Led by the computer industry in addition to hardware support, the main factors for operating system . And the operating system from Dos, UNIX, LINUX, Windows PC correct is gradually to mobile terminal such as: LINUX - > Android. Unix - > IOS; Windows - > Windows phone, mostly because the mobile end portability, and was deeply loved by people, in this kind of mobile Internet, in the tide of the Android system is as high as 80% of mobile terminal operating system share, really unlimited prospects, and in the application of the Android platform game business accounts for the largest proportion, so this topic is based on the Android plane war game, the development trend of mobile Internet, the main objective for its future development are clear understanding.This thesis mainly expounds Java with object oriented programming language and Eclipse as the development tool, and the plane based on the intelligent mobile phone Android war games. First briefly introduced the research background, purpose and significance, the development of Android, the current domestic and foreign development present situation. And then introduced the Android platform development environment and the environment, finally tells the story of the realization of the function of Android plane war games. Its function module is as follows: enemy planes flying in and out of class module, provides the bullet class module, main interface module, the sky background module, detect bullet collision with the enemy aircraft module, detection, the enemy aircraft crash with my own wood, etc., in addition also provides users with more humanized design and convenient operation. Because the Android smartphone technology has become the dominant gradually, believe that the planewar game based on Android will be more welcome.KEY WORDS: Android, Game,Flight shooter,Airplane目录第1章绪论 (1)1.1 系统研究的背景及意义 (1)1.2 国外的发展现状 (1)1.3 主要研究的容 (1)1.4 本文的组织结构 (1)1.5 本章小结 (2)第2章用户需求分析 (3)2.1系统的架构描述 (3)2.2 系友好的用户界面 (4)2.3技术选型 (5)2.4系统的开发环境 (5)2.5 关键技术和工具简介 (6)2.6 本章小节 (7)第3章系统概要设计 (8)3.1 模块的划分 (8)3.1.1 软件模块设计 (8)3.1.2 软件功能模块 (9)3.2 主界面设计 (11)3.3 游戏界面设计 (12)3.4 系统包及其资源规划 (12)3.4.1 系统包管理如下 (12)3.4.2 Sqlite数据库 (13)3.4.3 Runable接口以及与Thread的区别 (15)3.5 本章小结 (19)第4章系统功能的实现 (20)4.1 主界面的功能实现 (20)4.1 游戏界面的功能实现 (25)4.3 子弹类的设计 (37)4.3 敌机类的设计 (38)4.5本章小结 (40)第5章系统测试 (41)5.1 软件测试的概念 (41)5.2 系统的功能和安全测试 (41)5.3 测试总结 (43)第6章总结 (44)致 (45)参考文献 (46)第1章绪论1.1 系统研究的背景及意义在手机游戏的早期,大多数开发者都是想要玩转设备、学习技巧和快速攻关的狂热分子。
基于JAVA的飞机大战摘要:为了丰富生活、互动交友、娱乐休闲,而开发这一项目。
本项目是在Android平台下的、以Java语言实现的。
为了推广而吸引眼球,将项目取名为“飞机大战”,本项目最终产品有丰富完善的功能、流畅简洁的UI、简单易懂的游戏方式,使玩家容易理解、容易在游戏过程中体会到乐趣与放松。
关键词:游戏开发;Android平台;Java环境此游戏开发,将遵循瀑布模型的项目开发架构,在Android平台下、以Java语言实现,目的产品将具有以下特点:在Android手机上可正常运行;具有一定的安全性;游戏功能简单易懂;UI友好;游戏有乐趣,可以给用户良好的放松体验。
进行动以及作动画行为的实现,将使用WindowManager Sprite。
一. 游戏中的设计对象1. 玩家:玩家通过触屏方式实现对手机屏幕上己方飞机的控制;2. 己方飞机:能够在玩家的控制下流畅地在屏幕上移动,并且能够发射子弹攻击敌方飞机;3. 子弹:己方飞机与敌方飞机都有此设定,且互相攻击,地方为手机控制自动射击,随玩家分数升高,敌方飞机发射子弹频率增加;4. 敌方飞机:普通敌方飞机以低频向玩家飞机发射子弹,大型敌方飞机以高频向玩家飞机发射子弹;5. 大型敌方飞机:形状比普通飞机大一倍,高频向玩家飞机发射子弹;6. 炸弹:玩家分数增加到一定值可以得到奖品礼包,里面是炸弹,能够清楚除了大型敌方飞机外的所有普通敌方飞机;7. 双排子弹:玩家分数增加到一定值可以得到奖品礼包,里面是双排子弹设定。
二. UI上的具体操作1. 玩家点击一个图标,然后通过加载进入游戏;2. 进入游戏后是主菜单,玩家可以在此选择开始游戏、游戏说明、难度选择、退出游戏等;3. 若玩家选择了游戏说明,还要保证游戏说明界面有退回主菜单的设定;4. 敌方飞机分为不同种类,并且会以一定的速度,在屏幕上随机出现;5. 玩家的飞机可以由玩家控制左右上下移动,并且在玩家不控制时以恒定的速度向上移动;6. 玩家飞机无需控制直接发射子弹,得到炸弹或双排子弹后也是直接加载进入,并不需要玩家操作发射;7. 玩家分数增加到一定值可以得到奖品礼包,里面是双排子弹或者炸弹;8. 当奖品礼包出现时,玩家需要控制飞机接触礼包,则可以得到该奖品礼包;9. 双排子弹功能和炸弹功能将持续一定的时间;10. 炸弹将比双排子弹能对敌方飞机造成更多点的伤害;11. 子弹、双排子弹、炸弹袭击到飞机后,将以减少飞机能量点值的方式损害敌方飞机,当敌方飞机能量点值为0时,视为坠毁,并在屏幕上消失;12. 己方飞机若由于子弹攻击能量点值减少到0,或者被敌方飞机装上,则视为坠毁,并在屏幕上本来的位置消失;13. 己方飞机消失,即坠毁后,视为游戏结束,此时将弹出一个界面显示当前用户玩家的分数,并且在此界面上可以选择再来一局或者直接退出该游戏;14. 当游戏正在进行时,手机屏幕的左上角将会显示用户玩家此时的分数;15. 随着玩家得到的分数不断增加,敌方飞机攻击的频率将逐渐增加,使游戏的难度加大。
(此文档为word格式,下载后您可任意编辑修改!)石家庄科技信息职业学院毕业论文题目:基于Android操作系统的飞机大战手机游戏摘要: 飞机大战是滚动屏动作类游戏的一种,其中融入了很多动作类游戏特有的技术,并且画面流畅、声音震撼。
当今网络发展迅速,益智类游戏被广泛运用到网络各大平台上。
借鉴网络各大平台上的游戏,通过Eclipse Android SDK 利用Java语言编写的《飞机大战》。
1本文阐述了在Android平台上,面向对象的软件开发思想对飞机大战游戏系统的分析、设计及实现过程。
在项目的实践过程中,主要用到了以下技术:手机布局主要使用了XML设计,程序及其子模块的生命周期管理用到了Activity流程控制,游戏的画面更新使用的是手机的2D图形编程。
本论文的前半部分将简要介绍系统相关的行业信息及基础的技术知识,后半部分将对本人在系统各模块中所使用的关键技术的实现进行了全面的介绍。
关键词:滚屏游戏;飞机大战;手机游戏;Android平台Abstract: the World War II aircraft rolling screen action game one, incorporating many action games unique technology, and smooth picture, sound rock.The network is developing rapidly, a puzzle game is widely applied to the network the platform. From the network the platform game, through the Eclipse Android SDK Java language prepared by the" World War II aircraft". This paper elaborated on the platform of Android, object-oriented software development thought to the World War II aircraft game system analysis, design and implementation process. In the practice of the project process, the main use of the following techniques: the layout of the main mobile phone using XML design, procedures and sub module life cycle management used in the Activity process control, the game screen is updated using the mobile phone 2D graphics programming. In this paper, the front of system related industry information and basic technical knowledge, the second part of the each module of the system used in the realization of the key technology for a comprehensive introduction.Key words:scrolling game; World War II aircraft; mobile phone games; Android platform目录一、绪论 (5)二、相关研究综述 (6)(一)关于java语言 (6)(二) 关于Android (8)三、系统开发环境及相关技术 (10)四、游戏所需类的分析与实现 (11)(一)游戏的框架简介 (11)(二)游戏界面的框架简介 (12)(三)各个类的简要介绍 (13)五、游戏界面展示 (22)总结 (27)致谢 (28)参考文献 (29)前言随着3G移动网络应用的推广,手机游戏的规模、复杂程度日益增强;其技术手段、设计思想、系统体系结构都发生了深刻的变化。
山西大学论文编号:2008241054 论文题目一个飞行射击类游戏的设计与实现姓名刘全院系、专业计算机与信息技术学院、计算机科学与技术专业学习年限 2008 年 9 月 2012 年 7 月指导教师翟岩慧学位级别学士2012年4月3日一个飞行射击类游戏的设计与实现学生姓名:刘全指导老师:翟岩慧内容提要:本文主要阐述了一个飞行射击类游戏的设计与实现。
该游戏主要是基于Java语言,使用Graphics2D类,Thread,AWT/Swing开发的。
主要实现了游戏者控制一架小飞机躲避敌方炮弹,并且小飞机可以发射炮弹击毁敌机。
关键字:Java Swing Graphics2D Thread 飞行射击1 绪论在信息社会中,随着经济的迅速发展,人们的生活和学习发生了巨大变化。
一些休闲小游戏已经走进人们的生活,但当今大部分游戏只注重画面与音乐,不注重剧情与可玩性,计算机配置要求也越来越高。
因此设计一款简单,可玩性好的小游戏为人们在工作与学习的闲暇放松紧张的心情,提高工作学习效率已经非常有必要。
同时由于计算机技术的不断进步,Java应用程序产生的增值服务逐渐体现出其非凡的影响力。
这为游戏的发展奠定了坚实的基础,使得游戏的发展也发生着巨大的变化,再加上多媒体技术的支持,使得游戏也成为了我国的一大产业。
着眼于J2ME 技术的应用,本人制作了一款简单的飞行射击类游戏。
本文所阐述的飞行射击类游戏,主要是实现了简单的飞行射击,没有在界面上做过多的修饰,游戏各部分功能已实现,并且游戏对计算机的配置要求也不高,而且游戏娱乐性也较强。
2 相关理论与技术2.1 JavaJava[1]是由Sun Microsystems公司于1995年开发完成的Java程序设计语言和Java平台的总和。
用Java实现的Hot Java浏览器展示了Java的魅力,有跨平台的,动感的Web,和Internet 计算。
从此,Java被计算机程序员广泛接受并推动了Web的迅速发展,通常使用的浏览器现在支持Java Applet。
本科毕业论文(设计)报告题目:基于Eclipse平台的飞机游戏的开发基于Eclipse平台的飞机游戏的开发【摘要】随着当今社会的发展,手机已经融入每个人的生活中。
但因为信息网络的不断进步,传统手机已经不能满足人们的要求。
程序不能增加与删除,有错误又不能更新或修改,通过wap访问互联网,速度慢,费用又高。
这时,Java技术就充分展现了其自身的优势,可以按需要从网上下载程序进行升级安装,还提供了一个类库,使开发商可以设计更方便,直接的用户界面。
而JAVA演进到JAVA2后,JAVA平台分别针对不同领域的需求被分成四个版本,即J2EE、J2SE、J2ME以及JavaCard。
J2ME被应用于消费性电子产品。
至此,JAVA手机将是未来手机的发展方向,是业界的热点。
而因为J2ME的应用层面之广,使其成为未来JAVA 平台发展的重点项目。
此次设计的这款手机游戏《飞机游戏》就是应用了J2ME来实现的。
本论文介绍了J2ME的相关技术及本程序的结构分析和具体功能的实现。
【关键词】J2ME;手机游戏;功能目录1绪论 ......................................................................................................................................................1.1手机软件现状 .............................................................................................................................1.2J2ME介绍...................................................................................................................................1.3手机游戏应具有的特征 .............................................................................................................1.4本游戏背景介绍 .........................................................................................................................1.5本章小结 .....................................................................................................................................2 开发环境及相关技术的介绍..............................................................................................................2.1开发环境 .....................................................................................................................................2.2J AVA语言特点..........................................................................................................................2.3关于ECLIPSE ...........................................................................................................................2.4关于W IRELESS T OOL K IT.........................................................................................................2.5J AVA A PPICATION M ANAGER...................................................................................................2.6本章小结 .....................................................................................................................................3 程序结构、思想和相关技术..............................................................................................................3.1本程序需要解决的主要技术问题..............................................................................................3.2程序流程 .....................................................................................................................................3.3C ANVAS类 ...................................................................................................................................3.4G RAPHICS类................................................................................................................................3.5MIDP1.0技术下的绘制背景技术..............................................................................................3.6MIDP2.0新增的G AME C ANVAS包 ......................................................................错误!未定义3.7PNG图片格式........................................................................................................错误!未定义3.8玩家飞机的控制方式和敌人方的智能运行..............................................................................3.9子弹的运行和控制 .....................................................................................................................3.10内存的优化 ...............................................................................................................................3.11内存检测器 ...............................................................................................................................3.12关于混淆器 ...............................................................................................................................3.13本章小结 ................................................................................................................................... 4程序分析和具体实现...........................................................................................................................4.1游戏进入前的选择 .....................................................................................................................4.2 MYBULLETS类 .............................................................................................................................4.3游戏逻辑及GAME S CREEN类 ....................................................................................................4.3.1 gameScreen类所实现的功能 ............................................................................................4.3.2 地图的创建 ........................................................................................................................4.3.3 地图的移动 ........................................................................................................................4.3.4 gameScreen类的构造函数 .............................................................................................4.3.5 关于commandAction()方法..............................................................................................4.3.6 Sprite类对象的碰撞检测及相关属性...............................................................................4.5普通敌人相关属性 ................................................................................................错误!未定义4.6白云的实现原理 .........................................................................................................................4.7关尾BOSS及相关属性 .............................................................................................................4.8本章小结......................................................................................................................................5 测试......................................................................................................................................................5.1打包测试的过程 .........................................................................................................................5.2发现的BUG及解决情况...........................................................................................................5.3未完善的功能 .............................................................................................................................6 总结......................................................................................................................................................6.1本程序的总结和展望 .................................................................................................................6.2 感想.............................................................................................................................................7 致谢......................................................................................................................................................参考文献..................................................................................................................................................英文翻译..................................................................................................................................................附录英文文献及翻译............................................................................................................................1. 绪论1.1 手机软件现状在信息社会中,手机及其他无线设备越来越多的走进普通百姓的工作和生活,随着信息网络化的不断进展,手机及其他无线设备上网络势在必行。