LeedsJs/jackdaw — pull request #21 by sfoster (2012-02-17 11:46:57+00:00)
Title: First cut at a sprite implementation

This adds a lib/sprite module (Sprite class) which subclasses Component. The sprite expects to have a dictionary of states, so if the entity has spriteState == 'walk-left', the 'walk-left' frames in the sprite sheet will be used.

I've changed the example level to use this, and added a more interesting test page at test/test_Sprites.html to demo. The sprite sheet itself came from http://opengameart.org and is creative commons licensed.