Coder Social home page Coder Social logo

msylvia / web-brogue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kipraske/web-brogue

0.0 1.0 0.0 6.34 MB

Play brogue in a web browser

License: GNU General Public License v2.0

Perl 0.33% Shell 0.13% C 86.39% C++ 7.35% Ruby 0.18% JavaScript 4.97% HTML 0.43% CSS 0.22%

web-brogue's Introduction

Web Brogue

A web server for playing the Brogue over the internet. Brogue is a game for Mac OS X, Windows, and Linux by Brian Walker. For more information go https://sites.google.com/site/broguegame/. The server only can be run on a POSIX environment at the moment.

Build Instructions

###Step 1: Get Dependencies ###

Get the latest version of node.js and mongoDB. Since node.js is still a bit unstable, I would recommend getting the package directly from their site rather than from the repositories

Step 2: Get node packages

Navigate to the server directory and run npm install to get the node dependencies

Step 3: Build Brogue Executable

Because I am just dumping the data from brogue over to the node server, there are not any special dependencies for compiling brogue. So you don't need SDL, tcod, or ncurses to get it to compile. It should be as simple as make web in the brogue directory and it will place the executable in brogue/bin.

Starting the Server

Starting the server should be as simple as starting up mongoDB and starting the node process. You will probably need root permissions to start both of these processes:

  1. To start the mongodb daemon type mongod
  2. To start our server type node server/app.js or jus node server/ from the root directory

If everything is running correctly it should say "Server listening on port 80"

Upgrading Brogue

To upgrade brogue, grab the latest version of the brogue source code from https://sites.google.com/site/broguegame/ for linux and update the platform code to include my changes. I have intentionally tried to keep my updates separate from the original brogue game logic as much as possible so my updates are limited to the following 4 files:

  • Add platform/web-platform.c
  • Update platform.h to define webConsole
  • Update platform/main.c to set the currentConsole to webConsole if we are compiling with web
  • Update the makefile

Future updates to brogue will likely not prevent any of these updates from being added, though care must be given if the platform-dependant logic changes for some reason.

Server Configuration

Server global configuration variables are defined in server/config.js. You may need to adjust these depending on how your environment is set up.

web-brogue's People

Contributors

kipraske avatar kipwustl avatar

Watchers

James Cloos 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.