Update index.js

This commit is contained in:
TheBrokenRail 2016-11-29 18:07:50 -05:00 committed by GitHub
parent 16449ae73d
commit 51d829786c

View file

@ -181,6 +181,9 @@ VirtualMachine.prototype.importFromJson = function (json) {
var target = sprite.createClone();
this.runtime.targets.push(target);
for (x in obj.sprites[i]) {
if (x == "sprite") {
continue;
}
target[x] = obj.sprites[y];
}
}