Crafty JS source repository miss working examples. I made this repository to fill the void.
JavaScript
Permalink
Failed to load latest commit information.
Component HitBox bug DOM Feb 21, 2012
Crafty animate main.html change crafty snapshot.js Mar 11, 2012
Event Circle2D bug Feb 22, 2012
.gitignore initial commit Jan 18, 2012
README.mkd view instruction in README http Mar 11, 2012

README.mkd

Crafty API document is kind of light. The examples are just snippets which are not runnable. I created some stand-alone examples, so that uses can run any of them without the need to add additional code. Note that this is project in progress. Examples of only a small number of functions in Crafty have been created.

To view the examples, prepend path with http://pengyu.github.com/Crafty-JS-Examples/.

For example, to view https://github.com/pengyu/Crafty-JS-Examples/blob/gh-pages/Crafty/Graphics/Color/main.html, go to http://pengyu.github.com/Crafty-JS-Examples/Crafty/Graphics/Color/main.html.