app/data/ct.release/camera.js
/** Returns the current camera position plus the screen shake effect. */
Returns the current camera position plus the screen shake effect.
Returns the current camera position plus the screen shake effect .
get computedX() {
        const dx = (Math.sin(this.shakePhaseX) + Math.sin(this.shakePhaseX * 3.1846)*0.25) / 1.25;
        const x = this.x + dx * this.shake * Math.max(this.width, this.height) / 100 * this.shakeX;
        return x + this.interpolatedShiftX;
    }
get computedX ( ) { const dx = ( Math . sin ( this . shakePhaseX ) + Math . sin ( this . shakePhaseX * 3.1846 ) * 0.25 ) / 1.25 ; const x = this . x + dx * this . shake * Math . max ( this . width , this . height ) / 100 * this . shakeX ; return x + this . interpolatedShiftX ; }
Returns the current camera position plus the screen shake effect.
Returns the current camera position plus the screen shake effect .