-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcredits.pl
executable file
·229 lines (199 loc) · 7.21 KB
/
credits.pl
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
#!/usr/bin/env perl
use strict;
use warnings;
use Term::Screen;
use Term::ANSIColor qw(:constants);
sub ENTER_PROMPT {
print "\nPress [ENTER] to continue\n";
my $input = <STDIN>;
if ($input !~ /\012/) { ENTER_PROMPT(); }
}
my $scr = new Term::Screen;
unless ($scr) { die " Something's wrong \n"; }
$scr->new;
$scr->clrscr();
my @creditsArray;
while (<DATA>) {
chomp;
push @creditsArray, $_;
}
sleep 1;
my $var; my $index=0; my $step=0;
for(my $i = $#creditsArray*2; $i >= 0 ; $i--) {
# This block allows the text to scroll upwards using Jamars idea
for (my $j = 0; $j <= $index ; $j++) {
# Makes the == Headings == BOLD plus concatenates the line to $var
if ($creditsArray[$j] =~ /==/) { $var .= "\n\t".BOLD.$creditsArray[$j].RESET; }
elsif ($creditsArray[$j] =~ /You /) { $var .= "\n\t".BOLD RED.$creditsArray[$j].RESET; }
# Concatenates the lines into $var and allows the screen to clear off all of the words from $var
elsif ( $#creditsArray+$scr->rows < $index ) { $var .= "\n"; }
# Regular lines that aren't == Headings == will have a new line and a tab char to sort of center them
else { $var .= "\n\t ".$creditsArray[$j]; }
}
$scr->clrscr();
# Draws the giant box
$scr->at($i,0)->puts($var);
for (my $i = 60; $i < 75; $i++) {
for (my $j = 6; $j < 15 ; $j++) {
$scr->at($j,$i)->puts(ON_BRIGHT_YELLOW." ");
}
}
if ($step == 0) {
$scr->at(8,64)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(8,68)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(9,71)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(10,70)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(11,69)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(12,68)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(8,70)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(9,63)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(8,64)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(10,64)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(11,65)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(12,66)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(13,67)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(8,66)->puts(ON_BRIGHT_RED."\|".RESET);
$scr->at(8,68)->puts(ON_BRIGHT_RED."\|".RESET);
$step=1;
}
elsif ($step == 1) {
$scr->at(8,64)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(8,68)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(9,71)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(10,70)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(11,69)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(12,68)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(8,70)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(9,63)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(10,64)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(11,65)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(12,66)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(13,67)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(8,66)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(8,68)->puts(ON_BRIGHT_RED."\/".RESET);
$step=2;
}
elsif ($step == 2) {
$scr->at(8,64)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(8,68)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(9,71)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(10,70)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(11,69)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(12,68)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(8,70)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(9,63)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(8,64)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(10,64)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(11,65)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(12,66)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(13,67)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(8,66)->puts(ON_BRIGHT_RED."\-".RESET);
$scr->at(8,68)->puts(ON_BRIGHT_RED."\-".RESET);
$step=3;
}
elsif ($step == 3) {
$scr->at(8,64)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(8,68)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(9,71)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(10,70)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(11,69)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(12,68)->puts(ON_BRIGHT_RED."\/".RESET);
$scr->at(8,70)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(9,63)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(10,64)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(11,65)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(12,66)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(13,67)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(8,66)->puts(ON_BRIGHT_RED."\\".RESET);
$scr->at(8,68)->puts(ON_BRIGHT_RED."\/".RESET);
$step=0;
}
# Bottom/Top of the heart
$scr->at(13,67)->puts(ON_BRIGHT_RED."V".RESET);
$scr->at(9,67)->puts(ON_BRIGHT_RED."V".RESET);
$scr->at(7,65)->puts(ON_BRIGHT_RED."\^".RESET);
$scr->at(7,69)->puts(ON_BRIGHT_RED."\^".RESET);
# Fills in the heart
$scr->at(8,65)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(8,69)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(9,64)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(9,65)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(9,66)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(9,68)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(9,69)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(9,70)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(10,65)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(10,66)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(10,67)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(10,68)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(10,69)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(11,66)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(11,67)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(11,68)->puts(ON_BRIGHT_MAGENTA."@".RESET);
$scr->at(12,67)->puts(ON_BRIGHT_MAGENTA."@".RESET);
# Homes the cursor to 0,0 per documentation
$scr->new;
$var = ''; # Resets var to be nothing so we can rebuild the concatenated text block in the inner for loop
$index++;
select(undef, undef, undef, 0.40);
}
$scr->clrscr();
print "\n\n\n\n";
print "The end!\n\n\n\n";
ENTER_PROMPT();
__DATA__
== The Main Dude ==
Phil Porada
== Coding ==
Phil Porada
== Story ==
Phil Porada
== Noises & Music ==
Eric Greene
== Cats ==
Lilly
Noodle
Palmer
Spooky
Bitty Kitty
Script Kitty
NetCat
Max
Clogay
Harley
== Lead Coffee Consumers ==
Jenny Ingles
Phil Porada
== Listener to of my bullshit ==
Jenny Ingles
== Special Thanks ==
The Specials
Evan Cosby
Eric Greene
Johnny Basile
Ricky Martin
Greg Kitson
UmbertoUnity82 aka Andrew
Avrey Polni
Chris Baker
Jordan Prybylski
Doug Mott
Mama Sarkody
Chris Dogbert
Ron Filloon
Carl Roudabayga
Dan Porter
JSON McNew
Cathryn SDS
Steph
Johnny Basile
Kyle Blakely
Josh Boivin
John rAmbrow
Jamar Vales
Jenny Ingles
Kristie & Kelsey
Mom & Dad
Babcia & Dzadiu & Dzadiu Porada
== Love ==
You :3 <3!