文件名称:SnakeGame
-
所属分类:
- 标签属性:
- 上传时间:2015-04-24
-
文件大小:3.55kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
此程序是基于JFrame,结合JPanel和Component的监听器来实现的贪吃蛇小游戏。主要实现功能如下:
1)利用方向键来改变蛇的运行方向。
2)在随机的地方产生食物,吃到食物就变成新的蛇体,碰到壁或自身则游戏结束,否则正常运行。
3)空格键暂停或继续游戏。
通过菜单选项可选择三种刷新速度。-
This program is based on the JFrame, 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 JFrame, 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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.