Git Product home page Git Product logo

bqs's Introduction

Backend to BrowserQuest (http://browserquest.mozilla.org/) in Erlang/OTP. Build Status

We make use of Cowboy websocket handlers for communication with the BrowserQuest client. No modifications were done to the BrowserQuest Client except for ip configuration. The goal is to build a more scalable backend for websocket-based games.

Features: * Player login and movement works. Map collision detection and player start position generation. * Basic monster spawning and fighting. * Different architecture compared to original nodeJS backend; we hope to add more scalability features later on. The architecture is event-based and players, monsters and items are mapped as Erlang processes.

Future: * Support item drops and static NPCs. * Proper supervisor tree.

Installation: Backend:

  1. git clone [email protected]:Spawnfest2012/win.git
  2. cd win
  3. ./rebar get-deps
  4. ./rebar compile
  5. ./init.sh
  6. Launch a new terminal
  7. Start Client (see below)

Client:

  1. git clone [email protected]:Gustav-Simonsson/BrowserQuest.git
  2. Launch backend.
  3. Point browser to BrowserQuest/client/index.html
  4. If you cannot connect, check the config files in BrowserQuest/client/config for host/port settings. Default port in backend is set to 8000 but can be changed in the app.src

The original BrowserQuest repo is at https://github.com/mozilla/BrowserQuest

bqs's People

Contributors

burbas avatar sedrik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bqs's Issues

Create DoD test

Create a Proper test that will start the original BrowserQuest nodeJS server and the Erlang server.

Perform the exact same call to both servers and compare the results, any differences in output should be either fixed or clearly documented.

server will not start

Several reasons

cowboy:start_listener is moved to ranch
Project name is not the same as app name.

Fix all dialyzer errors

BQS needs to be able to run dialyzer in travis, to simplify this all dialyzer errors should be removed.

Player can start in incorrect areas

The Checkpoint list is used to get the starting position,. However we do not respect the flag "s" in the checkpoints leading to us being able to start in places that are to far away from the village.

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.