下载此文档

基于DirectX的飞机大战游戏(C++ 版)的开发与设计毕业设计论文.doc


文档分类:IT计算机 | 页数:约35页 举报非法文档有奖
1/35
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/35 下载此文档
文档列表 文档介绍
毕业设计(论文)
题目基于DirectX的飞机大战游戏(C++版)的开发与设计

英文题目 The development and Design of Aircraft war game Based on DirectX

学生姓名
学号
指导教师职称副教授
专业软件工程

东华理工大学软件学院
二零一三年三月九日
摘要
飞机游戏是一款风靡全球的电视机游戏和掌上游戏机产品,曾几何时,它创造了一个无法企及的游戏巅峰,也曾影响了一代产业链。虽然它辉煌的业绩在历史的涡轮中渐渐远去,但这款游戏每每提及,总会令人爱不释手,魂牵梦绕。
这款游戏的名字叫做<<飞机大战>>,它是运行于Windows操作系统下的一款2D游戏,以C/C++为开发语言,构建于Microsoft Foundation Class Library(MFC)框架体系中,其中调用了部分的Win32API函数接口,在Visual C++(SDK)软件开发包来开发的一款多媒体游戏。
随着硬件性能的不断提高,游戏的日益普及,DirectX开发包的更新和完善,使开发者不在需要过多的关注不同的硬件设备。本论文着眼于DirectSound,DirectDraw的运用,开发出仅由于理论研究的二维平面射击类游戏。
本文首先分析了电脑游戏的发展历史,然后分析了制作游戏的基本流程和游戏本身所要包含的哪几种元素以及游戏应具备的游戏层次。根据2D游戏的特点和游戏的角色,以及给用户呈现的游戏界面的特效,对2D图形技术,Windows 图形界面编程技术GDI,DirectDraw的显卡接口和DirectSound声卡接口以及MVC设计模式下的MFC框架等技术进行了比较仔细的研究。通过自定义一个游戏类CGame,封装了游戏元素的基本属性和行为,这样便于在用到游戏的行为操作是,只要轻松的产生CGame对象便可直接调用其方法,也有利于当升级为双人游戏,网路版时,只需要在该类中添加相应的行为便可。当我们向用户呈现游戏运行的界面时,通过Timer时钟控件,映射到相应的处理函数,使得游戏界面大约每2秒钟刷新一下界面,这样才能让一张位图背景图片具有动态效果。当使用DirectSound声卡接口时,我方和敌方相互射击所发出的声音,都是在时钟映射函数调用时处理的。
关键词: 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 + + 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 th

基于DirectX的飞机大战游戏(C++ 版)的开发与设计毕业设计论文 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数35
  • 收藏数0 收藏
  • 顶次数0
  • 上传人799474576
  • 文件大小0 KB
  • 时间2013-09-20