linux qt扫雷论文,(毕业论文)基于QT的扫雷游戏的开发与实现.doc

基于QT的扫雷游戏设计与实现

摘 要

本论文研究的是以QT为开发环境,设计并开发一款扫雷游戏,其功能类似于Windows操作系统自带的扫雷游戏。实现的功能有界面的规划,游戏难度的调整,计时器,鼠标事件以及游戏完成的判定。

论文首先介绍了制作游戏的整体思路及整个游戏设计的流程规划,然后介绍了雷区的布置及地雷随机产生的实现方法;重点介绍了在游戏过程中各事件的处理,其中又以鼠标事件和清除未靠近地雷区方块这两方面最为最要,鼠标事件是利用鼠标所发出的信息了解使用者的意图,进而做出相对应的动作,而清除未靠近地雷区方块由于引进了“扩散”这个概念而使其简单化。

本次设计只是完成了扫雷游戏的基本功能,在细节方面仍然有待完善。

关键词:扫雷; QT; 事件; 扩散

Design 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 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;Spread

目录

摘 要i

Abstractii

第1章 绪论1

1.1研究背景1

1.2 开发的目的及意义1

1.3开发工具的选择1

第2章 QT架构与平台搭建2

2.1 QT介绍2

2.1.1 QT语言的特性2

2.1.2 QT的优势2

2.1.3 QT/Embedded介绍3

2.2 QT的架构4

2.3 QT的组成4

2.4 QT开发平台的搭建6

2.5 QT SDK及QT Creator工具的安装6

第3章 游戏的总体分析与设计8

3.1 设计构想8

3.2 流程规划8

3.3 画面规划10

第4章 游戏的详细设计11

4.1 游戏的开始11

4.2 雷区分布12

4.3 游戏中主要模块的介绍与使用14

4.3.1鼠标事件14

4.3.2地雷及雷区表面探测情况15

4.3.3清除未靠近地雷的方块16

4.3.4游戏难度的选择17

4.4 游戏的判断19

4.4.1游戏成功完成19

4.4.2 游戏进行失败21

4.5 重新进行游戏22

4.6 关于游戏23

4.7 英雄榜24

4.8 游戏测试及结果25

总结26

参考文献27

致 谢28

外文原文29

外文翻译42

第1章 绪论

扫雷最原始的版本可以追溯到1973年一款名为“方块”的游戏。不久之后,“方块”被改写成了游戏“Rlogic”。在“Rl

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值