Saturday, March 16, 2013

Fire Sprite update!

Quick update!

Added some new functionality to FireSprite.js today! I wanted the ability to be returned a canvas instead of just a FireSprite object. So by calling the createSpriteCanvas("imgName.png") method of your FireSpriteAtlas you are returned a canvas the exact width and height as the originally packed image, with JUST that image on it. Once you have the canvas you can scale, rotate it and all that jazz manually before drawing it to your game canvas.

Neat, huh.

Check out Fire Sprite on GitHub!

No comments:

Post a Comment