diff --git a/Web/js/sprite.js b/Web/js/sprite.js index ce12b19..fec0350 100644 --- a/Web/js/sprite.js +++ b/Web/js/sprite.js @@ -28,6 +28,8 @@ define(['jquery', 'animation', 'sprites'], function($, Animation, sprites) { this.image = new Image(); this.image.src = this.filepath; + this.image.width = this.width; + this.image.height = this.height; this.image.onload = function() { self.isLoaded = true;