文件名称:Snake
-
所属分类:
- 标签属性:
- 上传时间:2016-12-06
-
文件大小:10.66mb
-
已下载:4次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
贪吃蛇是经典的街机游戏,最早原型诞生于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
code/.project
code/.settings/org.eclipse.jdt.core.prefs
code/bin/Display/ButtonPanel.class
code/bin/Display/GameFrame.class
code/bin/Display/GameMenu.class
code/bin/Display/GamePanel.class
code/bin/Entities/Food.class
code/bin/Entities/Ground.class
code/bin/Entities/Snake$SnakeDriver.class
code/bin/Entities/Snake.class
code/bin/GameControl/Controller$connectHandler1.class
code/bin/GameControl/Controller$connectHandler2.class
code/bin/GameControl/Controller$endHandler.class
code/bin/GameControl/Controller$Item1Handler.class
code/bin/GameControl/Controller$Item2Handler.class
code/bin/GameControl/Controller$Item3Handler.class
code/bin/GameControl/Controller$Item4Handler.class
code/bin/GameControl/Controller$pauseHandler.class
code/bin/GameControl/Controller$startHandler.class
code/bin/GameControl/Controller.class
code/bin/GameControl/Listener.class
code/bin/Main/Main.class
code/bin/Socket/MyClientThread.class
code/bin/Socket/SocketSet.class
code/bin/StaticData/Global.class
code/src/Display/ButtonPanel.java
code/src/Display/GameFrame.java
code/src/Display/GameMenu.java
code/src/Display/GamePanel.java
code/src/Entities/Food.java
code/src/Entities/Ground.java
code/src/Entities/Snake.java
code/src/GameControl/Controller.java
code/src/GameControl/Listener.java
code/src/Main/Main.java
code/src/Socket/MyClientThread.java
code/src/Socket/SocketSet.java
code/src/StaticData/Global.java
code/bin/Display
code/bin/Entities
code/bin/GameControl
code/bin/Main
code/bin/Socket
code/bin/StaticData
code/src/Display
code/src/Entities
code/src/GameControl
code/src/Main
code/src/Socket
code/src/StaticData
code/.settings
code/bin
code/src
code
score.txt
snake.jar
code/.classpath
code/.project
code/.settings/org.eclipse.jdt.core.prefs
code/bin/Display/ButtonPanel.class
code/bin/Display/GameFrame.class
code/bin/Display/GameMenu.class
code/bin/Display/GamePanel.class
code/bin/Entities/Food.class
code/bin/Entities/Ground.class
code/bin/Entities/Snake$SnakeDriver.class
code/bin/Entities/Snake.class
code/bin/GameControl/Controller$connectHandler1.class
code/bin/GameControl/Controller$connectHandler2.class
code/bin/GameControl/Controller$endHandler.class
code/bin/GameControl/Controller$Item1Handler.class
code/bin/GameControl/Controller$Item2Handler.class
code/bin/GameControl/Controller$Item3Handler.class
code/bin/GameControl/Controller$Item4Handler.class
code/bin/GameControl/Controller$pauseHandler.class
code/bin/GameControl/Controller$startHandler.class
code/bin/GameControl/Controller.class
code/bin/GameControl/Listener.class
code/bin/Main/Main.class
code/bin/Socket/MyClientThread.class
code/bin/Socket/SocketSet.class
code/bin/StaticData/Global.class
code/src/Display/ButtonPanel.java
code/src/Display/GameFrame.java
code/src/Display/GameMenu.java
code/src/Display/GamePanel.java
code/src/Entities/Food.java
code/src/Entities/Ground.java
code/src/Entities/Snake.java
code/src/GameControl/Controller.java
code/src/GameControl/Listener.java
code/src/Main/Main.java
code/src/Socket/MyClientThread.java
code/src/Socket/SocketSet.java
code/src/StaticData/Global.java
code/bin/Display
code/bin/Entities
code/bin/GameControl
code/bin/Main
code/bin/Socket
code/bin/StaticData
code/src/Display
code/src/Entities
code/src/GameControl
code/src/Main
code/src/Socket
code/src/StaticData
code/.settings
code/bin
code/src
code
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.