blob: c39fedf2ea2fb7478757135293586e3536e2d0db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/**
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;
|