如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
北京邮电大学毕业设计PAGE\*MERGEFORMATii连连看游戏设计与实现摘要“连连看”游戏是一款常见游戏。游戏速度节奏快,画面清晰可爱,适合大众玩家。本文主要介绍了游戏的设计过程,其中游戏主要分为4个模块,游戏界面模块、图片随机生成模块、图片消除路径判断、背景音乐模块。游戏核心模块中图片随机生成采用了数字和图片绑定,运用随机函数以及数组交换的算法,实现了游戏图片初始化状态,有效的解决了图片排布问题,方案简单易行;另一核心模块图片消除路径判断,主要采用了分类判断的算法,将连连看图片的位置一一归类,分类设计函数判断位置,实现游戏的基本消除功能。算法思路清晰,便于理解和编码。本游戏实现了连连看的基本功能,可以准确的消除图片、记录分数、提示时间,同时设计了人性化的提示,解决僵局的功能,创新实现了新的连连看规则——消除图片后给予时间奖励,激发了玩家的积极性。关键词:QT;连连看;算法;数组LinkGameDesignandImplementationAbstractLinkgameisacommongame.Thegamehasfast-pacedspeedandthecutepictureThatisfitforpublicplayers.Thispaperdescribesthedesignprocessofthegame,wherethegameisdividedintofourmodules,thegameinterfacemodule,themoduleofrandomlygeneratedpictures,eliminatingpathjudgment,backgroundmusicmodules.GameCoremodule,themoduleofrandomlygeneratedpictures,bindpicturesandimages,usetherandomfunctionandaarrayexchangealgorithm,andachievegamepictureinitializationstate,effectivelysolvetheproblemofpicturearrangement,theplanissimple;anothercoremodulepictures,eliminatepathjudgment,mainlyusesclassificationalgorithmstodeterminethelocationoflinkgamepictureandclassifyit,classificationfunctionsjudgethelocation,andrealizethebasicfunctionofthegamecancellation.Algorithmisclear,easytounderstandandencoding.Thegamerealizethebasicfunctionoflinkgame,itcaneliminatetheexactpicture,recordingscores,suggestingthattime,anddesignhumanetips,thefunctionofsolvingthedeadlock.Itachievesnewrules--aftereliminationofthepictureyoucanbegiventimebonus.Thatisstimulatingtheenthusiasmoftheplayers.Keywords:QT;Link;algorithm;Array目录TOC\o"1-3"\h\z\uHYPERLINK\l"_Toc17676"摘要PAGEREF_Toc17676iHYPERLINK\l"_Toc9949"AbstractPAGEREF_Toc9949iiHYPERLINK\l"_Toc32508"目录PAGEREF_Toc325081HYPERLINK\l"_Toc19926"1.绪论PAGEREF_Toc199261HYPERLINK\l"_Toc11222"1.1游戏简介PAGEREF_Toc112221HYPERLINK\l"_Toc414"1.1.1游戏背景PAGEREF_Toc4141HYPERLINK\l"_Toc667"1.1.2游戏规则PAGEREF_Toc6671HYPERLINK\l"_Toc17298"1.2游戏功能PAGEREF_Toc172981