首页 分享 基于单片机的贪吃蛇游戏设计

基于单片机的贪吃蛇游戏设计

来源:萌宠菠菠乐园 时间:2024-11-26 13:43

基于单片机的贪吃蛇游戏设计_精品

基于单片机的贪吃蛇游戏设计 学生姓名: 学生学号: 院(系): 电气信息工程学院 年级专业: 指导教师: 二〇一五年五月 摘 要 在21世纪的今天,人们的生活开始变得更加丰富多彩。在繁忙的工作之余,娱乐成为人们生活不可或缺的一份子,而游戏作为近年来逐渐兴起的一种娱乐方式,已经越来越受到人们的青睐。在工作学习之余,通过玩游戏来放松、调节紧张的学习工作压力是不错的选择;然而大型的网络游戏玩起来比较耗费时间,且不能随时随地的玩。那么如果这时候拥有一款简单易携带,并且能够缓解压力的小游戏将是个不错的选择,所以,我就设计了这样一款简单易携带的经典小游戏——贪吃蛇。 具体实现上,硬件系统平台采用STC89C52R单片机,搭载LCD12864显示屏,构成一个轻巧简单的游戏机系统。软件系统采用C语言编程,Protues软件设计电路并仿真,KEIL软件进行程序的调试。最终实现贪吃蛇游戏系统。 本次设计的贪吃蛇游戏,实现了传统意义上的贪吃蛇游戏的特点:蛇吃掉豆子后,得分增加并且蛇身变长;分数到达一定数目进行升级以后,蛇运动速度加快。而玩家只需利用方向按钮“上↑、下↓、左←、右→”来改变蛇的运行方向,就能达到娱乐的目的,操作非常简单 。 关键词:贪吃蛇游戏,STC89C52R单片机,LCD12864,C语言 ABSTRACT In the 21st century today, peoples life become more colorful, In the outside of busy work, entertainment become an integral part of peoples life, And the game as emerging in recent years, a kind of entertainment, already more and more get the popular of people, In the outside of work and study, through the play games to relax, adjust the pressure of learning is a good choice; However large network game play more time-consuming, And cant play anywhere, anytime. So if this time has a simple is easy to carry, and can ease the pressure of small game will be a good choice. So, I would design such a simple and easy to carry small classic game –the snake game. On the concrete implementation, with STC89C52RCSingle chip microcomputer system platform, with a LCD display, constitute a lightweight simple game system. Software use C language programming, use Protues software Circuit design and simulation, KEIL Software program debugging, Finally realizes the snake game system. The design of the snake game, Achieved in the traditional sense of the snake game features: after the snake to eat beans, scores and snake-body variable length; Score to reach a certain number after the upgrade, the snakes movement speed. Players need to use the direction key ↑,up, down, left, right , to change the running direction of snake, and can achieve the purpose of entertainment ,the operation is very

相关知识

单片机贪吃蛇 毕业设计.pdf
单片机设计:基于单片机的智能鱼缸控制系统的设计与实现
基于单片机的多功能环保宠物窝设计
基于STM32单片机的智能鱼缸设计
基于单片机的智慧宠物窝系统设计
基于STM32单片机的宠物智能项圈设计
基于51单片机的水族箱控制系统的设计与实现
基于单片机的智能宠物喂食器设计
基于单片机的智能宠物投喂系统的设计
基于STM32单片机的智能鱼缸控制系统设计

网址: 基于单片机的贪吃蛇游戏设计 https://www.mcbbbk.com/newsview657213.html

所属分类:萌宠日常
上一篇: 2022年6月扫舍扫房黄道吉日查
下一篇: 做生意养锦鲤养几条好(生意人养鱼

推荐分享