1 / 30
文档名称:

济源职业技术学院计算机应用技术专业毕业设计论文.doc

格式:doc   大小:405KB   页数:30页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

济源职业技术学院计算机应用技术专业毕业设计论文.doc

上传人:rdwiirh 2018/5/18 文件大小:405 KB

下载得到文件列表

济源职业技术学院计算机应用技术专业毕业设计论文.doc

相关文档

文档介绍

文档介绍:济源职业技术学院
毕业设计(论文)
题目
基于Qt的扫雷游戏设计
系别
信息工程系
专业
计算机应用技术
班级
计应1002班
姓名

学号

指导教师

日期
二零一二年九月
基于Qt的扫雷游戏设计
总计:毕业设计(论文)25 页
图表 10 幅
摘要
扫雷游戏是一款经典的小游戏,这款游戏不仅可以让人们充分享受娱乐的目的,而且可以通过这款小游戏开发人的逻辑推理能力和判断能力。,设计并开发了基于Qt的扫雷游戏。
扫雷游戏主要研究以下两个方面:
第一是初始化问题,包括随机产生本局游戏中的雷数,雷的分布对于每个小区域如何获得周围地区分布的雷数等等。
第二就是对鼠标事件的处理,即在游戏过程中对鼠标事件应如何做出反应。
本论文以Qt作为开发软件,首先使用信号与槽的方法实现菜单、工具栏的功能,其次又以MousePressEvent鼠标事件发出信息来了解使用者的意图,进而做出相对应的动作,再次介绍了清除地雷区方块的方法,通过递归程序的编写,在程序代码上会变得相当简洁。最后利用布局管理组(Layouts)进行整体布局。
使用C++语言设计完成了扫雷游戏的初始化界面,实现了扫雷游戏的计时、重新开始、难度设置、排行榜、帮助等功能。还增加了游戏在成败时弹出对话框等功能。总的来说本次设计在功能上已经基本达到预期的要求。但还有一些不足,比如扫雷游戏设计还可以添加一些背景音乐、背景图片、视频等功能,更能增加人们的娱乐性。
关键词:扫雷游戏;Qt;C++
ABSTRACT
Minesweeper game is a classic game, the game can not only allow people to fully enjoy the entertainment purposes, and by this small game development logical reasoning ability and judgment. The graduation project to development environment, design and development of Qt-based game of Minesweeper.
The minesweeper game the following two aspects:
The first is the initialization problems, including randomly generated number of Council Game Ray Ray distribution for each small area how to get around the geographical distribution of Ray.
The second is the processing of mouse events, mouse events in the course of the game how to react.
In this thesis, QT signals and slots as the development of software, the first to use the method to achieve the functionality of the menus, toolbars, followed Youyi mousePressEvent mouse events issued information to understand the user's intent, and then make a corresponding action, again introduced a clear Minefields box by recursive program code will e quite simple. Finally, the the layout management group (Layouts) overall layout.
Completed minesweeping games initialization interface design, to achieve a mine-sweeping game of timing, start again, difficulty settings, rankings, help functions using the C language. Game in the ess or failure of the pop-up dial