- 1、本文档共57页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于QT的俄罗斯方块游戏
设计与实现
摘 要
为了能够更进一步掌握Qt编程,我决定用Qt开发一个单机版的的俄罗斯方块游戏。俄罗斯方块的实现由四块正方形的色块组成,计算机随机产生不同七种类型的方块,根据计算机时钟控制它在一定的时间不停的产生,用户根据键盘的四个方向键控制翻转、向左、向右和向下操作,(控制键的实现是由键盘的方向键的事件处理实现)。然后程序根据这七种方块堆叠成各种不同的模型。
本次设计用到的工具是基于UBUNTU或windows下的QT软件实现,图行界面的处理都是代码实现.
论文描述了游戏的历史,开发此游戏的环境,游戏开发的意义。遵循软件工程的知识,从软件问题定义开始,接着进行可行性研究、需求分析、概要设计、详细设计,最后对软件进行了测试,整个开发过程贯穿软件工程的知识体系。本游戏操作简单,界面清晰,让玩家容易上手操作。
关键词:游戏设计;算法;数组;事件;QT
Design and implementation of Tetris, based on the QT
ABSTRACT
In order to further grasp the Qt programming, I decided to use Qt to develop a stand-alone version of the game tetris.Tetris implementation is composed of four square of color piece, the computer randomly generate different seven types of square, according to the control it in a certain amount of time on the computer clock, users according to the four keyboard direction key control flip, left, right and down operation, (the realization of the control key is by the keyboard direction key event handling implementation).Then the program according to the seven squares stack into a variety of different models.
The design tool used is based on the QT under UBUNTU or windows software, the graph line interface processing is code to achieve.
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. This game is simple, clear interface, easy operation for players.
Key words:game design;calculate way;several;event;QT摘 要 i
ABSTRACT ii
目 录 3
1绪 论 1
1.1 开发目的 1
1.2 俄罗斯方块游戏的现状 1
1.3 研究的主要内容 2
1.4 研究的意义 2
2 可行性研究 4
2.1 设计目的 4
2.2 软件问题定义 4
2.3 可行性分析 4
2.3.1技术可行性 4
2.3.2经济可行性 4
2.3.3操作可行性 5
2.3.4法律可行性 5
2.4 结论意见 5
3需求分析 6
3.1 引言 6
3.2游戏功能分析 6
3.2.1 系统概述 6
您可能关注的文档
最近下载
- 2025年反诈防骗安全知识竞赛题库及答案.docx
- 高中英语读后续写满分突破主题专练:专题02 人与动物主题续写(解析版).doc VIP
- GA 423-2015 警用防弹盾牌.pdf
- 社区生鲜招商方案.docx VIP
- MSD(湿敏器件防护)控制规范精讲.doc
- 最新2025年行政执法证完整考试题库必背100题(含标准答案).pdf VIP
- 标准图集-05G525吊车轨道联结及车挡(适用于钢吊车梁).pdf
- 精编单片微机原理与接口技术(第2版宋跃版)习题参考答案资料.docx
- 3.2 体量与力量——雕塑的美感 课件-2024-2025学年高中美术人美版(2019)美术鉴赏.pptx
- 2024年四川各地中考物理试题含答案合集共10套.doc
文档评论(0)