基于VC的飞行模拟游戏的设计及实现

上传人:平*** 文档编号:11340904 上传时间:2017-10-13 格式:DOC 页数:30 大小:315.15KB
返回 下载 相关 举报
基于VC的飞行模拟游戏的设计及实现_第1页
第1页 / 共30页
基于VC的飞行模拟游戏的设计及实现_第2页
第2页 / 共30页
基于VC的飞行模拟游戏的设计及实现_第3页
第3页 / 共30页
基于VC的飞行模拟游戏的设计及实现_第4页
第4页 / 共30页
基于VC的飞行模拟游戏的设计及实现_第5页
第5页 / 共30页
点击查看更多>>
资源描述

《基于VC的飞行模拟游戏的设计及实现》由会员分享,可在线阅读,更多相关《基于VC的飞行模拟游戏的设计及实现(30页珍藏版)》请在金锄头文库上搜索。

1、基于 VC 的飞行模拟游戏的设计及实现摘 要电子游戏的出现代表了一种全新娱乐方式的诞生。目前,电子游戏正以其独特的魅力吸引着众多的玩家。随着游戏产业的蓬勃发展,越来越多的人加入到了游戏开发的行业。游戏开发涵盖了程序设计、文学、历史、音乐及美术等诸多方面的内容,除去市场价值的意义,电子游戏的发展的必要性还在于对我国文化产业的发展的重要性,游戏作为一种特殊的创意文化产品形态,是文化产业链中不可缺少的一环。设计在利用已有的开发包和已有的游戏框架的基础上,采用 Microsoft Visual C+2005 为开发平台,这些开发包和框架已经完美地解决了游戏图像和音效方面的问题,设计的主要工作就是向框架

2、中添加自己所设计的类,用于实现设计所要实现的功能。在进行类的设计时,运用 C+所具有的继承和派生功能,使很大一部分代码能够得到重用,从而实现多态,同时,还要在父类中很好地引入虚函数,为指针能够指向子类的同名成员提供方便,然后利用开发包里的方法来实现游戏背景的显示,最终得到一个在 Microsoft Visual C+2005 上运行的飞行模拟游戏,同时在运行时不会出现重大尤其是会令游戏崩溃的 BUG。关键词:飞行模拟;多态;代码重用Design and realization of a flight simulation game based on VCAbstractThe appearan

3、ce of computer game has represented the naissance of a totally new sort way of entertainment. At present, the computer game has attracted a great deal of players by its unique charm. Along with the game industry flourishing, more and more people has joined the profession of game development. Game de

4、velopment has covered many contents including programming, literature, history, music, arts ,etc. Eliminate the significance of market value, game develop is quite important to the culture evolution of our nation to be a special kind of creativity culture production. Game is indispensable to the cha

5、in of culture industry. The design based on the develop package and the game frame which already exist uses Microsoft Visual C+2005 to be the platform. These develop package and game frame has raveled out the problem which relate to image and sound effect perfectly. The main task of the design is to

6、 add classes that planed by oneself to the game frame, to actualize the function which the design have to realize. When we carry through the classes design, use the inherit and derive function, we need to enable a majority of code can be reused, aim to actualize polymorphism, at the same time. It is

7、 necessary to use virtual function in the baseclass, to make pointer can point to the member which has the same name in the subclass more convenience, afterwards, utilize the develop package to realize the demonstration of game background, finally obtain a flight simulation game which can run on Mic

8、rosoft Visual C+2005, and theres no seriously bugs especially that can make the game crash when running.Key words: flight simulation; polymorphism; code reuse目 录论文总页数:26 页1 引言 .11.1 课题背景 .11.2 国内外研究背景 .11.3 本课题研究的意义 .11.4 本课题研究的方法 .12 游戏软件的现状和 VC 的概况 .12.1 中国游戏软件的现状 .12.2 C+简介 .22.3 MICROSOFT VISUAL

9、 C+简介 .32.4 利用 VISUAL C+开发游戏简介 .33 开发环境介绍 .33.1 开发环境 .33.2 关于 ALLEGRO.44 游戏程序的开发 .44.1 游戏的思路和构想 .4411 游戏想法的产生 .4412 对游戏设计的初步认识 .4413 模块成型阶段 .44.2 程序的类结构 .54.3 游戏的实现 .5431 主类 Level 的实现 .5432 Object 类的实现 .11433 Plane 类的实现 .12434 Player 类的实现 .14435 Enemy 类的实现 .15436 Bullet 类的实现 .16437 Prize 类的实现 .175 程

10、序设计过程中遇到的一些重要问题 .185.1 关于碰撞的问题 .185.2 关于游戏画面的问题 .215.3 关于玩家控制的问题 .23结 论 .24参考文献 .24致 谢 .25声 明 .26第 0 页 共 26 页1 引言1.1 课题背景现今,游戏软件已经成为盈利最高的软件之一,而且还在向着复杂化、大型化发展,其中,很多由 Visual C+作为开发工具的游戏都取得了巨大的成功,比如暴雪公司的魔兽争霸系列和魔兽世界 ,这说明 Visual C+开发游戏具有一定的优势。所以,在 Visual C+平台上设计游戏是极为方便的,这也是优势所在。1.2 国内外研究背景无论是在国内还是国外,游戏编程已经成为了一种时尚,许多程

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号