Fork of someones paper io clone
Go to file
theKidOfArcrania 8352433fa5 Optimize flood-fill and fix OBOB + player bug
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.
2017-03-01 00:56:56 +00:00
public Optimize flood-fill and fix OBOB + player bug 2017-03-01 00:56:56 +00:00
.gitignore Slow down server. Remove node_modules 2017-02-25 22:25:06 -06:00
color.js Fix OBOE error :( And tidy up code 2017-02-26 23:01:57 +00:00
game-client.js Optimize flood-fill and fix OBOB + player bug 2017-03-01 00:56:56 +00:00
game-consts.js Fix OBOE error :( And tidy up code 2017-02-26 23:01:57 +00:00
game-core.js Optimize flood-fill and fix OBOB + player bug 2017-03-01 00:56:56 +00:00
game-renderer.js Optimize flood-fill and fix OBOB + player bug 2017-03-01 00:56:56 +00:00
game-server.js Optimize flood-fill and fix OBOB + player bug 2017-03-01 00:56:56 +00:00
gate.js Fix OBOE error :( And tidy up code 2017-02-26 23:01:57 +00:00
grid.js Server and client code completed (with bugs). 2017-02-26 02:36:44 +00:00
LICENSE Create LICENSE 2017-02-23 22:37:07 -06:00
package.json Fix some bugs, start up screen 2017-02-28 07:21:27 +00:00
player.js Optimize flood-fill and fix OBOB + player bug 2017-03-01 00:56:56 +00:00
README.md Add running instructions. 2017-02-26 18:26:22 -06:00
server.js Optimize flood-fill and fix OBOB + player bug 2017-03-01 00:56:56 +00:00
socket-test.js Change to Node.js project. Add some server tests. 2017-02-23 22:10:36 -06:00
stack.js Change to Node.js project. Add some server tests. 2017-02-23 22:10:36 -06: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] (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