BAM Weblog

CraftyJS running character demo

Brian McKenna — 2012-07-01

This weekend I worked on a tiny demo for a browser-based game. The idea was to experiment with some JavaScript game engines. CraftyJS seemed the most complete for what I wanted to do.

The demo has two running characters. One is controlled by repeatedly pressing the spacebar. The other just moves foward constantly:

CraftyJS can output to canvas and DOM nodes. This example uses only DOM nodes (with background images).

If you’re interested in browser-based games or CraftyJS, you can try the online demo or clone the code.

Please enable JavaScript to view the comments powered by Disqus.