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

上传人:aa****6 文档编号:38336462 上传时间:2018-04-30 格式:DOC 页数:24 大小:401KB
返回 下载 相关 举报
济源职业技术学院计算机应用技术专业毕业设计(论文)_第1页
第1页 / 共24页
济源职业技术学院计算机应用技术专业毕业设计(论文)_第2页
第2页 / 共24页
济源职业技术学院计算机应用技术专业毕业设计(论文)_第3页
第3页 / 共24页
济源职业技术学院计算机应用技术专业毕业设计(论文)_第4页
第4页 / 共24页
济源职业技术学院计算机应用技术专业毕业设计(论文)_第5页
第5页 / 共24页
点击查看更多>>
资源描述

《济源职业技术学院计算机应用技术专业毕业设计(论文)》由会员分享,可在线阅读,更多相关《济源职业技术学院计算机应用技术专业毕业设计(论文)(24页珍藏版)》请在金锄头文库上搜索。

1、济源职业技术学院济源职业技术学院毕业设计(论文)毕业设计(论文)题目基于 Qt 的扫雷游戏设计 系别信息工程系 专业计算机应用技术 班级计应 1002 班 姓名学号指导教师日期 二零一二年九月 基于 Qt 的扫雷游戏设计总计:毕业设计(论文)25 页图表 10 幅摘 要扫雷游戏是一款经典的小游戏,这款游戏不仅可以让人们充分享受娱乐的目的,而且可以通过这款小游戏开发人的逻辑推理能力和判断能力。本次毕业设计我们以Qt4.6 为开发环境,设计并开发了基于 Qt 的扫雷游戏。扫雷游戏主要研究以下两个方面:第一是初始化问题,包括随机产生本局游戏中的雷数,雷的分布对于每个小区域如何获得周围地区分布的雷数等

2、等。第二就是对鼠标事件的处理,即在游戏过程中对鼠标事件应如何做出反应。本论文以 Qt 作为开发软件,首先使用信号与槽的方法实现菜单、工具栏的功能,其次又以 MousePressEvent 鼠标事件发出信息来了解使用者的意图,进而做出相对应的动作,再次介绍了清除地雷区方块的方法,通过递归程序的编写,在程序代码上会变得相当简洁。最后利用布局管理组(Layouts)进行整体布局。使用 C+语言设计完成了扫雷游戏的初始化界面,实现了扫雷游戏的计时、重新开始、难度设置、排行榜、帮助等功能。还增加了游戏在成败时弹出对话框等功能。总的来说本次设计在功能上已经基本达到预期的要求。但还有一些不足,比如扫雷游戏设

3、计还可以添加一些背景音乐、背景图片、视频等功能,更能增加人们的娱乐性。关键词: 扫雷游戏;Qt;C+IABSTRACTMinesweeper 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 Qt4.6 development environm

4、ent, 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

5、 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 info

6、rmation to understand the users intent, and then make a corresponding action, again introduced a clear Minefields box by recursive program code will become quite simple. Finally, the the layout management group (Layouts) overall layout.Completed minesweeping games initialization interface design, to

7、 achieve a mine-sweeping game of timing, start again, difficulty settings, rankings, help functions using the C language. Game in the success or failure of the pop-up dialog box. Overall, the design function has basically reached the expected requirements. But there are some disadvantages, such as m

8、inesweeping game design can also add some background music, background image, video, and can help increase peoples entertainment.Keywords: Minesweeper game; Qt; C+目 录摘 要 .I ABSTRACT.II 第 1 章 绪论.- 1 - 1.1 研究背景.- 1 - 1.2 研究原因.- 1 - 1.3 研究意义.- 1 - 第 2 章 Qt 简介.- 2 - 2.1 Qt 特征.- 2 - 2.2 Qt 核心编程技术.- 2 - 2.2.1 元对象系统.- 2 - 2.2.2 信号和槽机制.- 3 - 2.2.3 QObject 类.- 3 - 2.2.4 对象树.- 3 - 2.2.5 事件.- 3 - 2.2.6 QApplication 类.- 3 - 2.2.7 QWidget 类.- 4 - 2.2.8 基本布局(QLayout).- 4 - 2.3 C+面向对象程序设计.- 4 - 2.4 Qt 程序用到的类.- 5 - 2.5 Qt 应用程序实现.- 5 - 2.6 本章小结.- 6 - 第 3 章 扫雷游戏设计.

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 大杂烩/其它

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