基于Qt的连连看游戏的设计与开发.docx
《基于Qt的连连看游戏的设计与开发.docx》由会员分享,可在线阅读,更多相关《基于Qt的连连看游戏的设计与开发.docx(64页珍藏版)》请在第一文库网上搜索。
1、在现今电子信息高速发展的时代,电子游戏已然成为大众最受欢迎的娱乐消遣方式,经典的连连看是个老少皆宜的小游戏,它实现由各式各样的成对图片组成,然后存储在一个二维的数组中,计算机随机产生各种不同类型的图片,根据计算机时钟控制它在一定的时间内随机产生,用户可根据鼠标和回车键点击图片、若两次点击的图片一样,则消掉图片。本文用QT来设计与实现简单的连连看游戏的基本功能,玩家可以在游戏区域中通过键盘控制来选取相同的两个物件,采用特定的消除规则对它们进行消除的操作,当游戏区域中的所有方块对都被消除后玩家即可胜利。文章对该游戏的算法以及游戏图案的绘制进行详细的介绍。实现起来较简单,同时也比较实用。关键词:Qt
2、;游戏设计;算法;数组;信号与槽ABSTRACTIn the current era of rapid development of electronic information,electronic game has become the most popular entertainment popularpastime, classic Russian square is a enjoyed by young and old little game,it achieved by four square of color piece, and then stored in a twodime
3、nsional array, computer random generation seven different types ofsquare, according to the computer clock control it in certain time keepproduced, the user can according to the keyboard four the direction keycontrol block turns, moves left, move to the right, move down operationand the program accor
4、ding to the seven square are stacked into a differentmodel. And Laura square is based on square in Russia, give the Russiansquare new challenge pattern, its inspiration from the network anotherkind of popular video games-tomb raider. Players to the identity of theadventurers into the game, players n
5、eed only to a certain score, canchallenge higher difficulty levels of the game, of course, if you are good,you will have the chance to open the mysterious hide organs, the morefull of imagination and stimulation of play will wait for you take yourchallenge.Key words: Qt; Game design; Algorithm; Arra
6、y;Signals and slots.目录摘要IABSTRACTII第一章绪论31. 1游戏背景31.2游戏概述3第二章方案论证51.1 选择开发语言5第三章需求分析133. 1软硬件需求133.2游戏功能需求13第四章游戏总体设计154. 1总体设计154.2游戏开始模块设计154. 3游戏设置模块设计164.4游戏核心模块的设计 16第五章具体实现185.1 模型层设计185.2 视图层设计185.3 其它相关技术的实现 19第六章游戏测试206. 1按键事件的功能测试 206.2 图片消失测试206.3 声音和显示测试206.4 测试结果分析21总结21致谢23参考文献24附录源代码2
7、5解放东路课时费老师打款回复了第一章绪论1.1 游戏背景说到连连看,就不得不从经典小游戏说起,连连看是一款古老的风靡全球的经典游戏,它最早出现在PC机上,我国的用户都是通过红白机了解、喜欢上它的,相信有很多人到现在还是对它念念不忘的。无可争议,连连看是有史以来最伟大的游戏之一。在曾经发布过的所有游戏中,连连看还被认为是仅有的一个能够真正吸引广泛人群的作品,曾今造成的轰动与经济价值可以说是游戏史上的一件大事,它看似简单却变化无穷,令人着迷,相信大多数玩家都还记得为它痴迷得茶饭不思的那个连连看时代。但是随着网络信息的高速发展,连连看也要跟随时代的发展,以满足大众的需要。到如今,网络上已经出现了各种
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 Qt 连连 游戏 设计 开发
