- 3
- 0
- 约1.99万字
- 约 30页
- 2016-11-27 发布于重庆
- 举报
基于VC的飛行模拟游戏的设计及实现
基于VC的飞行模拟游戏的设计及实现摘 要电子游戏的出现代表了一种全新娱乐方式的诞生。目前,电子游戏正以其独特的魅力吸引着众多的玩家。随着游戏产业的蓬勃发展,越来越多的人加入到了游戏开发的行业。游戏开发涵盖了程序设计、文学、历史、音乐及美术等诸多方面的内容,除去市场价值的意义,电子游戏的发展的必要性还在于对我国文化产业的发展的重要性,游戏作为一种特殊的创意文化产品形态,是文化产业链中不可缺少的一环。设计在利用已有的开发包和已有的游戏框架的基础上,采用Microsoft Visual C++2005为开发平台,这些开发包和框架已经完美地解决了游戏图像和音效方面的问题,设计的主要工作就是向框架中添加自己所设计的类,用于实现设计所要实现的功能。在进行类的设计时,运用C++所具有的继承和派生功能,使很大一部分代码能够得到重用,从而实现多态,同时,还要在父类中很好地引入虚函数,为指针能够指向子类的同名成员提供方便,然后利用开发包里的方法来实现游戏背景的显示,最终得到一个在Microsoft Visual C++2005上运行的飞行模拟游戏,同时在运行时不会出现重大尤其是会令游戏崩溃的BUG。关键词:飞行模拟;多态;代码重用Design and realization of a flight simulation game based on VCAbstractThe 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 t
您可能关注的文档
最近下载
- 大学英语六级词汇表-带音标.pdf VIP
- 第二章成本性态分析与变动成本法_管理会计.doc VIP
- 山东省春季高考英语真题与.docx VIP
- 山东省2024年春季高考考试语文试卷试题真题_可搜索.pdf VIP
- 2025年山东省春季高考英语试卷试题真题(含答案).pdf VIP
- 2021年山东省春季高考数学真题-【含答案】.docx VIP
- 【新教材】人教PEP版(2024)四年级下册英语全册教案(含教学计划).docx
- 2024年山东省春季高考数学试卷试题及答案详解.pdf VIP
- 2024年山东省春季高考数学试卷试题真题(含答案) (2).pdf VIP
- 2024年山东省春季高考数学试卷试题真题(含答案).pdf VIP
原创力文档

文档评论(0)