- 1、本文档共31页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
VC的飞行模拟游戏的设计及实现
基于VC的飞行模拟游戏的设计及实现
摘 要
电子游戏的出现代表了一种全新娱乐方式的诞生。目前,电子游戏正以其独特的魅力吸引着众多的玩家。随着游戏产业的蓬勃发展,越来越多的人加入到了游戏开发的行业。游戏开发涵盖了程序设计、文学、历史、音乐及美术等诸多方面的内容,Microsoft Visual C++2005为开发平台,这些开发包和框架已经完美地解决了游戏图像和音效方面的问题,设计的主要工作就是向框架中添加自己所设计的类,用于实现设计所要实现的功能。在进行类的设计时,运用C++所具有的继承和派生功能,使很大一部分代码能够得到重用,从而实现多态,同时,还要在父类中很好地引入虚函数,为指针能够指向子类的同名成员提供方便,然后利用开发包里的方法来实现游戏背景的显示,最终得到一个在Microsoft Visual C++2005上运行的飞行模拟游戏,同时在运行时不会出现重大尤其是会令游戏崩溃的BUG。
Design and realization of a flight simulation game based on VC
Abstract
The appearance 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 development 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 chain 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 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 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 Microsoft Visua
文档评论(0)