文件名称:Snake
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2016-12-06
- 文件大小:
- 10.66mb
- 下载次数:
- 0次
- 提 供 者:
- 李*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
贪吃蛇是经典的街机游戏,最早原型诞生于1976 年。本次实验要求完成一个网络对战版的贪吃蛇。具体玩法如下:
a. 游戏有2个玩家,通过网络 socket 通信。玩家1通过 w,a,s,d控制蛇的方向,玩家2通过上下左右箭头控制蛇的方向。
b. 至少随机添加2堵墙,蛇头碰撞到对方获胜。
c. 每次随机生成2个蛋,蛋的位置不与蛇身重合。2个蛋全部被蛇吃完后,再经过 2秒后,再次生成2个蛋。
d. 蛇身的初始长度为2,每吃1个蛋,蛇身长度+1。蛇头与自己蛇身和对手蛇神碰撞,游戏结束,对方获胜。-Snake is a classic arcade game, the first prototype was born in 1976. The experiment required to complete a network war version of the Snake. Specific play as follows:. A game has 2 players, communicate over a network socket. Direction by w, a, s, d to control the snake player 1, player 2 up and down left and right arrows to control the direction of the snake. b. at least 2 add random wall, smugglers bumping into each other to win. c. each randomly generated two eggs, egg position does not coincide with the snake. 2 whole eggs after eating a snake, then after 2 seconds again generate two eggs. d. The initial length of the snake is 2, each eat an egg, snake length+1. Smugglers with their opponents snake and the snake god collision, the game ends, the other side wins.
a. 游戏有2个玩家,通过网络 socket 通信。玩家1通过 w,a,s,d控制蛇的方向,玩家2通过上下左右箭头控制蛇的方向。
b. 至少随机添加2堵墙,蛇头碰撞到对方获胜。
c. 每次随机生成2个蛋,蛋的位置不与蛇身重合。2个蛋全部被蛇吃完后,再经过 2秒后,再次生成2个蛋。
d. 蛇身的初始长度为2,每吃1个蛋,蛇身长度+1。蛇头与自己蛇身和对手蛇神碰撞,游戏结束,对方获胜。-Snake is a classic arcade game, the first prototype was born in 1976. The experiment required to complete a network war version of the Snake. Specific play as follows:. A game has 2 players, communicate over a network socket. Direction by w, a, s, d to control the snake player 1, player 2 up and down left and right arrows to control the direction of the snake. b. at least 2 add random wall, smugglers bumping into each other to win. c. each randomly generated two eggs, egg position does not coincide with the snake. 2 whole eggs after eating a snake, then after 2 seconds again generate two eggs. d. The initial length of the snake is 2, each eat an egg, snake length+1. Smugglers with their opponents snake and the snake god collision, the game ends, the other side wins.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
music.wav
score.txt
snake.jar
code\.classpath
....\.project
....\.settings\org.eclipse.jdt.core.prefs
....\bin\Display\ButtonPanel.class
....\...\.......\GameFrame.class
....\...\.......\GameMenu.class
....\...\.......\GamePanel.class
....\...\Entities\Food.class
....\...\........\Ground.class
....\...\........\Snake$SnakeDriver.class
....\...\........\Snake.class
....\...\GameControl\Controller$connectHandler1.class
....\...\...........\Controller$connectHandler2.class
....\...\...........\Controller$endHandler.class
....\...\...........\Controller$Item1Handler.class
....\...\...........\Controller$Item2Handler.class
....\...\...........\Controller$Item3Handler.class
....\...\...........\Controller$Item4Handler.class
....\...\...........\Controller$pauseHandler.class
....\...\...........\Controller$startHandler.class
....\...\...........\Controller.class
....\...\...........\Listener.class
....\...\Main\Main.class
....\...\Socket\MyClientThread.class
....\...\......\SocketSet.class
....\...\.taticData\Global.class
....\src\Display\ButtonPanel.java
....\...\.......\GameFrame.java
....\...\.......\GameMenu.java
....\...\.......\GamePanel.java
....\...\Entities\Food.java
....\...\........\Ground.java
....\...\........\Snake.java
....\...\GameControl\Controller.java
....\...\...........\Listener.java
....\...\Main\Main.java
....\...\Socket\MyClientThread.java
....\...\......\SocketSet.java
....\...\.taticData\Global.java
....\bin\Display
....\...\Entities
....\...\GameControl
....\...\Main
....\...\Socket
....\...\StaticData
....\src\Display
....\...\Entities
....\...\GameControl
....\...\Main
....\...\Socket
....\...\StaticData
....\.settings
....\bin
....\src
code