/Swarm

Multiplayer Game using HTML5 Canvas and Socket.io

Primary LanguageJavaScript

Swarm

Build Status

Multiplayer game built using HTML5 and node.js. Live Version Here

Features to Check Out

The system is pretty simple from the outside, so I think you will notice all of the features.

  1. User Accounts
  2. Live Multiplayer and Practice Modes
  3. Motions, Gameplay, and Graphics

Installation

  1. Install nodejs and npm

  2. Clone this repo

     $ git clone git@github.com:chiragpat/Swarm.git
    
  3. Install dependencies

     $ npm install
    
  4. Set environment variable SWARM_DB_URL to the url of your mongo database.

     $ echo "export SWARM_DB_URL=\"Your mongodb url goes here\"" >> ~/.bash_profile
    

Quick Start

To start game server

$ node app.js

Then go to URL

http://localhost:3000

To change ports add environment variable PORT with the port you want to run the app on.

Running Tests

$ make test

To show test coverage, make sure you have jscoverage installed and then run

$ make test-cov