文件名称:tanchishe
介绍说明--下载内容均来自于网络,请自行研究使用
本实验以设计贪吃蛇游戏为课题。最终结果是以8*8点阵作为本游戏的显示界面,通过按键BTN1,BTN2,BTN3,BTN4分别控制蛇的运动方向,分别为“上下左右”。蛇的长度为六个点阵,另外以一点表示老鼠,当蛇头吃到老鼠时,老鼠则在点阵上改变位置,也就是说通过一个伪随机函数在点阵上产生老鼠的位置,每当蛇头吃到老鼠时,就自动加一分,并在数码管显示。每隔五分钟,在蛇没有吃到老鼠的前提下,老鼠就自动在点阵上改变位置,这样就增加了游戏的趣味性和难度性。-
In this experiment, the design Snake game for the subject. The end result is 8* 8 dot matrix display as the game through the key BTN1 BTN2, BTN3, BTN4 control the snake s direction of movement, were "up and down about. The length of the snake for six lattice, the addition, with a little mouse, when snakeheads eat mice, rats change position in the lattice, that is a pseudo-random function to generate the location of the mice on a dot matrix, whenever snakeheads eat a mouse, it automatically added a point, and the digital display. Every five minutes, under the premise of the snake did not eat mice, rats will automatically change the position in the lattice, which increases the fun and difficulty of the game.
In this experiment, the design Snake game for the subject. The end result is 8* 8 dot matrix display as the game through the key BTN1 BTN2, BTN3, BTN4 control the snake s direction of movement, were "up and down about. The length of the snake for six lattice, the addition, with a little mouse, when snakeheads eat mice, rats change position in the lattice, that is a pseudo-random function to generate the location of the mice on a dot matrix, whenever snakeheads eat a mouse, it automatically added a point, and the digital display. Every five minutes, under the premise of the snake did not eat mice, rats will automatically change the position in the lattice, which increases the fun and difficulty of the game.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
tanchishe.doc