-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathiPower.prg
More file actions
128 lines (104 loc) · 1.73 KB
/
iPower.prg
File metadata and controls
128 lines (104 loc) · 1.73 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
//Autor: Adrian Melian (KeiDash)
//Date: 10/04/2018
//Description: Include que manipula la barra de power
Process DisplayPowerBar()
Private
float pwvalue = 0.0;
int currentPower = 90;
byte power = 1;
int xpos = 0;
int ypos = 0;
int mainXPosition = 70;
int proc_SetPower = 0;
Begin
//&gi_PowerPoints
Loop
if(pwvalue != gi_PowerPoints)
pwvalue = gi_PowerPoints;
if(pwvalue >= (gb_totalTrackBeats * currentPower) / _TOTALPOW)
Switch(power)
case 1:
ypos = 426;
end
case 2:
ypos = 428;
end
case 3:
ypos = 428;
end
case 4:
ypos = 430;
end
end
proc_SetPower = setPower(currentPower, 640/2 - mainXPosition, ypos);
if(EXISTS(proc_SetPower)) SIGNAL(proc_SetPower, S_FREEZE); end
if(power == 4)
power = 1;
mainXPosition -= 8;
else
power++;
mainXPosition--;
end
currentPower++;
end
end
frame;
End
End
Process setPower(GRAPH, X, Y)
Private
//int i = 0;
Begin
//ALPHA = 0;
FILE = gameFpg.Identifier;
/*
Repeat
if(isDivisible(i, 2)) ALPHA += 6; end
i++;
frame;
Until(ALPHA == 100 ||i == 60)
*/
loop
frame;
end
End
/*
Process PowerBarDemo()
Private
int i = 0;
int power = 1;
int xpos = 0;
int ypos = 0;
int mainXPosition = 70;
End
Begin
for(i = 0; i < _TOTALPOW; i++)
Switch(power)
case 1:
ypos = 426;
end
case 2:
ypos = 428;
end
case 3:
ypos = 428;
end
case 4:
ypos = 430;
end
end
setPower(i + 1, 640/2 - mainXPosition, ypos);
if(power == 4)
power = 1;
mainXPosition -= 8;
else
power++;
mainXPosition--;
end
end
Loop
//say("Porcentaje: " + gi_PowerPoints);
frame;
End
End
*/