连连看游戏设计与实现毕业设计实现
- 格式:docx
- 大小:527.86 KB
- 文档页数:55
北京邮电大学毕业设计
i
连连看游戏设计与实现
摘 要
“连连看”游戏是一款常见游戏。游戏速度节奏快,画面清晰可爱,适合大众玩家。本文主要介绍了游戏的设计过程,其中游戏主要分为4个模块,游戏界面模块、图片随机生成模块、图片消除路径判断、背景音乐模块。
游戏核心模块中图片随机生成采用了数字和图片绑定,运用随机函数以及数组交换的算法,实现了游戏图片初始化状态,有效的解决了图片排布问题,方案简单易行;另一核心模块图片消除路径判断,主要采用了分类判断的算法,将连连看图片的位置一一归类,分类设计函数判断位置,实现游戏的基本消除功能。算法思路清晰,便于理解和编码。
本游戏实现了连连看的基本功能,可以准确的消除图片、记录分数、提示时间,同时设计了人性化的提示,解决僵局的功能,创新实现了新的连连看规则——消除图片后给予时间奖励,激发了玩家的积极性。
关键词: QT;连连看;算法;数组
北京邮电大学毕业设计
ii Link Game Design and Implementation
Abstract
Linkgame is a common game. The game has fast-pacedspeed and the cute picture That is
fit for public players . This paper describes the design process of the game , where the game is
divided into four modules, the game interface module , the module of randomly generated
pictures , eliminating path judgment , background music modules.
Game Core
module, the
module of
randomly generated pictures ,bind pictures and
images, use the random function and a arrayexchange algorithm, and achieve game picture
initialization state , effectively solve the problem of picture arrangement , the plan is simple ;
another core
module pictures ,eliminate path judgment , mainly uses classification
algorithms to
determine the location oflinkgame picture and classify it , classification
functions judge the
location,and realize
the basic function of
the game
cancellation .
Algorithm is clear, easy to understand and encoding.
The game realize the basic function of linkgame, it can eliminate the exact picture ,
recording scores , suggesting that time ,and design humane tips ,the function of solving the
deadlock .It achieves new rules --
after elimination
of the picture you can be given time
bonus .That is stimulating the enthusiasm of the players .
Keywords:QT; Link; algorithm; Array
北京邮电大学毕业设计
目录
摘要 .................................................................................................................................... I
ABSTRACT ...................................................................................................................... II
目录 ................................................................................................................................... 1
1. 绪论 ............................................................................................................................ 1
1.1 游戏简介
............................................................................................................... 1
1.1.1 游戏背景 ....................................................................................................... 1
1.1.2 游戏规则 ....................................................................................................... 1
1.2 游戏功能 ............................................................................................................... 1
1.2.1 美观大气的界面 ........................................................................................... 1
1.2.2 背景音乐的添加 ........................................................................................... 1
1.2.3 奖励时间的设置 ........................................................................................... 1
1.2.4 提示功能 ....................................................................................................... 1
1.2.5 僵局的重置 ................................................................................................... 1
1.2.6 得分记录、难度 ........................................................................................... 2
1.2.7
开始、重新开始、退出 ............................................................................... 2
1.3 游戏设计的主要工作 ........................................................................................... 2
1.3.1 游戏设计需要解决的问题 ........................................................................... 2
1.3.2 游戏设计需要使用的算法 ........................................................................... 2
1.3.3 游戏设计创新点 ........................................................................................... 2
2. 系统分析 .................................................................................................................... 4
2.1 技术可行性分析
................................................................................................... 4
2.1.1 算法分析 ....................................................................................................... 4
2.1.2 开发语言分析 ............................................................................................. 12
2.1.3 开发平台分析 ............................................................................................. 14
2.2 需求分析 ............................................................................................................. 16