/** Changes the stiffness on the node when it's less extended * * @name Config * @type object */ const config = { /** * How many pixels to use per meter * * @property {number} meterSize * @memberof Config */ meterSize: 25, /** * Aspect Ratio the aspect ratio expressed as an array of two numbers * * @property {number} aspectRatio * @memberof Config */ aspectRatio: [2.76, 1], /** * Target vertical resolution * * @property {number} verticalResolution * @memberof Config */ verticalResolution: 224, /** * The points needed to win * * @property {number} maxPoints * @memberof Config */ maxPoints: 200 }; /** * The horizontal resolution of the screen * * @property {number} horizontalResolution * @memberof Config */ config.horizontalResolution = Math.round(config.verticalResolution * config.aspectRatio[0] / config.aspectRatio[1]); export default config;