-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintro.c
97 lines (85 loc) · 4.44 KB
/
intro.c
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
/*
Jordan Vogel
StudentID: 1373051
*/
#include "intro.h"
#include "memwatch.h"
extern char filename[128];
extern FILE * sketchpad;
int introMain()
{
struct Object introText;
//BIG ASS SEGMENTS FOR THE INTRO SCREEEEEEEN
int x1list[] = {45,56,45,92,110,116,116,121,137,141,147,147,170,176,170,176,
186,201,206,200,238,241,262,266,266,266,238,231,231,231,245,290,302,290,
302,311,327,197,208,197,244,268,271,292,296,296,296,268,261,261,261,275,
322,328,322,328,338,353,358,352,412,420,420,409,391,383,383,383,391,409,
443,454,476,483,443,443,443,452,475,502,514,502,514,523,539,68,75,77,75,
70,70,68,81,83,81,83,85,88,95,99,101,93,93,93,95,99,105,105,107,111,113,
107,105,105,107,111,113,117,117,119,123,125,119,117,117,119,123,125,93,
138,147,140,138,147,140,145,150,151,151,159,157,150,162,162,172,167,165,
174,183,176,174,183,176,181,186,193,195,193,188,188,186,192,212,214,215,
218,223,225,229,231,231,229,223,223,247,247,249,253,255,249,247,247,249,
253,255,257,259,260,263,269,270,274,275,275,269,268,269,271,280,282,280,
282,284,287,293,295,296,299,309,321,333};
int y1list[] = {60,60,116,116,76,76,110,117,117,76,76,117,76,76,117,81,76,
76,81,117,81,76,76,81,111,111,117,111,100,100,90,76,76,117,82,76,76,145,
145,201,201,166,161,161,166,196,196,202,196,185,185,175,161,161,202,166,
161,161,166,202,140,140,202,202,202,191,171,171,160,160,172,160,160,172,
182,172,191,202,202,161,161,202,168,161,161,299,299,301,306,306,299,310,
302,302,310,303,302,302,302,302,304,306,304,308,310,310,310,309,310,310,
308,306,304,304,302,302,302,310,309,310,310,308,306,304,304,302,302,302,
304,299,299,299,310,310,304,303,299,299,299,310,299,310,301,299,299,299,
310,299,299,299,310,310,304,303,299,299,301,305,305,299,310,306,302,299,
310,309,304,302,302,304,308,310,308,308,310,309,310,310,308,306,304,304,
302,302,302,302,299,310,309,303,302,302,303,309,310,309,306,305,302,302,
310,303,302,302,302,299,310,309,309,309,309};
int x2list[] = {72,56,92,92,116,116,121,137,146,147,147,151,176,176,179,186,
201,206,206,211,241,262,266,266,272,262,262,238,231,245,266,302,302,316,
311,327,331,224,208,244,244,271,292,296,296,302,292,292,268,261,275,296,
328,328,331,338,353,358,358,363,420,420,428,420,409,391,383,391,409,420,
453,476,483,483,483,443,452,475,483,514,514,528,523,539,543,75,77,77,77,
75,70,73,83,83,86,84,88,89,99,101,101,101,93,95,99,101,105,106,111,113,
111,111,107,107,111,112,113,117,118,123,125,123,123,119,119,123,124,125
,95,147,147,140,147,147,145,145,151,151,159,159,160,153,162,172,172,167,
169,183,183,176,183,183,181,181,193,195,195,195,193,188,190,196,218,214,
217,218,225,229,231,231,229,225,225,223,247,248,253,255,253,253,249,249,
253,254,255,263,259,262,263,270,274,275,275,276,274,268,270,275,282,282,
285,283,287,288,299,295,298,299,309,321,333};
int y2list[] = {60,116,116,105,76,110,117,117,111,76,117,117,76,117,117,76,
76,81,117,117,76,76,81,111,117,117,117,117,111,90,90,76,117,117,76,76,82
,145,201,201,190,161,161,166,196,202,202,202,202,196,175,175,161,202,202
,161,161,166,202,202,140,202,202,195,202,202,191,160,160,166,160,160,172
,182,182,191,202,202,191,161,202,202,161,161,167,299,301,303,303,306,310
,310,302,310,310,303,302,303,302,304,306,306,308,310,310,308,308,309,310
,308,306,306,306,302,302,303,304,308,309,310,308,306,306,306,302,302,303
,304,302,299,301,310,310,308,304,305,299,310,310,299,299,310,299,299,301
,310,310,299,301,310,310,308,304,305,299,301,303,303,305,310,310,310,302
,309,310,308,302,302,304,308,310,310,310,304,308,309,310,308,306,306,306
,302,302,303,304,302,309,310,308,302,302,303,309,310,310,307,306,305,302
,310,310,303,302,303,302,309,310,308,310,310,310};
double center[2] = {0,0};
initObject(&introText, x1list, y1list, x2list, y2list, 211, center, 0);
drawObject(&introText);
fflush(sketchpad);
setup_ncurses();
int c = getch();
while(1)
{
if (c != ERR)
{
if (c == '\n')
{
break;
}
}
c = getch();
erase();
refresh();
}
unset_ncurses();
freeMemory(&introText);
clearScreen();
fflush(sketchpad);
return 0;
}