电脑桌面
添加盘古文库-分享文档发现价值到电脑桌面
安装后可以在桌面快捷访问

基于单片机实现的俄罗斯方块游戏

基于单片机实现的俄罗斯方块游戏_第1页
1/80
基于单片机实现的俄罗斯方块游戏_第2页
2/80
基于单片机实现的俄罗斯方块游戏_第3页
3/80
基于单片机实现的俄罗斯方块游戏MCU based Russia block game摘 要本设计是通过 AT89S52 单片机来实现俄罗斯方块游戏的设计,使用 C 语言进行编程,并通过 Proteus 来进行仿真。本设计要实现的基本功能是:应用按键来控制方块的变换与移动;消除一行并计分;消除多行额外奖励记分,方块堆满时结束游戏等俄罗斯方块的基本功能。单片机在手持娱乐设备上的应用具有非常大的潜力,它能将其带入到一个新的阶段。为了解决外部电路图,必须充分了解所用液晶的显示方法和单片机的外部接口功能,和所需要处理的逻辑关系;还要理解 LCD 液晶的控制原理,来通过数据端口和控制端口来实现画面在液晶上面的显示。程序则要求对外部电路了解的情况下完成自己所需要的功能,并将所要完成的功能用编程语言的形式来实现。然后通过 Protues 仿真实现通过外部按键来控制各种不同图形的方块来玩游戏,并且实现记录分数和通过过关数来改变方块下降的速度。最后将程序下载至 AT89S52 单片机并进行实际运行,实际运行表明,本设计可以实现基本的游戏功能,达到预期的目的。关键词:AT89S52;C 语言;Proteus 仿真;LCD 液晶ABSTRACTThis design is achieved through the AT89S52 microcontroller Tetris game design, programming using C language, and carried out by proteus simulation. The design to achieve the basic functions are: application buttons to control the box, change and movement; eliminate line and scoring; eliminate multi-line incentive points, the game ends when the box filled with basic functions such as Tetris. MCU in the application of handheld entertainment devices have great potential, it can be brought to a new stage. In order to solve the external circuit, we must fully understand the liquid crystal display method and external interface MCU features, and the need to address the logical relationship; also understand that the principle of LCD liquid crystal control to a data port and control port to achieve the above the LCD screen display. Program requires knowledge of the external circuit where they need to complete the function and the function to be completed in the form of programming language used to achieve. Simulation then protues buttons to control an external box to play a variety of graphical games, and achieve record number of scores and the relationship had to change the speed of the module down. Finally, the program downloaded to AT89S52 MCU and the actual operation, the actual operation indicate that this design can achieve basic game functions, to achieve the desired purpose. Key Words:AT89S52; C language; Proteus simulation; LCD liquid cryst目 录1绪 论...............................................................................................................................11.1课题背景..............................................................................................................11.2电子游戏及其分类..............................................................................................11.3电子游戏发展现状..............................................................................................21.3.1电子游戏国外发展现状............................................................................21.3.2电子游戏国内发展现状...............................................................

1、盘古文库是"C2C"交易模式,即卖家上传的文档直接由买家下载,本站只是中间服务平台,本站所有文档下载的收益归上传人(卖家)所有,作为网络服务商,若您的权利被侵害请及时联系右侧客服。

2、本站默认下载后的格式为 docx,pptx ,xlsx,pdf,zippsd等源文件。office等工具即可编辑!源码类文件除外。

3、如您看到网页展示的内容中含有'"133KU.COM"等水印,是因预览和防盗链技术需要对页面进行转换和压缩成图片所生成,文档下载后不会有该内容标识.

4、本站所有内容均由合作方上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺,文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务。

在点击下载本文档时,弹出的对话框中,选择“使用浏览器下载”不支持下载工具多线程下载!

部分浏览图可能存在变形的情况,下载后为高清文件,可直接编辑。

基于单片机实现的俄罗斯方块游戏

漫步者+ 关注
机构认证
内容提供者

该用户很懒,什么也没介绍

确认删除?
回到顶部