计算机专业毕业论文-电脑游戏飞机大战的开发与设计
- 格式:doc
- 大小:1.05 MB
- 文档页数:73
(完整版)飞机大战--毕业论文--初稿毕业设计(论文)题目:基于安卓平台的飞机大战游戏学院:计算机科学学院专业班级:计算机科学与技术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 rapid development , that made a lot of excellent enterprise , such as : IBM , Microsoft , Google , ARM , Apple inc In a foreign country ; T encent , Alibaba Group , Baidu In the domestic . Led by the computer industry in addition to 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 the application of the Android platform gamebusiness 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 andthe environment, finally tells the story of the realization of the function of Android plane war games. Its function module isas 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 withthe enemy aircraft module, detection, the enemy aircraft crash with my own wood, etc., in addition also provides users with more and convenient operation. Because the Android smartphone technology Android will be more welcome.KEY WORDS: Android, Game,Flight shooter,Airplane目录第1章绪论 (1)1.1 系统研究的背景及意义 (1)1.2 国内外的发展现状 (1)1.3 主要研究的内容 (2)1.4 本文的组织结构 (2)1.5 本章小结 (3)第2章用户需求分析 (4)2.1系统的架构描述 (4)2.2 系友好的用户界面 (5)2.3技术选型 (6)2.4系统的开发环境 (6)2.5 关键技术和工具简介 (7)2.6 本章小节 (8)第3章系统概要设计 (9)3.1 模块的划分 (9)3.1.1 软件模块设计 (9)3.1.2 软件功能模块 (10)3.2 主界面设计 (12)3.3 游戏界面设计 (13)3.4 系统包及其资源规划 (13)3.4.1 系统包管理如下 (13)3.4.2 Sqlite数据库 (14)3.4.3 Runable接口以及与Thread的区别 (16)3.5 本章小结 (20)第4章系统功能的实现 (21)4.1 主界面的功能实现 (21)4.1 游戏界面的功能实现 (26)4.3 子弹类的设计 (39)4.3 敌机类的设计 (40)4.5本章小结 (42)第5章系统测试 (43)5.1 软件测试的概念 (43)5.2 系统的功能和安全测试 (43)5.3 测试总结 (45)第6章总结 (46)致谢 (47)参考文献 (48)第1章绪论1.1 系统研究的背景及意义在手机游戏的早期,大多数开发者都是想要玩转设备、学习技巧和快速攻关的狂热分子。
飞机大战毕业论文飞机大战毕业论文近年来,飞机大战游戏在游戏市场上备受瞩目,成为了众多玩家的最爱。
这款游戏以其刺激的战斗场面和精美的画面设计,吸引了大量的玩家加入其中。
然而,飞机大战游戏不仅仅是一种娱乐方式,它也蕴含着许多值得研究的因素。
本篇论文将探讨飞机大战游戏的发展历程、游戏机制以及对玩家的影响。
首先,我们来看一下飞机大战游戏的发展历程。
飞机大战游戏最早可以追溯到上个世纪八十年代的街机游戏时代。
那个时候,飞机大战游戏以其简单的操作和刺激的战斗场面,吸引了大量的玩家。
随着游戏技术的不断发展,飞机大战游戏也逐渐从街机游戏转移到了个人电脑和游戏机平台。
现如今,飞机大战游戏已经成为了一个独立的游戏类型,拥有众多的粉丝。
其次,我们来分析一下飞机大战游戏的机制。
飞机大战游戏的核心机制就是玩家操控飞机进行战斗。
玩家需要在游戏中不断躲避敌方的攻击,同时尽可能地消灭更多的敌人。
游戏中通常会有多种类型的敌人飞机,每种飞机都有不同的攻击方式和弱点。
玩家需要根据敌人的特点来选择合适的策略,并不断提升自己的技能和装备,才能在战斗中取得胜利。
此外,飞机大战游戏还常常设置了多个关卡和Boss战,增加了游戏的挑战性和乐趣。
然而,飞机大战游戏不仅仅是一种娱乐方式,它还对玩家产生了一定的影响。
首先,飞机大战游戏能够培养玩家的反应能力和手眼协调能力。
在游戏中,玩家需要迅速做出反应,躲避敌方的攻击并进行有效的还击。
这种训练对于玩家的反应速度和手眼协调能力有着显著的提升作用。
其次,飞机大战游戏还能够培养玩家的战略思维和决策能力。
在游戏中,玩家需要根据敌人的特点和自身的情况来制定战斗策略,并在战斗中做出正确的决策。
这种训练对于玩家的战略思维和决策能力有着积极的影响。
最后,飞机大战游戏还能够培养玩家的耐心和毅力。
在游戏中,玩家可能会遇到一些困难的关卡或者强大的Boss敌人。
玩家需要持续努力并不断尝试,才能克服困难并取得胜利。
这种训练对于玩家的耐心和毅力有着积极的影响。
飞机大战游戏编程实现近年来,随着计算机和智能手机的普及,游戏行业得到了长足的发展。
其中,飞机大战游戏作为一种具有挑战性和刺激性的射击游戏,备受玩家们的喜爱。
在本文中,将介绍一种基于编程实现的飞机大战游戏,并探讨其实现过程和相关技术。
一、项目简介飞机大战游戏是一款基于2D画面的射击游戏,玩家扮演一名飞行员,操纵战斗机进行空中战斗。
游戏的目标是尽可能击败敌机,避免被敌方攻击。
通过不断提高技术水平,玩家可以挑战更难的关卡,并解锁更强大的战机。
这款游戏为玩家提供了刺激和快乐的游戏体验。
二、游戏设计与实现1. 游戏界面设计飞机大战游戏的界面设计应当注重用户体验,界面要简洁明了,按钮和操作要易于理解和使用。
游戏的背景画面可以选择丰富多样的场景,如苍穹,夕阳山脉,或火红的战场。
此外,游戏界面还应包括游戏得分、生命值等信息的显示。
2. 飞机角色设计飞机是游戏的核心角色,其设计直接关系到游戏的乐趣和难度。
玩家可以选择喜欢的战机进行游戏,每种战机都有自己的特点和武器配置。
飞机的动画效果应该流畅,玩家操控起来应该灵活且易于掌握。
3. 敌机设计敌机是游戏的对手,其数量和种类可以根据游戏难度的设置而变化。
敌机的设计应该多样化,不同种类的敌机具有不同的攻击方式和血量。
通过合理的设计和排布,增加游戏的挑战性,使得玩家在游戏中体验到紧张刺激的射击对决。
4. 游戏操作实现通过键盘、鼠标或触控等输入设备来实现游戏的操作。
通过按键控制飞机的方向移动,实现射击攻击和躲避敌机的动作。
游戏操作的精准性和流畅度对于游戏体验至关重要,因此需要在实现过程中充分考虑。
三、游戏实现所需技术1. 编程语言游戏的编程实现可以选择使用Python、Java、C++等编程语言。
根据个人的编程经验和喜好,选择最合适的编程语言来实现游戏功能。
2. 游戏引擎游戏引擎是游戏开发的重要工具,可以大大简化游戏的开发过程。
常用的游戏引擎有Unity、Cocos2d-x等,它们提供了丰富的功能模块和开发工具,使得游戏开发变得更加高效和便捷。
毕业设计(论文)任务书第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后的我们,童年最开始接触电子游戏是在游戏厅,那时候的飞机大战游戏机前,往往人山人海,绚丽多彩的画面,带感操作让人沉醉不能自拔。
摘要随着社会的发展,人们越来越注重工作和学习之外的娱乐生活。
游戏作为一种常见的休闲娱乐方式,已经日益成为人们生活屮的重要内容,而人们对游戏的耍求也越来越高。
3D游戏作为-种依托丁-新视觉和体感的游戏,已经得到了越来越多的玩家欢迎。
木次毕业设计旨在成功地设计一款简单的3D游戏——飞机大战,在需求分析的基础I二进行功能模块划分,然后对各个模块进行分析和详细设计,并利用Unity3D等技术实现整个游戏。
本游戏系统以Unity3D游戏引擎作为开发和发布平台,C#作为编程语言,PlK)tOShop作为图片制作基础,最终通过键盘实现对飞机模型的控制。
玩家可以通过方向键来控制飞机的左右移动,通过空格键来控制子弹的发射。
系统会随机产生一些陨石,通过对飞机的左右控制并发射子弹來击落不断下降的陨石。
整个游戏结构简单、操作容易、界面美观,给玩家提供了一个很好的游戏坏境。
关键词:3D游戏;飞机大战;Unity3D;游戏引擎AbstractWith the development of the society people pay more and more attention to cntertainment life outside of work and study. As a common way of leisure entertainment, games have become an important content in people's life, and people's demands for games become higher and highe r. As a kind of new visual and somatosensory game, 3D games have become more and more popula匚This graduation design is aimed at successfully designed a simple 3D game - the air war, on the demand analysis on tlie basis of function module partition, then analyze the various modules and the detailed design, and using the Unity3D and other technology to realize the whole game. This game system with Unity3D game engine as the development and publishing platform, c# as a programming language, Photoshop as pictures production base, finally through the keyboard to achieve control of the aircraft model. Players can through the arrow keys to control the moving of the plane, through the blank space key to control the launch of a bullet System will be randomly generated some meteorites, through about control of the plane and launch the bullet to shoot down the falling meteorites.The game has simple structure, easy operation, beautiful interface, aixi provide players with a good game environment.Keywords:3D Game; Air War; Unity3D; Game Enginc目录第1章概述 (1)1.1课题开发背景和研究意义 (1)1.2系统研究内容 (1)1.3系统开发工具 (2)第2章系统开发环境和技术 (3)2. 1 Photoshop 介绍 (3)2.2 Unity3D 介绍 (3)2. 3 C#语言 (5)第3章系统的需求分析 (7)3.1可行性研究 (7)3.2需求分析 (8)第4章系统的总体设计 (9)4.1系统功能模块图 (9)4.2游戏界而设计 (9)第5章系统的详细设计与实现 (14)5.1功能模块的设计与实现 (14)5.2玩家模块的设计与实现 (22)第6章游戏测试 (26)6.1软件测试目的 (26)6.2系统测试过程及结果 (26)结论 (28)参考文献 (29)致谢 (30)第1章概述1.1课题开发背景和研究意义游戏产业作为一门新兴的娱乐产业,己经在世界范围内得到迅猛的发展。
基于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的飞机大战游戏的设计与实现摘要飞机大战是电脑游戏发展史中早期最为经典的游戏之一,经常能在掌上游戏机、手机以及电脑上见到这个游戏。
不过,以往常见的飞机大战游戏是二维平面上的,并且大多以黑白的形式出现,当然在电脑上可以看到多种颜色的飞机大战。
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, platformportability 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年代的我们,对小时候的一些经典街机游戏肯定是印象深刻,像“飞机大战”、“超级玛丽”、“坦克大战”等,这些游戏伴随了我们童年,怀旧经典,重温这些经典的游戏,我选择“飞机大战”作为设计的项目。
毕业设计(论文)题目:基于安卓平台的飞机大战游戏学院:计算机科学学院专业班级:计算机科学与技术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 系统研究的背景及意义在手机游戏的早期,大多数开发者都是想要玩转设备、学习技巧和快速攻关的狂热分子。
一、概述飞机大战是一款经典的射击游戏,玩家控制飞机在屏幕上不断向上飞行,同时射击敌机,躲避敌机的攻击。
Python作为一种广泛应用于软件开发的高级编程语言,可以用来开发各种类型的游戏。
本报告将详细介绍使用Python语言设计飞机大战程序的过程和实现方法。
二、程序设计目标1. 实现一个具有玩家飞机和敌机的基本射击游戏;2. 能够控制玩家飞机的移动和发射子弹;3. 敌机能够不断向下移动,并且发射子弹攻击玩家飞机;4. 实现游戏得分的计算和显示;5. 添加背景音乐和游戏音效。
三、程序设计思路1. 确定游戏窗口大小和背景图片;2. 创建玩家飞机和敌机的类,并实现它们的移动和碰撞检测;3. 实现玩家飞机的发射子弹和敌机的发射子弹;4. 添加得分和生命值的显示;5. 引入背景音乐和游戏音效。
四、程序设计过程1. 导入pygame模块,并初始化pygame;2. 设置游戏窗口大小和标题,并加载背景图片;3. 创建玩家飞机和敌机的类,实现它们的移动和碰撞检测;4. 实现玩家飞机的发射子弹和敌机的发射子弹;5. 添加得分和生命值的显示;6. 引入背景音乐和游戏音效。
五、程序设计实现1. 导入pygame模块,并初始化pygame:import pygamepygame.init()2. 设置游戏窗口大小和标题,并加载背景图片:SCREEN_WIDTH = 480SCREEN_HEIGHT = 600screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))pygame.display.set_caption('飞机大战')background = pygame.image.load('background.jpg').convert()3. 创建玩家飞机和敌机的类,实现它们的移动和碰撞检测:class Plane(pygame.sprite.Sprite):def __init__(self, image, speed):pygame.sprite.Sprite.__init__(self)self.image = pygame.image.load(image)self.rect = self.image.get_rect()self.speed = speeddef move(self):passdef shoot(self):passdef collide(self):pass4. 实现玩家飞机的发射子弹和敌机的发射子弹:class Bullet(pygame.sprite.Sprite):def __init__(self, image, speed, position): pygame.sprite.Sprite.__init__(self)self.image = pygame.image.load(image) self.rect = self.image.get_rect()self.speed = speedself.rect.midbottom = positiondef move(self):pass5. 添加得分和生命值的显示:class Score(pygame.sprite.Sprite):def __init__(self):pygame.sprite.Sprite.__init__(self)self.score = 0self.font = pygame.font.Font(None, 36)def update(self):self.text = 'Score: d' self.scoreself.image = self.font.render(self.text, 1, (255, 0, 0))self.rect = self.image.get_rect()self.rect.topleft = [10, 10]6. 引入背景音乐和游戏音效:pygame.mixer.init()pygame.mixer.music.load('background_music.mp3') pygame.mixer.music.play(-1, 0.0)bullet_sound = pygame.mixer.Sound('bullet.wav')enemy_sound = pygame.mixer.Sound('enemy.wav')六、程序设计实现结果1. 程序设计完成后,玩家可以通过键盘控制飞机的移动和发射子弹;2. 敌机会不断向下移动,并发射子弹攻击玩家飞机;3. 游戏窗口中显示玩家的得分和生命值;4. 背景音乐和游戏音效能够正常播放。
毕业设计(论文)题目:飞机大战游戏的设计与开发学院:计算机科学学院专业班级:电子信息科学与技术11级1班指导教师:职称:副教授学生姓名:学号:摘要飞机游戏是一款风靡全球的电视机游戏和掌上游戏机产品,曾几何时,它创造了一个无法企及的游戏巅峰,也曾影响了一代产业链。
虽然它辉煌的业绩在历史的涡轮中渐渐远去,但这款游戏每每提及,总会令人爱不释手,魂牵梦绕。
这款游戏的名字叫做飞机大战,它是运行于Windows操作系统下的一款2D 游戏,以C/C++为开发语言,构建于Microsoft Foundation Class Library(MFC)框架体系中,其中调用了部分的Win32API函数接口,在Visual Studio2010环境下开发的一款多媒体游戏。
随着硬件性能的不断提高,游戏的日益普及,使开发者不再需要过多的关注不同的硬件设备。
本论文着眼于双缓冲绘图的运用,开发出仅用于理论研究的二维平面射击类游戏。
本文首先分析了电脑游戏的发展历史,然后分析了制作游戏的基本流程和游戏本身所要包含的几种元素以及游戏应具备的游戏层次。
根据2D游戏的特点和游戏的角色,以及给用户呈现的游戏界面的特效,对2D图形技术,Windows 图形界面编程技术GDI,DirectDraw的显卡接口和DirectSound声卡接口以及MVC 设计模式下的MFC框架等技术进行了比较仔细的研究。
通过自定义一个游戏类CGame,封装了游戏元素的基本属性和行为,这样便于在用到游戏的行为操作是,只要轻松的产生CGame对象便可直接调用其方法,也有利于升级为双人游戏,乃至网络版时,只需要在该类中添加相应的行为便可。
当我们向用户呈现游戏运行的界面时,通过Timer时钟控件,映射到相应的处理函数,使得游戏界面大约每2秒钟刷新一下界面,这样才能让一张位图背景图片具有动态效果。
当使用DirectSound声卡接口时,我方和敌方相互射击所发出的声音,都是在时钟映射函数调用时处理的。
【关键词:】C/C++; VS 2010/MFC; 飞机大战游戏IABSTRACTAirplane game is a popular global TV game and handheld game products,once upon a time,it creates a game out of reach peak,have influenced a generation of industrial chain. Although it brilliant performance in the history of turbine faded away,but the game is often mentioned always miss.The game's name is ,it is running on Windows operating systems,a 2 d game,with C/C + + as development language,building on the Microsoft Foundation Class Library MFC framework,which invokes the part Win32API function interface,in the Visual Studio 2010 environment using DirectX software development kit SDK to develop a multimedia game.With the constant improvement of the hardware performance,the rising popularity of the game,DirectX development kit update and perfect,make developers don't need too much attention to different hardware devices. The use of this thesis focus on DirectSound,DirectDraw,developed only due to the theoretical research of two-dimensional plane shooting game.This article first analyzes the development history of computer games,and then analyze the basic process of making game and the game itself need to include what kind of elements and the game should have level. According to the characteristics of the 2 d game and game role,and to the user interface rendering effects,the technology of 2 d graphics,the graphics interface and DirectSound DirectDraw sound card interface and MFC framework of MVC design mode to compare the careful research. Through a custom game CGame class,encapsulates the basic attribute of game elements and behavior,so easy to use in the game operation,as long as easy to produce the CGame object can be directly to call its methods,but also to when upgraded to a double game,online version,just need to add the proper behavior in the class. When we present game operation interface to the user,by the Timer clock control that is mapped to the corresponding processing function,makes the game about every 2 seconds refresh interface,in this way can we make a bitmap background picture with dynamic effect. When using DirectSound sound card interface,we and the noise made by enemy fire,are on the clock whenprocessing the mapping function call.KEY WORDS: C/C + +; VS 2010/MFC; plane war game目录第1章绪论 (1)1.1 系统研究的背景及意义 (1)1.2 国内外的发展现状 (1)1.4 本文的组织结构 (2)1.5 本章小结 (2)第2章游戏的相关知识和系统开发平台的阐述 (3)2.1游戏基本流程概述 (3)2.2游戏系统元素阐述 (4)2.3开发环境和相关技术的概述 (5)2.3.1 开发环境 (5)2.3.2 相关技术 (5)2.4本章小结 (10)第3章游戏分析 (11)3.1 用户功能需求分析 (11)3.2 系统性能要求 (12)3.3可行性分析 (12)3.4本章小结 (13)第4章游戏设计 (14)4.1游戏整体设计 (14)4.1.1 整体结构 (14)4.1.2 游戏对战规则 (14)4.2游戏界面设计 (15)4.2.1游戏起始界面设计 (15)4.2.2游戏运行界面设计 (17)4.2.3游戏结束界面设计 (17)4.3游戏功能设计 (18)4.3.1双缓冲绘图 (19)4.3.2功能实现 (19)4.4本章小结 (26)第5章系统测试 (27)5.1软件测试基础理论 (27)5.1.1 软件测试定义 (27)5.1.2 软件测试基本概念 (27)5.2软件测试目的 (27)5.3软件测试方法分类 (28)5.3.1 静态测试与动态测试 (28)5.3.2 黑盒白盒与白盒测试 (28)5.3.3 单元测试、集成测试、系统测试、验证测试和确认测试 (29)5.4论坛测试 (29)5.4.1 测试用例设计要求 (29)5.5测试用例 (30)5.6测试结果 (30)5.6本章小结 (31)第6章工作总结 (32)致谢 (33)参考文献 (34)附录1 (35)第1章绪论第1章绪论1.1 系统研究的背景及意义当今社会是一个信息社会,一个知识经济的年代。
自从世界上第一台计算机ENIAC于1946年问世到现在,计算机业飞速发展。
随着以全球信息网络普及和全球信息共享为标志的“全球信息网络革命”的蓬勃兴起,世界已然进入在计算机信息管理领域的激烈竞争的时代,计算机,自然而然的变成了人们生活中必不可少的一部分。
过去,人们只要是借助电影,电视,音乐等方式来娱乐。
而今天,以游戏为代表的电子娱乐正成为主流娱乐方式。
因为CPU以及显卡等设备的高速发展,为人们开发出更加炫目多彩的游戏提供了可能。
时代的发展,社会的进步,科学技术正以日新月异的速度飞速的向前发展。
计算机技术的发展更是迅速而且广泛。
可以说,计算机已经涉及到现代绝大部分行业。
目前纷繁复杂的游戏软件比比皆是,无论在线的网路游戏还是桌面游戏,二维的还是三维立体空间的,多由单机版游戏孕育而来。
学习简单的单机版游戏的制作,有利于初学者了解到游戏制作的理念。
目前不论是在国内还是世界范围内,游戏产业都如雨后的春笋,蓬勃发展,越来越多更具娱乐性的游戏产品被开发出来,这其中在众多的游戏开发工具中,Microsoft的Visual Studio系列被认为是当今世界最强大的游戏开发软件之一。
其代表作:魔兽争霸系列、星际争霸系列、帝国时代系列等等等等,几乎所有的大作都有VS的功劳。
因此掌握了VS的应用,不但是掌握了一种优秀的开发工具,对于今后参加大型团队的游戏项目开发也具有一定的帮助。