摘要
本设计基于LabVIEW软件,由软件和硬件两部分组成。软件部分实现贪吃蛇和蛋的随机出现,并实现贪吃蛇的行走以及增长,通过LabVIEW的编程来实现游戏的碰墙及自杀规则,从而达到游戏正常运行的目的。硬件部分由二极管点阵和四个按键构成,利用Protues设计软件并仿真电路,并制作相应的PCB板,来使贪吃蛇能正常显示出来并通过四个按键来操控它的行走方向。通过这个设计,用户可以自由控制贪吃蛇行走方向,同时,还有三种游戏模式供用户选择。
This design is based on LabVIEW software and consists of software and hardware. The software partially realizes the random appearance of snakes and eggs, and the walking and growth of snakes. To achieve the normal operation of the game through LabVIEW programming to achieve the rules of the game against the wall and suicide. The hardware part consists of diode array and four keys. Design and simulate circuits with Protues software, and make corresponding PCB board, to achieve that snakes can show normally and control its walking direction through four keys. Through this design, the user can control the direction of the small snake walking freely, and there are three game modes for the user to choose.
作者
汪源
李宛聪
黄文敏
白金妍
Wang Yuan;Li Wancong;Huang Wenmin;Bai Jinyan(Institute of Science and Technology, University of Sanya, Sanya Hainan 572022, China;Southwest University of Science and Technology, Mianyang Sichuan 621700, China)
出处
《信息与电脑》
2018年第9期102-103,106,共3页
Information & Computer