PETComputacaoUFPR / agar.io-clone

Agar.io clone written with Socket.IO and HTML5 canvas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Agar.io Clone

GitHub Stars GitHub Issues Live Demo " Gitter

A simple Agar.io clone built with socket.io and HTML5 Canvas on top of NodeJS.

Image

Live Demo

OpenShift " Singapore " ![Heroku EU](https://img.shields.io/badge/heroku eu-online-green.svg) " ![Heroku US](https://img.shields.io/badge/heroku us-online-green.svg) " Cloud9

How to Play

You are the red circle.

Move your mouse on the screen to move yourself.

Eat all yellow food to grow. (Food respawns every time player eat).

Try to get fat and eat other players.

Gameplay Rules

  • Player's mass is the number of food eaten
  • Players who haven't eaten yet can't be eaten.
  • Everytime a player joins the game, 3 foods will be spawned
  • Everytime a food is eaten by a player, 1 new food will be respawned
  • The more food you eat, the slower you move

Latest Changes

  • Game logic handled by server
  • Client side is for rendering only
  • Display player name
  • Now supporting chat
  • Type-ping in the chatbox to check your ping

Requirements

To run the game, you'll need:

  • NodeJS with NPM installed
  • socket.io
  • Express

Installation

Downloading the Dependencies

After cloning the source code from Github, you need to run the following command to download all the dependencies (socket.io, express, etc.).

npm install

Running the Server

After download all the dependencies, you can run the server with the following command to run the server.

node server.js

The game will then be accessible at http://localhost:3000.

Bitdeli Badge

About

Agar.io clone written with Socket.IO and HTML5 canvas


Languages

Language:JavaScript 91.4%Language:CSS 6.1%Language:HTML 2.6%