-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBadApple!!.HC
70 lines (62 loc) · 1.12 KB
/
BadApple!!.HC
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
//36x28
#include "C:/Home/TOS_Bad_Apple!!/Data.HC.Z"
//----------You can edit these variables---------------
#define InvertColors FALSE
#define PrintDebugInfo FALSE
//----------You can edit these variables---------------
I64 x1,y1,x2,y2,f,frame_i,add;
CDC *dc;
U0 DrawIt()
{
if (y2 == 493) {
Sleep(50);
x1=0,y1=0,x2=18,y2=17;
f++;
}
frame_i++;
if (!InvertColors) {
if (data[frame_i] == 1) {
dc->color=&15;
} else {
dc->color=&0;
}
} else {
if (data[frame_i] == 1) {
dc->color=&0;
} else {
dc->color=&15;
}
}
if (PrintDebugInfo) {
"frame_i: %d\nx1: %d y1: %d x2: %d y2: %d\n\n", frame_i, x1, y1, x2, y2;
}
GrRectB(dc,x1,y1,x2,y2);
Sleep(0);
if (x2 == 648) {
y1 = y1 + 17;
y2 = y2 + 17;
x1 = -18;
x2 = 0;
if (frame_i > 16) {
frame_i+=add;
}
}
x1 = x1 + 18;
x2 = x2 + 18;
}
U0 BadApple()
{
x1=0,y1=0,x2=18,y2=17,f=0,frame_i=-1,add=0;
dc=DCAlias;
WinMax;
WinBorder;
WinZBufUpdate();
SettingsPush();
while (!ScanKey&&f!=5000) {
DrawIt;
}
SettingsPop;
WinBorder;
DCFill(dc);
DCDel(dc);
}