Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple maze game written in JavaScript
JavaScript CSS
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
css
images/sys
js
server
.htaccess
.sshdir
.sshdir.nfs
README
drawbullet.html
gitpush
index.html
jsmaze-250x249.png
notes.txt
popup.html
rsyncignore
scroller.html
sound.html
todo.txt
useragent.html
webpush

README

A simple maze game written in JavaScript.
Uses node.js, socket.io, express, and mongoose/MongoDB for the server side.

There's a live server under active development (hence likely to be
flaky) at:

  http://jsmaze.com/

The Git archive does NOT include required modules. To get them:

  cd /path/to/jsmaze   # or a parent directory. I use $HOME
  npm install socket.io express mongoose optimist

To run the server:

  cd /path/to/jsmaze/server
  node index.js --port=<port> --uid=<uid> --gid=<gid>

All parameters are optional:

  <port> is the port to listen on for browser and server requests.
         default: 6239 (MAZE)
         Alternative spelling: "-p <port>"
  <uid>  A user ID to switch to after doing the listen.
         Alternative spelling: "-u <uid>"
  <gid>  A group ID to switch to after doing the listen.
         Alternative spelling: "-g <gid>"

For example:

  cd ~/jsmaze/server
  sudo node index.js -p 80 -u ubuntu -g ubuntu

jsMaze serves its own client pages, but you could use another web
server on port 80, and connect to the jsMaze server on another port.
Something went wrong with that request. Please try again.