agariofriv / agario-html5-games
Agario 框架。
Requires
- php: >=5.6.4
- laravel/framework: 5.4.*
- laravel/tinker: ~1.0
Requires (Dev)
- fzaninotto/faker: ~1.4
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~5.7
This package is not auto-updated.
Last update: 2024-09-21 11:43:12 UTC
README
使用 Socket.IO 和 HTML5 canvas 编写的 Agar.io 克隆版本。基于 NodeJS 的一个简单但强大的 Agar.IO。
游戏基础
Move your mouse around the screen to move your cell.
Eat food and other players in order to grow your character (food respawns every time a player eats it).
A player's mass is the number of food particles eaten.
Objective: Try to get as big as possible and eat other players.
游戏规则
Players who haven't eaten yet cannot be eaten as a sort of "grace" period. This invincibility fades once they gain mass.
Everytime a player joins the game, 3 food particles will spawn.
Everytime a food particle is eaten by a player, 1 new food particle will respawn.
The more food you eat, the slower you move to make the game fairer for all.
安装
您只需点击以下按钮之一,即可轻松将此存储库部署到 Bluemix 或 Heroku。
要求
要运行/安装此游戏,您需要
NodeJS with NPM installed.
socket.IO.
Express.
下载依赖项
从 Github 克隆源代码后,您需要运行以下命令来下载所有依赖项(socket.IO、express 等)
npm install
运行服务器
下载所有依赖项后,您可以使用以下命令运行服务器
npm start
游戏将在 https://:3000 或安装的相应服务器上提供。默认端口为 3000,但可以在配置中更改。
常见问题解答
What is this game?
这是 Agario 的 HTML5 版本。有人说 Agar.IO 是一款名为 Osmos 的 iPad 游戏的克隆版本,但我们还没有尝试过。(克隆ception? :P)
Why would you make a clone of this game?
不过,虽然原始游戏仍在在线,但它属于闭源,有时会遭受严重的延迟。这就是我们想制作开源版本的原因:用于教育目的,并让社区添加他们想要的功能,在自己的服务器上自行托管,与朋友一起玩乐等等。
Any plans on adding an online server to compete with Agar.IO or making money out of it?
不。这款游戏属于开源社区,我们没有从中赚钱的计划,也不会与之竞争。但您当然可以创建自己的公共服务器,如果您这样做,请让我们知道,我们可以将其添加到我们的实时演示列表中!
Can I deploy this game to my own server?
当然可以!这正是它的用途! ;)
I don't like HTML5 canvas. Can I write my own game client with this server?
当然可以!只要您的客户端支持 WebSocket,您就可以用任何语言/技术编写游戏客户端,甚至如果您想的话,还可以使用 Unity3D(有一个用于与 WebSocket 通信的开源库)!
Can I use some code of this project on my own?
是的,您可以。