Forked from Daniel Shiffman's Coding Challenge #32. Node.js For backend.
- git clone https://github.com/hkirat/agar.io.git
- cd agar.io
- npm install
- node server.js
- Go to localhost:3001
playerAdded : Lets all the connected clients know that a new user has joined the game. initialiseId : Initialises a unique id on the client side. initialiseEnemies : Initialises the opponents in the room. initialiseBlobs : Initialises blobs on the client side.
position : Lets the server know the current position of a blob. eat : Lets the server know which blob was eaten by the current blob. ateUser : Lets the user server know if a particular blob was eaten. disconnect : Received if a particular client disconnects.