Skip to content
/ gamejs Public
forked from GameJs/gamejs

Library for writing 2D games or other interactive graphics applications for the HTML Canvas.

Notifications You must be signed in to change notification settings

jlfwong/gamejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GameJs

GameJs is a JavaScript library for writing 2D games or other interactive graphic applications for the HTML Canvas. Its API is modeled after the successful PyGame http://pygame.org library.

  • Powerful, proven, and thin abstraction for 2D
  • Sane JavaScript! With CommonJs support
  • Runs in modern browsers
  • optional server-side integration with RingoJs http://ringojs.org

The API will change though it will converge to a sensible translation of PyGame concepts to JavaScript.

Install

If you downloaded a release just unzip the files.

Developer Version

You need:

  • Java 1.5+
  • git and ant

Clone the GameJs repository:

git clone git://github.com/oberhamsi/gamejs.git

Get all needed submodules with git:

cd gamejs
git submodule init
git submodule update

Compile RingoJs:

ant -f gamejs/app/ringojs/build.xml jar

You should now be able to start the GameJs server.

Usage

You need Java 1.5+. Start the GameJs web server with gjs-server.sh or gjs-server.cmd (Windows). And view the dashboard in your browser:

http://localhost:8080/

Several links to the example apps should show up. The source to those apps is in the apps/ directory of your GameJs installation.

Retarded Edition

Only recommended for demonstration purposes. More infos in the help file 'docs/retarted-edition' https://github.com/oberhamsi/gamejs/blob/master/docs/retarded-edition.md

More Help

Check the docs folder of your GameJs installation.

A couple of example apps can be found in the apps directory.

See the GameJs Website for more help or drop us an email in the Mailing List.

About

Library for writing 2D games or other interactive graphics applications for the HTML Canvas.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Shell 0.2%