diff --git a/src/cameras/2d/effects/Shake.js b/src/cameras/2d/effects/Shake.js index e172de008..eb6503cae 100644 --- a/src/cameras/2d/effects/Shake.js +++ b/src/cameras/2d/effects/Shake.js @@ -237,8 +237,8 @@ var Shake = new Class({ if (this._elapsed < this.duration) { var intensity = this.intensity; - var width = this.camera._cw; - var height = this.camera._ch; + var width = this.camera.width; + var height = this.camera.height; var zoom = this.camera.zoom; this._offsetX = (Math.random() * intensity.x * width * 2 - intensity.x * width) * zoom;