PAGE \* MERGEFORMAT
PAGE \* MERGEFORMAT ii
太原理工大学本科生毕业论文
基于QT的扫雷游戏的开发与实现
所在院(系): 软件学院
学生姓名:
指导教师:
研究起止日期:2014.3--2014.6
太 原 理 工 大 学
基于QT的扫雷游戏设计与实现
摘 要
本论文研究的是以QT为开发环境,设计并开发一款扫雷游戏,其功能类似于Windows操作系统自带的扫雷游戏。实现的功能有界面的规划,游戏难度的调整,计时器,鼠标事件以及游戏完成的判定。
论文首先介绍了制作游戏的整体思路及整个游戏设计的流程规划,然后介绍了雷区的布置及地雷随机产生的实现方法;重点介绍了在游戏过程中各事件的处理,其中又以鼠标事件和清除未靠近地雷区方块这两方面最为最要,鼠标事件是利用鼠标所发出的信息了解使用者的意图,进而做出相对应的动作,而清除未靠近地雷区方块由于引进了“扩散”这个概念而使其简单化。
本次设计只是完成了扫雷游戏的基本功能,在细节方面仍然有待完善。
关键词:扫雷; QT; 事件; 扩散
全套设计加扣 3012250582Design And Implementation Of Minesweeping Game Based On The QT Platform
Abstract
What my thesis research for is basic on the develop environment of QT, design and develop a mine game,its function is similar to the mine games of the Windows Operating System .
The thesis has introduced the layout of mined areas and the method of how to create the mines at random. It use vairies of components in QT and the combination of some simple calculations; the thesis lays emphasis on introducing the processing of each event in the game. Among these events ,the mouse event and the event of clearance of the area which isn’t close to the mine field are much more important.The theory of mouse event is that the intention of user is learned by the information sent out by the mouse and then the program runs according to the information .The other event is simplified by the introduction of the concept of HYPERLINK "/s?wd=spread" spread.
This design has been completed the basic function of mine game. The details still need to be improved.
Key words: Mine game; QT; Affairs; HYPERLINK "/s?wd=spread" Spread
目录
TOC \o "1-3" \h \u HYPERLINK \l _Toc9218 摘 要 PAGEREF _Toc9218 i
HYPERLINK \l _Toc7170 Abstract PAGEREF _Toc7170 ii
HYPERLINK \l _Toc22471 第1章 绪论 PAGEREF _Toc22471 1
HYPERLINK \l _Toc4056 1.1研究背景 PAGEREF _Toc4056 1
HYPERLINK \l _Toc24954 1.2 开发的目的及意义 PAGEREF _Toc24954 1
HYPERLINK \l _Toc2883 1.3开发工具的选择 PAGEREF _Toc2883 1
HYPERLINK \l _Toc19784 第2章 QT架构与平台搭建 PAGEREF _Toc19784 2
HYPERL