Fixed Shake effect

This commit is contained in:
Richard Davey 2020-09-29 16:43:42 +01:00
parent b7b10545f3
commit 76d2630f8b

View file

@ -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;