Coder Social home page Coder Social logo

cbquest's Introduction

BrowserQuest

BrowserQuest is a HTML5/JavaScript multiplayer game experiment.

Documentation

Documentation is located in client and server directories.

Instructions

These were tested with node v0.6.3 and browserquest git hash/version of eb63d58fc.

Use your favorite editor to copy/edit config files in the server subdirectory. For example...

$ cat config_local.json
{
    "port": 9000,
    "debug_level": "debug",
    "nb_players_per_world": 200,
    "nb_worlds": 5,
    "map_filepath": "./server/maps/world_server.json",
    "metrics_enabled": false,
    "memcached_host": "10.3.121.192",
    "memcached_port": 11211,
    "event_db_module": "memcache",
    "event_db_host": "10.3.121.192",
    "event_db_port": 11211
}

Grab the right npm modules, using...

$ npm install -d

For example...

$ npm install -d
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info preinstall [email protected]
npm WARN [email protected] package.json: bugs['web'] should probably be bugs['url']
npm info build /Users/steveyen/work/membase/dev/scratch/cbquest
npm info linkStuff [email protected]
npm info build /Users/steveyen/work/membase/dev/scratch/cbquest/node_modules/http-server
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm WARN prefer global [email protected] should be installed with -g
npm info install [email protected]
npm info postinstall [email protected]
npm info install [email protected]
npm info postinstall [email protected]

npm info ok

To start the websocket server...

$ node server/js/main.js

To install the webserver...

$ cd client
$ ln -s ../shared
$ npm install http-server

Use your favorite editor to copy/edit config files in the client/config subdirectory. For example...

$ more config/config_build.json
{
    "host": "10.17.28.124",
    "port": 9000
}

To launch the webserver...

$ cd client
$ http-server -p 9010

Next, browse to http://127.0.0.1:9010 and start playing.

Hints on webserver...

Perhaps also try...

$ cd client
$ npm install -g http-server

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:

cbquest's People

Contributors

bnoordhuis avatar glecollinet avatar mkrecny avatar sork avatar steveyen avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.