{$cfg_webname}
主页 > 计算机 > 论文 >

基于C语言的俄罗斯方块游戏设计

来源:56doc.com  资料编号:5D26574 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9A5D26574
资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用. 帮助
资料介绍

基于C语言的俄罗斯方块游戏设计(任务书,开题报告,论文15000字)
摘  要
随着人民物质文化水平的不断提高,游戏正逐渐成为越来越多的人们休闲娱乐的主要方式之一。俄罗斯方块作为一款经典的方块消除类游戏,在全世界有着广泛的知名度与大批的拥趸者,同时也为大量同类型游戏提供了灵感。
本次设计将实现经典俄罗斯方块的全部功能,包括随机生成当前方块和下一块方块的预览,方块的移动和旋转,游戏的消行与计分,方块下落速度的设定和递增等等,并加入了当前方块下落位置预览的功能,以提高游戏体验。本次设计采用Windows10系统下的VC6.0平台开发,使用C语言为编程语言。游戏功能均由自定义函数配合C语言标准库中的函数实现,游戏的可视化界面由Windows应用程序接口(API)函数实现,并最终通过编译,得到可执行文件。对于程序编译过程和运行过程中出现的bug,不断修改和优化程序,并最终达到理想效果。程序最终运行表明,本次设计实现了预设的功能,程序稳定性良好,游戏可玩性较高。
关键词:C语言  俄罗斯方块  API

Design and program of Tetris based on the C Programming Language
Abstract
With the continuous improvement of people's material and cultural level, game is becoming the main way to kill time and have fun among more and more people. As a classic block elimination game, Tetris is very popular around the world and have a large number of fans, and also provides a lot of similar games with inspiration.
This program will achieve all of the functions the classic Tetris, including the randomly generation of the current block and preview of the next block, move and rotation of the block, elimination of the block and estimate of scores, setting and increasing the falling speed of the block and so on. In order to improve the gaming experience, the program also has the function to preview the falling position of current block. This program is designed on the VC6.0 platform under Windows 10 system, and it is base on the C Programming Language. All the functions of the game are supported by the C language standard library and custom functions, and the visual interface of the game is supported by Windows application program interface (API). Finally the program passes the compiling, and gets the executable file. About the bugs showed during the process of compiling and running, I continually modify and optimize the program, and finally achieve the ideal program. The program eventually turns out to be successful, the presupposed function and stability of the program work very well, and the playability of the game is also very good.
Key Words: C Programming Language; Tetris; API
  

基于C语言的俄罗斯方块游戏设计
基于C语言的俄罗斯方块游戏设计


目  录
摘  要    I
Abstract    II
第一章  绪论    1
1.1  课题研究背景    1
1.2  论文所做工作    2
第二章  软件设计概述    3
2.1  软件设计内容和要求    3
2.2  程序原理流程图    3
第三章  数据的定义    6
3.1  图形的定义    6
3.1.1  图形变量的定义    6
3.1.2  图形变量的存储    6
3.2  分数和等级的设置    7
3.3  游戏区域的定义    8
3.3.1  逻辑游戏区域的定义    8
3.3.2  窗口大小的定义    9
3.4  游戏状态参数的定义    10
第四章  函数的设计    11
4.1  内部功能函数    16
4.2  显示部分函数    17
4.3  外部输入函数    21
4.4  窗口生成函数    24
第五章  软件的使用    25
5.1  软件调试    25
5.2  软件使用说明    31
结束语    32
参考文献    33
致谢    35
附录 软件程序    36

推荐资料