Fork of someones paper io clone
8352433fa5
The flood-fill had allocated a good amount of memory ~1MB each time we visit a square. This is reduced to the grid size squared, only allocated if the square we are on now is valid. The OBOB error occured when server was updating one time too few when a player is initialized. The player bug occurs when a new player joins the game. Normally each new player gets about 60ish frames of lag to start up. However, the new player client incorrectly assumes all other players are new as well. |
||
---|---|---|
public | ||
.gitignore | ||
color.js | ||
game-client.js | ||
game-consts.js | ||
game-core.js | ||
game-renderer.js | ||
game-server.js | ||
gate.js | ||
grid.js | ||
LICENSE | ||
package.json | ||
player.js | ||
README.md | ||
server.js | ||
socket-test.js | ||
stack.js |
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] (https://thekidofarcrania.github.io/PaperIO-Web). 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.
Running
After cloning this repository, run the follow commands to install dependencies and set up server. Enjoy!
npm install
npm start