BrowserQuest is a HTML5/JavaScript multiplayer game experiment.
- 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)
npm install
npm run build
Use npm run serve
for development (live reload…)
- 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 theFunction.prototype.bind()
method (prefer-rest-params)
You can check the todo
s in the code if you want to contribute!
Do not use in production, there are still a lot of errors! This is an experimental project.
Code is licensed under MPL 2.0. Content is licensed under CC-BY-SA 3.0. See the LICENSE file for details.
Created by Little Workshop:
- Franck Lecollinet - @whatthefranck
- Guillaume Lecollinet - @glecollinet
nenuadrian who brought up to date and upgraded BrowserQuest to the latest SOCKET.IO plus other minor improvements