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 computedY() {
        const dy = (Math.sin(this.shakePhaseY) + Math.sin(this.shakePhaseY * 2.8948)*0.25) / 1.25;
        const y = this.y + dy * this.shake * Math.max(this.width, this.height) / 100 * this.shakeY;
        return y + this.interpolatedShiftY;
    }
get computedY ( ) { const dy = ( Math . sin ( this . shakePhaseY ) + Math . sin ( this . shakePhaseY * 2.8948 ) * 0.25 ) / 1.25 ; const y = this . y + dy * this . shake * Math . max ( this . width , this . height ) / 100 * this . shakeY ; return y + this . interpolatedShiftY ; }
Returns the current camera position plus the screen shake effect.
Returns the current camera position plus the screen shake effect .