Added SpriteSheet support to chuck animations

This commit is contained in:
logsol 2015-01-14 17:31:38 +01:00
parent c6add97a38
commit dbde25f76e
259 changed files with 2533 additions and 5 deletions

View file

@ -166,6 +166,17 @@ function (Parent, DomController, PIXI, Settings, Nc, Exception, GameStats, Layer
this.currentZoom = Settings.ZOOM_DEFAULT;
};
PixiView.prototype.getTexturesFromFrame = function(textureNames) {
var textures = [];
for (var i = 0; i < textureNames.length; i++) {
textures.push(PIXI.Texture.fromFrame(textureNames[i]));
};
return textures;
};
PixiView.prototype.destroy = function() {
this.layerManager.destroy(); // also calls all layers destroy