没有合适的资源?快使用搜索试试~ 我知道了~
电脑游戏飞机大战的开发与设计计算机专业大学学位论文.doc
1 下载量 163 浏览量
2023-07-01
14:07:02
上传
评论
收藏 1.03MB DOC 举报
温馨提示
试读
71页
电脑游戏飞机大战的开发与设计计算机专业大学学位论文.doc
资源推荐
资源详情
资源评论
毕业设计(论文)
题 目: 飞机大战游戏的设计与开发
学 院: 计算机科学学院
专业班级: 电子信息科学与技术 11 级 1 班
指导教师: 000 职称: 副教授
学生姓名: zylxl
学 号: 411090301xx
I
摘 要
飞机游戏是一款风靡全球的电视机游戏和掌上游戏机产品,曾几何时,它创
造了一个无法企及的游戏巅峰,也曾影响了一代产业链。虽然它辉煌的业绩在历
史的涡轮中渐渐远去,但这款游戏每每提及,总会令人爱不释手,魂牵梦绕。
这款游戏的名字叫做飞机大战,它是运行于 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; 飞机大战游戏
II
ABSTRACT
Airplane 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
I
目 录
第 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 章 游戏分析...................................................12
3.1 用户功能需求分析...........................................12
3.2 系统性能要求...............................................13
3.3 可行性分析 .................................................14
3.4 本章小结 ...................................................14
第 4 章 游戏设计...................................................15
4.1 游戏整体设计 ...............................................15
4.1.1 整体结构.............................................15
4.1.2 游戏对战规则.........................................15
4.2 游戏界面设计 ...............................................16
4.2.1 游戏起始界面设计 .....................................16
4.2.2 游戏运行界面设计 .....................................18
4.2.3 游戏结束界面设计 .....................................19
4.3 游戏功能设计 ...............................................20
4.3.1 双缓冲绘图 ...........................................20
4.3.2 功能实现 .............................................20
4.4 本章小结 ...................................................27
第 5 章 系统测试...................................................28
5.1 软件测试基础理论 ...........................................28
I
5.1.1 软件测试定义.........................................28
5.1.2 软件测试基本概念.....................................28
5.2 软件测试目的 ...............................................28
5.3 软件测试方法分类 ...........................................29
5.3.1 静态测试与动态测试...................................29
5.3.2 黑盒白盒与白盒测试...................................29
5.3.3 单元测试、集成测试、系统测试、验证测试和确认测试.....30
5.4 论坛测试 ...................................................30
5.4.1 测试用例设计要求.....................................30
5.5 测试用例 ...................................................31
5.6 测试结果 ...................................................32
5.6 本章小结 ...................................................32
第 6 章 工作总结...................................................33
致谢...............................................................34
参考文献...........................................................35
附录 1 .............................................................36
剩余70页未读,继续阅读
资源评论
黑色的迷迭香
- 粉丝: 716
- 资源: 4万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Music-Player +PlayerActivity+ rockplayer+ SeeJoPlayer 播放器JAVA源码
- vscode-1.46.0.tar源码文件
- 最近很火植物大战僵尸杂交版2.08苹果+安卓+PC+防闪退工具V2+修改工具+高清工具+通关存档整合包更新
- 超级好用的截图工具PixPin,可录制Gif图
- Screenshot_2024-05-21-17-06-42-64_2332cb9b27b851b548ba47a91682926c.jpg
- 毕业设计参考 - 基于树莓派、OpenCV及Python的人脸识别
- node-v18.20.2-linux-arm64
- 222222222222
- 16张相机标定图片,可复现本文畸变矫正
- dbeaver-ce-23.3.1-x86_64-setup.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功