基于Qt的俄罗斯方块游戏开发

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

本科毕业设计说明书

基于Qt的俄罗斯方块游戏开发

系、部:电气与信息工程系

学生姓名:***

指导教师:戴日光职称讲师

专业:电子信息工程

班级:电子0801

完成时间:2012.5.20

摘要

在现今电子信息高速发展的时代,电子游戏已经深入人们的日常生活,成为老少皆宜的娱乐方式。但是游戏设计结合了日新月异的技术,在一个产品中整合了复杂的设计、艺术、声音和软件,所以并不是人人皆知。直到今天,在中国从事游戏设计的人仍然算不上多,但是游戏行业的发展之快,远超如家电、汽车等传统行业,也正因为如此,游戏人才的教育、培养远落后于产业的发展。

俄罗斯方块是一款古老的风靡全球的经典游戏,它看似简单但却变化无穷,令人上瘾。它最早出现在PC机上,我国的用户都是通过红白机了解、喜欢上它的,相信有很多人到现在还是对它念念不忘的。无可争议,俄罗斯方块是有史以来最伟大的游戏之一。在曾经发布过的所有游戏中,俄罗斯方块还被认为是仅有的一个能够真正吸引广泛人群的作品。为了怀念经典,也为了能够更进一步掌握Qt编程,我决定用Qt开发一个单机版的的俄罗斯方块游戏。俄罗斯方块的实现由四块正方形的色块组成,计算机随机产生不同七种类型的方块,根据计算机时钟控制它在一定的时间不停的产生,用户根据键盘的四个方向键控制翻转、向左、向右和向下操作,(控制键的实现是由键盘的方向键的事件处理实现)。然后程序根据这七种方块堆叠成各种不同的模型。

论文描述了游戏的历史,开发此游戏的环境,游戏开发的意义。遵循软件工程的知识,从软件问题定义开始,接着进行可行性研究、需求分析、概要设计、详细设计,最后对软件进行了测试,整个开发过程贯穿软件工程的知识体系。

此次设计在Microsoft Windows 7系统下,以C++为开发语言,在Qt 4.7.4开发平台上进行游戏的设计与实践。

关键词:游戏设计;算法;数组;事件

ABSTRACT

In the era of high-speed development of electronic information, computer game has enter people’s daily life, become an amusement adapt to old and young. But Game design is a combination of fast-moving technology, the complexity of integrating design、 art、audio and software into a single production, so this technology isn’t known by everyone. up-to-date, there are few people work at game design all the same, whereas, the development of game industry more faster than traditional industry as home appliances and automobile, by the reason of this situation, the education and training of person with ability of game design drop behind the development of game industry.

The Russian square piece is a get-away drama with all proper old young , it carry out to be constitute by four pieces of colors of exact square piece, then save in one four chemical elements of the piece set, random creation dissimilarity of calculator seven the square piece of the category type, control it according to the calculator clock in certain time continuously creation, the customer is inside out according to four directions key control of the keyboard, to left, rightwards and get down the operation,.( the realization of the control key is to be carry out by the event handling of the direction key of the keyboard)Then the procedure pileds according to these seven kinds of square pieces various different model.

The thesis has described the game history , has developed this game environment, development significance of game. Knowledge abiding by a software engineering, definition begins from software problem , proceed to carry out feasibility study , need analysis , essentials design , detailed design, the at last has carried out a testing on the software , entire exploitation process has run through the software engineering knowledge hierarchy.

The computer game design and practice are designed on Qt 4.7.4 developing platform with C++ developing instrument, under Microsoft Windows 7 system this time.

相关文档
最新文档