added FrameUtils unit tests

This commit is contained in:
jdescottes
2014-09-21 21:39:54 +02:00
parent 32e528525c
commit 9ef46d5ec5
7 changed files with 230 additions and 85 deletions

View File

@ -47,7 +47,7 @@
// 2 - attach the onload callback that will be triggered asynchronously
image.onload = function () {
// 5 - extract the frames from the loaded image
var frames = pskl.utils.LayerUtils.createFromImage(image, layerData.frameCount);
var frames = pskl.utils.LayerUtils.createLayerFromSpritesheet(image, layerData.frameCount);
// 6 - add each image to the layer
this.addFramesToLayer(frames, layer);
}.bind(this);