基于MSP430G2553的贪吃蛇游戏设计
Snake Game Design Based on MSP430G2553
张皎 1李嘉兴1
作者信息
- 1. 西安交通大学 电气工程学院,陕西 西安 710049
- 折叠
摘要
贪吃蛇游戏作为一款经典的益智小游戏倍受人们喜爱[1].基于市面上的单片机综合游戏机存在严重的滞后性[2],采用TI公司的MSP430G2553 LaunchPad微处理器为主控平台,在CCS8.0和VSCODE 2019网页设计平台的开发环境下,结合G2扩展板上的机械按键,音频功放及双显示屏(LCD12864与G2自带LCD屏)实现了基于MSP430单片机的贪吃蛇小游戏设计.并着重介绍了基于MSP430单片机的贪吃蛇小游戏开发的思路,并详细给出了游戏算法功能模块的具体实现代码.实验结果表明,该系统的人机交互性能强,功能扩展性优异,对今后的基于单片机的小游戏开发具有一定的指导意义[3].
Abstract
Snake game as a classic puzzle game is very popular.Based on the serious lag of single-chip integrated game consoles on the market.TI's MSP430G2553 LaunchPad microprocessor is used as the main control platform,under the development environment of CCS8.0 and VSCODE 2019 web design platform,combined with the mechani-cal button on G2 expansion board,audio amplifier and dual display(LCD12864 and G2 come with LCD screen),the design of the snake game is realized based on MSP430 microcontroller.The development of snake game based on MSP430 microcontroller is introduced,and the code of game algorithm function module is given in detail.The experi-mental results show that the system has strong human-computer interaction performance and excellent functional scalability,which has certain guiding significance for the development of microcontroller-based small games in the fu-ture.
关键词
MSP430G2553/CCS8.0/VSCODE/2019/LCD12864/贪吃蛇游戏设计Key words
MSP430G2553/CCS8.0/VSCODE 2019/LCD12864/snake game design引用本文复制引用
出版年
2024