170
rated 0 times
[
171]
[
1]
/ answers: 1 / hits: 19965
/ 14 Years ago, wed, november 17, 2010, 12:00:00
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.
More From » canvas