Crafty JS source repository miss working examples. I made this repository to fill the void.
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


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

For example, to view, go to