nodeGame is a free, open source, event-driven javascript framework for online, multiplayer games in the browser.
nodeGame is a general framework to play any kind of game online, but it specially designed to conduct social experiments.
- Open source and open standard (HTML5)
- modular framework (games + widgets)
- low / medium level of programming required
- powerful API
- real-time plotting with d3.js
- integrated NDDB Javascript database
- server can run multiple games at the same time
- customizable waiting rooms for online games
- works on mobile devices and tablets
- installation is required only for the server, clients just need their browser windows
- integrates smoothly with other libraries and web services, such as Amazon Mturk
nodeGame comes with a default game installed. It is called the Ultimatum game. To play it follows the steps:
- Download node.js (from http://nodejs.org/)
- From the console type:
npm install nodegame
- Browse to the nodegame folder and start the server:
node server.js
- Browse to the
./games/ultimatum/server/
folder and start the game logic:node logic.js
- Open three or more browser windows pointing to
localhost:8080/ultimatum/index.html
- A waiting room:
localhost:8080/ultimatum/room.html
- A Monitor interface:
localhost:8080/ultimatum/monitor.html
- Real time plotting of the results:
localhost:8080/ultimatum/results.html
For further information refer to the documentation in nodeGame wiki
All source codes of all repositories of nodeGame and related projects are available at the web page: https://github.com/nodeGame
IMPORTANT: At the moment the master branch of the github repository has been refactored, and the current documentation is slightly outdated, and refers to the version available from npm
.
Before going any further make sure you've installed git and node.js on your machine. Then open your Command Line and follow the instructions below.
# cd into the directory where you want the repo to reside
$ cd Desktop
# clone the repo
$ git clone git://github.com/nodeGame/nodegame.git
# update the dependencies
$ cd nodegame
$ npm install
Continue from point 3. of the section "Quick Start".
Code contributions are welcome, please keep in mind default Code Conventions.
Copyright (C) 2012 Stefano Balietti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.