charlestati / browserquest-client

A HTML5/JavaScript multiplayer game experiment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BrowserQuest

BrowserQuest is a HTML5/JavaScript multiplayer game experiment.

What's different?

  • Scripts are in JS ES2015, transpiled using Babel
  • Modules are imported with Browserify instead of RequireJS
  • Development workflow with Gulp
  • Code is mostly compliant with Airbnb's ESLint rules
  • Use lodash instead of underscore (personal preference)

Quickstart

  1. npm install
  2. npm run build

Use npm run serve for development (live reload…)

Todo

  • Use Bluebird to switch from callbacks to promises
  • Use arrow functions instead of var self = this;
  • Load sprites and config files at compilation time
  • Remove unused functions and methods
  • Use a logger (I imported log to allow compilation but I don't know if it works browser side)
  • Rename variables already declared in the upper scope (no-shadow)
  • Find something prettier than const myVar = _myVar for parameter reassignment (no-param-reassign)
  • Use an alternative for the argument variable to remove the Function.prototype.bind() method (prefer-rest-params)

You can check the todos in the code if you want to contribute!

Disclaimer

Do not use in production, there are still a lot of errors! This is an experimental project.

License

Code is licensed under MPL 2.0. Content is licensed under CC-BY-SA 3.0. See the LICENSE file for details.

Credits

Created by Little Workshop:

nenuadrian who brought up to date and upgraded BrowserQuest to the latest SOCKET.IO plus other minor improvements

About

A HTML5/JavaScript multiplayer game experiment

License:Other


Languages

Language:JavaScript 78.0%Language:CSS 20.9%Language:HTML 1.1%