]>
Commit | Line | Data |
---|---|---|
7ade6f8d RBR |
1 | /** |
2 | Changes the stiffness on the node when it's less extended | |
3 | * | |
4 | * @name Config | |
5 | * @type object | |
6 | */ | |
6768cd46 | 7 | const config = { |
7ade6f8d RBR |
8 | |
9 | /** | |
10 | * How many pixels to use per meter | |
11 | * | |
12 | * @property {number} meterSize | |
13 | * @memberof Config | |
14 | */ | |
6768cd46 RBR |
15 | meterSize: 25, |
16 | ||
17 | /** | |
18 | * Aspect Ratio the aspect ratio expressed as an array of two numbers | |
19 | * | |
20 | * @property {number} aspectRatio | |
21 | * @memberof Config | |
22 | */ | |
23 | aspectRatio: [2.76, 1], | |
24 | ||
25 | /** | |
26 | * Target vertical resolution | |
27 | * | |
28 | * @property {number} verticalResolution | |
29 | * @memberof Config | |
30 | */ | |
3100e053 RBR |
31 | verticalResolution: 224, |
32 | ||
33 | /** | |
34 | * The points needed to win | |
35 | * | |
36 | * @property {number} maxPoints | |
37 | * @memberof Config | |
38 | */ | |
39 | maxPoints: 200 | |
6768cd46 | 40 | |
7ade6f8d | 41 | }; |
6768cd46 RBR |
42 | |
43 | /** | |
3100e053 | 44 | * The horizontal resolution of the screen |
6768cd46 | 45 | * |
3100e053 | 46 | * @property {number} horizontalResolution |
6768cd46 RBR |
47 | * @memberof Config |
48 | */ | |
49 | config.horizontalResolution = Math.round(config.verticalResolution * config.aspectRatio[0] / config.aspectRatio[1]); | |
50 | ||
51 | export default config; |