Multiplayer slither.io.
Collude with friends while playing slither.io by joining the same room and sharing a minimap and scoreboard.
Only one person in the group has to setup the server to share map and score information.
Begin by starting the websocket server to share the minimap with your friends while you are in the same room. You can start the server with the following commands:
git clone [email protected]:kkamalov/snake-den.git && cd snake-den
make install
make run
Once one person is running the server, you need to add some javascript to modify the gameplay. Add a breakpoint which executes Javascript (Safari browser does this well) following the instructions below.
- View the source of the file
game144000.js
and add a breakpoint to the line shown in the screenshot. Searching forws://
will bring you to the right place.
2. Edit the breakpoint and copy the source from client.js
in this repository.
Don't forget to change the config
variable appropriately. There are
comments in the source code to help you update it.
3. Setup the breakpoint to Evaluate Javascript
and Automatically continue after evaluating
.
Have fun slithering together!
Kainar Kamalov
Josh Blum
We largely hacked on this while at work. Come work with us @b12.