-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.js
62 lines (57 loc) · 1.41 KB
/
globals.js
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
52
53
54
55
56
57
58
59
60
61
62
window.globals = {
screenWidth: document.getElementById('aplomb-game').clientWidth,
screenHeight: document.getElementById('aplomb-game').clientHeight,
assets: {
graphs: {
shipRed: 'assets/ship-red.png',
shipGreen: 'assets/ship-green.png',
shipBlue: 'assets/ship-blue.png',
shipYellow: 'assets/ship-yellow.png',
shipBlack: 'assets/ship-black.png',
shipWhite: 'assets/ship-white.png',
engineThrust: 'assets/enginesFiring.png',
indicatorBlue: 'assets/indicator-blue.png',
indicatorRed: 'assets/indicator-red.png',
indicatorGreen: 'assets/indicator-green.png',
indicatorWhite: 'assets/indicator-white.png',
indicatorYellow: 'assets/indicator-yellow.png',
scrap1: 'assets/scrap1.png',
scrap2: 'assets/scrap2.png',
scrap3: 'assets/scrap3.png',
scrapExplosive: 'assets/explosive.png',
health: 'assets/health.png',
particle: 'assets/particle.png',
starfield: 'assets/starfield.png',
beam: 'assets/beam.png'
}
},
fonts: {
main: {
font: '20px Consolas, monospace',
fill: '#fff',
align: 'center'
},
console: {
font: '20px Consolas, monospace',
fill: '#fff',
align: 'left'
},
announcement: {
font: '40px Consolas, monospace',
fill: '#fff',
align: 'center'
}
},
controls: {
left: 'LEFT',
right: 'RIGHT',
thrust: 'UP',
reverse: 'DOWN',
charge: 'Z'
},
collectMode: 'gravity'
};
window.state = {
processRegistry: {},
controls: {}
};