下载此文档

【毕业设计】基于Qt的俄罗斯方块的设计与开发(整理版).doc


文档分类:IT计算机 | 页数:约38页 举报非法文档有奖
1/ 38
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/ 38 下载此文档
文档列表 文档介绍
内容摘要
俄罗斯方块是个比较经典的小游戏,它实现由四块正方形的色块组成,然后存储在一个数组的四个元素中,计算机随机产生不同七种类型的方块,根据计算机定时器控制它在一定的时间不停的产生,用户根据键盘的四个方向键控制翻转、向左、向右和向下操作,(用信号和槽函数的关联来实现对按键事件的控制)。然后程序根据这七种方块堆叠成各种不同的模型。本设计大体分以下三部分:
第一部分是简介,用基本方法实现自己的俄罗斯方块游戏,介绍游戏的基本概况及要实现的功能。第二部分是功能演示,验证游戏可否按预想方案运行,验证运行流畅度,图形界面的美观度。第三部分是代码分析,这里将展示整个游戏编程代码及接口函数。
本次设计用到的工具是基于UBUNTU下的QT软件,图行界面的处理都是代码实现。
关键词

数组;定时器;信号;槽函数;QT
Design and implementation of Tetris, based on the QT
Name:Yiwenbo Teacher:Wangyiqin
Abstract
Tetris is a classic game, it consists of four square blocks of color, and then stored in an array of four elements, puter randomly generated box of the seven types, according to puter timer control it stop to produce a certain amount of time, according to the four directions of the keyboard keys to control flip, left, right and down operation (signal and slot functions associated with control of key events). The program then based on these seven box stacked into a variety of different models. This design is generally divided into the following three parts: The first part is the introduction to the basic methods to achieve their own game of Tetris. The second part is the functional demonstration; verify that the game please run the desired program. The third part is the game analysis, will show the entire game programming code and an excuse to function. The design tool used is based on the QT under UBUNTU software, the graph line interface processing is code to achieve.
Key words
array; cell function; timer; signal;Qt
目录
引言 - 1 -
第一部分简介 - 3 -
- 3 -
游戏界面与控制 - 3 -
- 3 -
- 4 -
- 4 -
- 4 -
第二部分功能展示 - 5 -
打开游戏 - 5 -
进入游戏 - 6 -
- 6 -
游戏暂停 - 7 -
游戏退出 - 8 -
第三部分代码分析 - 8 -
Tetrix工程 - 8 -
- 9 -
- 10 -
- 11 -
- 12 -
- 13 -
- 14 -
显示框 - 14 -
功能按钮 - 15 -
信号与槽 - 16 -
游戏面板布局 - 16 -

【毕业设计】基于Qt的俄罗斯方块的设计与开发(整理版) 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数 38
  • 收藏数 0 收藏
  • 顶次数 0
  • 上传人 3099984911
  • 文件大小 0 KB
  • 时间2015-02-28
最近更新