摘要
随着社会的发展,游戏的易携性越来越受到人们的关注,基于嵌入式平台的游戏设计迅速崛起。FPGA因其高速度、高精度等功能特性,被越来越多的游戏开发者所接受。该设计利用FPGA来驱动16×16 LED点阵实现贪食蛇游戏,玩家通过4个方向键控制贪食蛇不断地吞食点阵上随机出现的老鼠,贪食蛇的长度也随之加长,7段数码管实时显示玩家得分。该设计采用VHDL语言,在FPGA实验平台上实现了该贪食蛇游戏。经测试,游戏运行良好,可进一步推广使用。
With the social development, people pay more attention to the portability of games so that the design of games based on embedded platform has rapidly developed. FPGA has been accepted by more and more game developers because of its high speed, high precision and other features. FPGA is used in this design to drive 16*16 LED to realize gluttony snake game. The game player uses the four direction keys to control the snake to eat the mice which is randomly generated in the dot matrix and the length of snake is getting longer. The score of player is displayed on seven segment digital tube. VHDL is used in this design to implement this game on the FPGA experimental platform. The testing result indicates that the game runs well, and can be promoted further.
出处
《现代电子技术》
2014年第18期105-106,109,共3页
Modern Electronics Technique
基金
西南石油大学“本科教学改革与质量工程”
《可编程逻辑系统设计》教学改革与创新实践研究(XUTP1301026)