Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
oberhamsi committed Jun 2, 2014
1 parent 857025f commit d46bb83
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ Topics
Usage
=================

See the examples directory for working examples.

## Standalone

HTML File:
HTML File loads GameJs and sets the main module:

<script src="./public/gamejs.min.js"></script>
<script>
Expand All @@ -56,16 +58,17 @@ HTML File:
</script>


"./javascript/main.js":
The main module `javascript/main.js` starts the application:

var gamejs = require('gamejs');
gamejs.ready(function() {
var display = gamejs.display.getSurface();
...
});

## GameJs a node package with browserify
## GameJs as a node package with browserify

GameJs is a CommonJs package published on NPM. To use it with [browserify](http:https://browserify.org/) install GameJs in your game's directory:
GameJs is a CommonJs package published on NPM. To use it with [browserify](http:https://browserify.org/) install the GameJs package in your game's directory:

$ npm install gamejs

Expand Down

0 comments on commit d46bb83

Please sign in to comment.