I’m trying to create a small 2D game in Javascript/Canvas which consists of several animated sprites. I’d like to cut down on the number of HTTP requests, so I combined each frame of animation (32px by 32px) into one image per sprite (say, 192px by 128px). Is there any way I can copy and crop these images clientside back into several smaller images? It would vastly simplify my rendering code and help reduce loading time due to network latency.
I’m trying to create a small 2D game in Javascript/Canvas which consists of several
Share
Have a look at Pixastic, specifically http://www.pixastic.com/lib/docs/actions/crop.