-
Notifications
You must be signed in to change notification settings - Fork 0
/
HUD.pde
108 lines (94 loc) · 2.73 KB
/
HUD.pde
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
class HUD
{
float lenght_grid = 42.7;
float width_grid = 42.7;
void drawHUD()
{
fill(0, 0, 10);
beginShape();
vertex(0 * lenght_grid, 4 * width_grid);
vertex(1 * lenght_grid, 5 * width_grid);
vertex(1 * lenght_grid, 6 * width_grid);
vertex(0 * lenght_grid, 7 * width_grid);
// etc;
endShape();
beginShape();
vertex(0 * lenght_grid, 0 * width_grid);
vertex(0 * lenght_grid, 5 * width_grid);
vertex(0 * lenght_grid, 5 * width_grid);
vertex(10 * lenght_grid, 1 * width_grid);
vertex(13 * lenght_grid,1 * width_grid);
vertex(16 * lenght_grid,3 * width_grid);
vertex(19 * lenght_grid,1 * width_grid);
vertex(22 * lenght_grid,1 * width_grid);
vertex(32 * lenght_grid, 5 * width_grid);
vertex(32 * lenght_grid, 0 * width_grid);
// etc;
endShape();
beginShape();
vertex(32 * lenght_grid, 4 * width_grid);
vertex(31 * lenght_grid, 5 * width_grid);
vertex(31 * lenght_grid, 6 * width_grid);
vertex(32 * lenght_grid, 7 * width_grid);
// etc;
endShape();
fill(0, 0, 10);
beginShape();
vertex(0 * lenght_grid, 6 * width_grid);
vertex(11 * lenght_grid,9 * width_grid);
vertex(11 * lenght_grid, 18 * width_grid);
vertex(0 * lenght_grid, 18 * width_grid);
// etc;
endShape();
fill(0, 0, 5);
beginShape();
vertex(32 * lenght_grid,6 * width_grid);
vertex(32 * lenght_grid, 18 * width_grid);
vertex(21 * lenght_grid, 18 * width_grid);
vertex(21 * lenght_grid,9 * width_grid);
// etc;
endShape();
fill(0, 0, 26);
beginShape();
vertex(11 * lenght_grid,9 * width_grid);
vertex(11 * lenght_grid, 18 * width_grid);
vertex(21 * lenght_grid, 18 * width_grid);
vertex(21 * lenght_grid,9 * width_grid);
vertex(16 * lenght_grid, 15 * width_grid);
// etc;
endShape();
fill(0, 0, 26);
noStroke();
beginShape();
vertex(10 * lenght_grid, 1 * width_grid);
vertex(13 * lenght_grid,0 * width_grid);
vertex(13 * lenght_grid,1 * width_grid);
vertex(16 * lenght_grid,0 * width_grid);
vertex(19 * lenght_grid,1 * width_grid);
vertex(19 * lenght_grid,0 * width_grid);
vertex(22 * lenght_grid,1 * width_grid);
// etc;
endShape();
beginShape();
vertex(13 * lenght_grid,0 * width_grid);
vertex(13 * lenght_grid,1 * width_grid);
vertex(16 * lenght_grid,0 * width_grid);
vertex(19 * lenght_grid,1 * width_grid);
vertex(19 * lenght_grid,0 * width_grid);
// etc;
endShape();
beginShape();
vertex(17 * lenght_grid,0 * width_grid);
vertex(16 * lenght_grid,3 * width_grid);
vertex(15 * lenght_grid,0 * width_grid);
// etc;
endShape();
fill(0, 0, 20);
beginShape();
vertex(11 * lenght_grid, 18 * width_grid);
vertex(16 * lenght_grid, 12 * width_grid);
vertex(21 * lenght_grid, 18 * width_grid);
// etc;
endShape();
}
}