文件名称:SnakeGame
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2015-04-24
- 文件大小:
- 4kb
- 下载次数:
- 0次
- 提 供 者:
- dan***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
此程序是基于Jfr a me,结合JPanel和Component的监听器来实现的贪吃蛇小游戏。主要实现功能如下:
1)利用方向键来改变蛇的运行方向。
2)在随机的地方产生食物,吃到食物就变成新的蛇体,碰到壁或自身则游戏结束,否则正常运行。
3)空格键暂停或继续游戏。
通过菜单选项可选择三种刷新速度。-
This program is based on the Jfr a me, JPanel and Component combines the listener to achieve the Snake game. The main achievement of the following functions:
1) Use the arrow keys to change the direction of the snake.
2) generates random local food, eat food becomes the new snake body, hit the wall or the end of the game itself, otherwise normal operation.
3) the spacebar to pause or resume the game.
By choice of three menu options refresh rate.
1)利用方向键来改变蛇的运行方向。
2)在随机的地方产生食物,吃到食物就变成新的蛇体,碰到壁或自身则游戏结束,否则正常运行。
3)空格键暂停或继续游戏。
通过菜单选项可选择三种刷新速度。-
This program is based on the Jfr a me, JPanel and Component combines the listener to achieve the Snake game. The main achievement of the following functions:
1) Use the arrow keys to change the direction of the snake.
2) generates random local food, eat food becomes the new snake body, hit the wall or the end of the game itself, otherwise normal operation.
3) the spacebar to pause or resume the game.
By choice of three menu options refresh rate.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SnakeGame.java