diff --git a/src/components/Player.vue b/src/components/Player.vue index cfb2c7d..786c5d5 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -152,10 +152,7 @@ $render: function () { let frame = this.frame_sequence[this.position] if (frame === undefined) return - let x = frame[0] - let y = frame[1] - let w = frame[2] - let h = frame[3] + let [x, y, w, h] = frame if (w !== this.width || h !== this.height) this.clear('black') this.tmp_ctx.drawImage(this.image, x, y, w, h,