]>
Commit | Line | Data |
---|---|---|
1 | /** | |
2 | Changes the stiffness on the node when it's less extended | |
3 | * | |
4 | * @name Config | |
5 | * @type object | |
6 | */ | |
7 | const config = { | |
8 | ||
9 | /** | |
10 | * How many pixels to use per meter | |
11 | * | |
12 | * @property {number} meterSize | |
13 | * @memberof Config | |
14 | */ | |
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 | */ | |
31 | verticalResolution: 224, | |
32 | ||
33 | /** | |
34 | * The points needed to win | |
35 | * | |
36 | * @property {number} maxPoints | |
37 | * @memberof Config | |
38 | */ | |
39 | maxPoints: 200 | |
40 | ||
41 | }; | |
42 | ||
43 | /** | |
44 | * The horizontal resolution of the screen | |
45 | * | |
46 | * @property {number} horizontalResolution | |
47 | * @memberof Config | |
48 | */ | |
49 | config.horizontalResolution = Math.round(config.verticalResolution * config.aspectRatio[0] / config.aspectRatio[1]); | |
50 | ||
51 | export default config; |