没有合适的资源?快使用搜索试试~ 我知道了~
基于DirectX的飞机大战游戏的开发与设计.docx
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 194 浏览量
2023-06-20
11:40:01
上传
评论
收藏 266KB DOCX 举报
温馨提示
试读
29页
基于DirectX的飞机大战游戏的开发与设计.docx
资源推荐
资源详情
资源评论
摘 要
飞机游戏是一款风靡全球的电视机游戏和掌上游戏机产品,曾几何时,它
创造了一个无法企及的游戏巅峰,也曾影响了一代产业链。虽然它辉煌的业绩在
历史的涡轮中渐渐远去,但这款游戏每每提及,总会令人爱不释手,魂牵梦绕。
这款游戏的名字叫做<<飞机大战>>,它是运行于 Windows 操作系统下的一
款 2D 游戏,以 C/C++为开发语言,构建于 Microsoft Foundation Class Library(MFC)
框架体系中,其中调用了部分的 Win32API 函数接口,在 Visual C++6.0 环境下
使用 DirectX(SDK)软件开发包来开发的一款多媒体游戏。
随着硬件性能的不断提高,游戏的日益普及,DirectX 开发包的更新和完善,
使开发者不在需要过多的关注不同的硬件设备。本论文着眼于 DirectSound,
DirectDraw 的运用,开发出仅由于理论研究的二维平面射击类游戏。
关键词: C/C++; VC++/MFC; 飞机大战游戏
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, cuddly, always miss.
The game's name is < < plane war > >, 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 C + + 6.0 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, graphical interface Windows GDI programming technology, 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 when processing the mapping function call.
KEYWORDS: C/C + +;VC + + MFC /; plane war game
目 录
摘 要...........................................................Ⅱ
ABSTRACT...........................................................Ⅲ
目 录...........................................................Ⅳ
第 1 章 绪论.........................................................1
1.1 选题的目的和意义..............................................................................................................1
1.2 论文结构安排......................................................................................................................1
第 2 章 游戏的相关知识和系统开发平台的阐述...........................2
2.1 游戏基本流程概述..............................................................................................................2
2.2 游戏系统元素阐述..............................................................................................................3
2.3 游戏系统的层次.................................................................................................................5
2.4 开发环境和相关技术的概述.............................................................................................5
2.4.1 开发环境:..............................................................................................................5
2.4.2 相关技术..................................................................................................................5
第 3 章 游戏的分析和设计.............................................9
3.1 游戏分析..............................................................................................................................9
3.1.1 概述..........................................................................................................................9
3.1.2 可行性分析............................................................................................................10
3.2 游戏设计...........................................................................................................................10
3.2.1 游戏总体设计规划.................................................................................................10
3.2.2 游戏的对战规则....................................................................................................11
第 4 章 游戏的各模块的详细设计与实现................................11
4.1 游戏界面显示模块...........................................................................................................12
4.1.1 模块描述................................................................................................................12
4.1.2 模块功能................................................................................................................12
4.1.3 模块实现................................................................................................................12
4.2 文字消息提示模块............................................................................................................14
4.2.1 模块描述................................................................................................................14
4.2.2 模块功能................................................................................................................14
4.2.3 模块实现................................................................................................................15
4.3 子弹发射模块....................................................................................................................16
4.3.1 模块描述和功能....................................................................................................16
4.3.2 模块实现................................................................................................................17
4.4 键盘操作模块....................................................................................................................18
4.4.1 模块描述和功能....................................................................................................18
4.4.2 模块实现................................................................................................................19
4.5 全屏模块............................................................................................................................19
4.5.1 模块描述和功能....................................................................................................19
4.5.2 模块实现................................................................................................................20
4.6 游戏结束模块....................................................................................................................21
4.6.1 模块描述和功能....................................................................................................21
4.6.2 模块实现................................................................................................................21
第 5 章 论文总结...................................................22
5.1 总结....................................................................................................................................22
致 谢...........................................................23
参考文献...........................................................24
附录...............................................................25
第 1 章 绪论
1.1 选题的目的和意义
过去,人们只要是借助电影,电视,音乐等方式来娱乐。而今天,随着计算
机技术多媒体技术的飞速发展,计算机硬件性能的不断跃升,以游戏为代表的电
子娱乐正成为主流娱乐方式。因为 CPU 以及显卡等设备的高速发展,为人们开发
出更加炫目多彩的游戏提供了可能。时代的发展,社会的进步,科学技术正以日
新月异的速度飞速的向前发展。计算机技术的发展更是迅速而且广泛。可以说,
计算机已经涉及到现代绝大部分行业。目前纷繁复杂的游戏软件比比皆是,无论
在线的网路游戏还是桌面游戏,二维的还是三维立体空间的,多由单机版游戏孕
育而来。学习简单的单机版游戏的制作,有利于初学者了解到游戏制作的理念。
目前不论是在国内还是世界范围内,游戏产业都如雨后的春笋,蓬勃发展,越来
越多更具娱乐性的游戏产品被开发出来,这其中在众多的游戏开发工具中,
Microsoft 的 Visual C++ 系列被认为是当今世界最强大的游戏开发软件之一。其
代表作:魔兽争霸系列、星际争霸系列、帝国时代系列 等等等等,几乎所有的
大作都有 VC 的功劳。因此掌握了 VC 的应用,不但是掌握了一种优秀的开发工具,
对于今后参加大型团队的游戏项目开发也具有一定的帮助。本设计通过开发一个
单机版的基于 DirectX 的射击类游戏,有一定的娱乐性很值得一试。通过制作这
样一个软件,可以加深对游戏设计思想的了解,也可以进一步熟悉编程工具的应
用,更可以给我们的生活带来更多的趣味。通过该设计,我将更好的了解 windows
消息机制,更深的体会到利用 Visual C++/MFC 开发 windows 程序的优越性。
1.2 论文结构安排
第二章介绍游戏的相关知识和背景,以及开发环境的阐述,主要包括对电脑
游戏制作的基本流程,游戏元素的分析以及游戏层次的简要剖析。第三章游戏分
析与设计,包括系可行性分析和游戏对战规则,介绍基于 DirectX 开发的多媒体
游戏,第四章游戏各模块的详细设计与实现,主要包括了 6 个模块:游戏操作界
面显示,文字消息提示模块,子弹发射模块,键盘操作,全屏以及游戏结束模块。
第五章论文的总结,以及相关技术的参考文献。
剩余28页未读,继续阅读
资源评论
老帽爬新坡
- 粉丝: 82
- 资源: 2万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Picasso_v3.1 2.ipa
- chromedriver-mac-arm64.zip
- 蓝zapro.apk
- chromedriver-linux64.zip
- UCAS研一深度学习实验-MNIST手写数字识别python源码+详细注释(高分项目)
- 基于Python和PyTorch框架完成的一个手写数字识别实验源码(带MINIST手写数字数据集)+详细注释(高分项目)
- 基于Matlab在MNIST数据集上利用CNN完成手写体数字识别任务,并实现单层CNN反向传播算法+源代码+文档说明(高分项目)
- NVIDIA驱动、CUDA和Pytorch及其依赖
- 基于SVM多特征融合的微表情识别python源码+项目说明+详细注释(高分课程设计)
- html动态爱心代码一(附源码)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功