文件名称:tanchishe
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.03mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
本实验以设计贪吃蛇游戏为课题。最终结果是以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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.