您好,欢迎访问三七文档
当前位置:首页 > 临时分类 > 基于VC++的推箱子游戏设计与实现
本科毕业设计(论文)基于VC++的推箱子游戏设计与实现学院自动化学院专业电子信息科学与技术年级班别2008级(2)班学号3108001166学生姓名吕文财指导教师________张学习_____2012年6月基于VC++的推箱子游戏的设计与实现吕文财自动化学院摘要近年来随着科技的飞速发展,VisualC++语言的应用正在不断深入。VisualC++语言是当今国际上非常流行的计算机高级编程语言之一,它是面向对象的可视化集成编程系统。它不但具有程序框架自动生成、灵活方便的类管理、代码编写和界面设计集成交互操作、可开发多种程序等优点,而且通过简单的设置就可使其生成的程序框架支持数据库接口、OLE2,WinSock网络、3D控制界面。它更以自动编译功能和高级除错功能著称。因此,广泛受到编程人员青睐。不仅适合作为系统描述语言,也用来编写系统软件,还可以用来编写应用软件和设计游戏等。本论文着重分析用MicrosoftVisualC++语言实现一个较为简单的推箱子游戏,旨在介绍推箱子游戏的实现方法,并逐步介绍MicrosoftVisualC++6.0图形编程的方法和技巧。本设计通过主界面对话框类、关口选择对话框类、帮助对话框类三大类以及键盘操作模块、游戏规则模块、地图文件读取模块、背景音乐播放模块、地图绘制模块,共五大模块构成。实现了任意关数选择、难度依次加大、游戏步数记录、背景音乐播放、游戏帮助、胜负判断等多个功能,采用图形函数的使用实现了一个完整的推箱子游戏界面,界面清晰可见。关键词:推箱子,c++语言,模块,图形编程AbstractInrecentyears,withtherapiddevelopmentofscienceandtechnology,VisualC++languageapplicationarecontinuouslyindepth.VisualC++languageisverypopularonthecurrentinternationaladvancedprogramminglanguagesofthecomputer,itisanobject-orientedprogrammingsystemintegrationofvisualization.Itnotonlyhastheprogramframeautomaticallygenerate,flexibleconvenientclassmanagement,codingandinterfacedesignintegration,candevelopavarietyofinteractiveoperationproceduresandotheradvantages,andthroughthesimpleSettingswillbeabletomakeitsgeneratedprogrammingframeworksupportdatabaseinterface,OLE2,WinSocknetwork,3Dcontrolinterface.Itmoreforautomaticcompilerfunctionandseniordebuggingisfamousforitsfunction.Therefore,widelyfavoredbyprogrammingstaff.Notonlyforthesystemdescriptionlanguage,whichisalsousedtowritethesystemsoftware,canalsobeusedtowriteapplicationsoftwareandgamedesign,etc.ThispaperfocusesonanalyzingwithMicrosoftVisualC++languagerealizearelativelysimplepushedboxgame,istointroducetherealizationmethodofgamepushedbox,andgraduallyintroduceMicrosoftVisualC++6.0graphicsprogrammingmethodsandtechniques.Thisdesignthroughthemaininterfacedialogboxclass,passoptionsdialogboxclass,helpdialogboxclassthreecategoriesandkeyboardmodule,therulesofthegamemodule,mapreadingmodules,backgroundmusicfilesplaymodule,mapmodule,atotaloffivemodule.Realizetherandomnumber,thedifficultyinturnoffchoice,themoresteps,backgroundmusicrecordgameplay,thegamewonmorethanjudgementtohelp,thefunction,theuseofgraphicsfunctionsachievedacompletepushedboxgameinterface,interfacecanbeclearlyseen.Keyword:boxman,C++language,modules,graphicsprogramming目录1绪论..............................................................................................................................11.1课题研究的意义.................................................................................................11.2国内外研究动态.................................................................................................21.2.1推箱子游戏的研究动态...........................................................................21.2.2国内外研究现状及分析...........................................................................32课题研究相关技术与分析..........................................................................................62.1MicrosoftVisualC++6.0概述.........................................................................62.2可行性研究与需求分析..................................................................................73推箱子游戏的总体设计..............................................................................................93.1推箱子游戏概述.................................................................................................93.2推箱子游戏的基本要求..................................................................................93.1.1开发软件及硬件环境要求....................................................................93.1.2运行环境................................................................................................93.1.4测试环境操作系统与硬件配置............................................................93.1.4界面要求................................................................................................93.3推箱子游戏具有的功能..................................................................................103.3推箱子游戏系统设计.......................................................................................113.3.1推箱子游戏功能架构...........................................................................113.3.2程序结构设计.......................................................................................113.3.3出错处理设计......................................................................................123.3.4维护设计..............................................................................................133.4游戏界面设计...................................................................................................133.4.1游戏主界面的设计..............................................................................133.4.2游戏菜单结构的设计..........................................................................133.4.3游戏中关口选择对话框的设计..........................................................144推箱子游戏的设计与实现........................................................................................154.1推箱子游戏的界面实现...................................................................................154.1.1游戏菜单的实现............................................
本文标题:基于VC++的推箱子游戏设计与实现
链接地址:https://www.777doc.com/doc-3798597 .html