Fork of someones paper io clone
Go to file
StevenJoeZhang b811b7d96f Settings
2019-05-23 16:19:48 +08:00
public Settings 2019-05-23 16:19:48 +08:00
src Settings 2019-05-23 16:19:48 +08:00
.gitignore update 2019-02-22 13:24:01 +08:00
bot.js optimize canvas style 2019-02-22 15:10:20 +08:00
client.js Settings 2019-05-23 16:19:48 +08:00
config.json rename files & add font-awesome 2019-02-22 18:44:15 +08:00
LICENSE
package.json
paper-io-bot.js optimize canvas style 2019-02-22 15:10:20 +08:00
README.md rename files & add font-awesome 2019-02-22 18:44:15 +08:00
server.js rename files & add font-awesome 2019-02-22 18:44:15 +08:00

Paper.IO

This is a clone of the original Paper-IO released by Voodoo, except for one aspect. This will attempt to implement a multi-player aspect of the game (like a real IO game). Currently this has a playground at this link. It's a demo version of what to come. Hopefully by that time, the necessary server infrastructure could be obtained.

This is just a fun side-project for me. If you would want to use this code, it would be nice to let me know.

Install

git clone https://github.com/stevenjoezhang/paper.io.git
cd paper.io
npm install

Running

After cloning this repository, run the follow commands to install dependencies and set up server. Enjoy!

npm start

You can configure the game by editing config.json.

WARNING: DO NOT EDIT THE consts SETTINGS UNLESS YOU KNOW WHAT YOU ARE DOING.

WARNING: REMEMBER TO BUILD AGAIN AFTER EDITING ANY FILE, INCLUDE config.json.

Build

sudo npm install -g browserify uglify-es
browserify client.js | uglifyjs > public/bundle.js

Bots

Set bots in config.json to a non-zero value, or execute the command below:

node paper-io-bot.js ws://localhost:8081
#or
node bot.js ws://localhost:8081

Roadmap & TODO List

  • 统一配置文件
  • 玩家观战模式
  • 更多游戏玩法
  • 多个游戏房间
  • 加快渲染速度
  • 优化胜负判定

License

This is licensed under MIT. As such, please provide due credit and link back to this repository if possible.

Original Repo: