- Runs in modern browsers
- Mature, well documented API with a decade of patterns and documentation
- Philosophy: Ease of use > Completeness
- Write your games in CommonJs http://www.commonjs.org/
GameJs is a Ringo application. Once you have Ringo installed the other components are easy to get with Ringo's package managment.
Details on how to install Ringo: http://ringojs.org/wiki/Getting_Started/
Once you have Ringo get the necessary dependancies with
ringo-admin install hns/ringo-modulr ringo-admin install hns/stick
Git clone GameJs to a convinient location:
cd ~ git clone git://github.com/oberhamsi/gamejs.git
Finally symlink GameJs into Ringo's packages directory:
ln -s ~/gamejs /usr/share/ringojs/packages/
ringo-admin install gamejs. That would not work.)
Try example apps
Start the GameJs web server:
.. and access it in your browser:
Several links to example apps should show up. The source to those apps is in the
apps/ directory of your GameJs installation.
Writing games with GameJs
main.js in such an app directory is called by GameJs to bootstrap your game in the browser. A couple of example apps are provided to get you started.