1 |
if (os_type == os_macosx) |
2 |
draw_screen = skiptimer < 19; |
3 |
if (draw_screen) |
4 |
{ |
5 |
if (con == 1) |
6 |
{ |
7 |
textimer += 1; |
8 |
if (textimer == 6) |
9 |
{ |
10 |
global.typer = 41; |
11 |
global.msg[0] = Once upon a time, a LEGEND was whispered among shadows. ; |
12 |
w = instance_create(40, 160, obj_writer); |
13 |
w.depth = -10; |
14 |
} |
15 |
if (textimer == 220) |
16 |
{ |
17 |
with (obj_writer) |
18 |
instance_destroy(); |
19 |
global.msg[0] = ; |
20 |
w = instance_create(40, 160, obj_writer); |
21 |
w.depth = -10; |
22 |
global.msg[0] = ; |
23 |
w = instance_create(220, 160, obj_writer); |
24 |
w.depth = -10; |
25 |
} |
26 |
if (textimer == 340) |
27 |
{ |
28 |
with (obj_writer) |
29 |
instance_destroy(); |
30 |
global.msg[0] = ; |
31 |
w = instance_create(40, 160, obj_writer); |
32 |
w.depth = -10; |
33 |
global.msg[0] = ; |
34 |
w = instance_create(220, 160, obj_writer); |
35 |
w.depth = -10; |
36 |
} |
37 |
if (textimer == 460) |
38 |
{ |
39 |
with (obj_writer) |
40 |
instance_destroy(); |
41 |
global.msg[0] = This is the legend of Delay 33 DELTA RUNE ; |
42 |
w = instance_create(80, 160, obj_writer); |
43 |
w.depth = -10; |
44 |
} |
45 |
draw_sprite(pic, 0, 60, 48 + yoff); |
46 |
ytimer += 1; |
47 |
if (ytimer >= 4 && yoff > -260) |
48 |
{ |
49 |
ytimer = 0; |
50 |
yoff -= 2; |
51 |
} |
52 |
if (yoff <= -260) |
53 |
{ |
54 |
contimer += 1; |
55 |
if (contimer >= 40) |
56 |
{ |
57 |
with (obj_switchAsyncHelper) |
58 |
docheck = false; |
59 |
audio_pause_sound(global.currentsong[1]); |
60 |
} |
61 |
if (contimer == 100) |
62 |
{ |
63 |
con = 2; |
64 |
contimer = 0; |
65 |
chunkfade = 1; |
66 |
alarm[4] = 90; |
67 |
} |
68 |
} |
69 |
} |
70 |
if (con == 2) |
71 |
{ |
72 |
draw_sprite(pic, 0, 60, 48 + yoff); |
73 |
contimer += 1; |
74 |
if (contimer == 40) |
75 |
{ |
76 |
with (obj_writer) |
77 |
instance_destroy(); |
78 |
} |
79 |
} |
80 |
if (con == 3) |
81 |
{ |
82 |
pic = spr_introimage1; |
83 |
audio_sound_set_track_position(global.currentsong[1], 19.656); |
84 |
audio_resume_sound(global.currentsong[1]); |
85 |
with (obj_switchAsyncHelper) |
86 |
docheck = true; |
87 |
con = 4; |
88 |
contimer = 0; |
89 |
chunkfade = 0; |
90 |
global.typer = 40; |
91 |
global.msg[0] = For millenia, LIGHT and DARK have lived in balance,Delay 66Close Message ; |
92 |
global.msg[1] = Bringing peace to the WORLD. ; |
93 |
w = instance_create(40, 160, obj_writer); |
94 |
} |
95 |
if (con == 4) |
96 |
{ |
97 |
draw_sprite(pic, 0, 60, 28); |
98 |
contimer += 1; |
99 |
if (contimer == 270) |
100 |
{ |
101 |
with (obj_writer) |
102 |
instance_destroy(); |
103 |
global.msg[0] = But if this harmony were to shatter... ; |
104 |
w = instance_create(70, 160, obj_writer); |
105 |
} |
106 |
if (contimer >= 276) |
107 |
{ |
108 |
c_chunkamt = 0; |
109 |
contimer = 0; |
110 |
con = 5; |
111 |
} |
112 |
} |
113 |
if (con == 5) |
114 |
{ |
115 |
if (contimer <= 200) |
116 |
draw_sprite(pic, 0, 60, 28); |
117 |
con_alph = 0; |
118 |
c_chunkamt += 0.05; |
119 |
if (c_chunkamt >= 0.25) |
120 |
con_alph = 0.25; |
121 |
if (c_chunkamt >= 0.5) |
122 |
con_alph = 0.5; |
123 |
if (c_chunkamt >= 0.75) |
124 |
con_alph = 0.75; |
125 |
if (c_chunkamt >= 1) |
126 |
con_alph = 1; |
127 |
if (contimer <= 200) |
128 |
draw_sprite_ext(pic, 1, 60, 28, 1, 1, 0, c_white, con_alph); |
129 |
contimer += 1; |
130 |
if (contimer == 120) |
131 |
chunkfade = 1; |
132 |
if (contimer == 130) |
133 |
{ |
134 |
with (obj_writer) |
135 |
instance_destroy(); |
136 |
global.msg[0] = A terrible calamity would occur. ; |
137 |
w = instance_create(40, 80, obj_writer); |
138 |
} |
139 |
if (contimer == 210) |
140 |
{ |
141 |
chunkfade = 0; |
142 |
fadespeed = 0.2; |
143 |
} |
144 |
if (contimer == 230) |
145 |
{ |
146 |
chunkfade = 1; |
147 |
fadespeed = 0.03; |
148 |
fadecolor = c_white; |
149 |
} |
150 |
if (contimer == 275) |
151 |
{ |
152 |
with (obj_writer) |
153 |
instance_destroy(); |
154 |
global.msg[0] = The sky will run black with terror ; |
155 |
w = instance_create(80, 185, obj_writer); |
156 |
fadespeed = 0.05; |
157 |
con = 6; |
158 |
chunkfade = 0; |
159 |
contimer = 0; |
160 |
border = 0; |
161 |
c_chunkamt = 0; |
162 |
pic = spr_introimage2; |
163 |
} |
164 |
} |
165 |
if (con == 6) |
166 |
{ |
167 |
draw_sprite(pic, 0, 0, 0); |
168 |
con_alph = 0; |
169 |
if (contimer >= 276) |
170 |
c_chunkamt += 0.05; |
171 |
if (c_chunkamt >= 0.25) |
172 |
con_alph = 0.25; |
173 |
if (c_chunkamt >= 0.5) |
174 |
con_alph = 0.5; |
175 |
if (c_chunkamt >= 0.75) |
176 |
con_alph = 0.75; |
177 |
if (c_chunkamt >= 1) |
178 |
con_alph = 1; |
179 |
draw_sprite_ext(pic, 1, 0, 0, 1, 1, 0, c_white, con_alph); |
180 |
contimer += 1; |
181 |
if (contimer == 138) |
182 |
{ |
183 |
with (obj_writer) |
184 |
instance_destroy(); |
185 |
global.msg[0] = And the land will crack with fear. ; |
186 |
w = instance_create(80, 185, obj_writer); |
187 |
} |
188 |
if (contimer == 276) |
189 |
{ |
190 |
with (obj_writer) |
191 |
instance_destroy(); |
192 |
global.msg[0] = Then,Delay 11 her heart pounding... ; |
193 |
w = instance_create(60, 185, obj_writer); |
194 |
} |
195 |
if (contimer == 414) |
196 |
{ |
197 |
with (obj_writer) |
198 |
instance_destroy(); |
199 |
global.msg[0] = The EARTH will draw her final breath. ; |
200 |
w = instance_create(80, 185, obj_writer); |
201 |
} |
202 |
if (contimer == 520) |
203 |
{ |
204 |
fadespeed = 0.04; |
205 |
fadecolor = c_black; |
206 |
chunkfade = 1; |
207 |
} |
208 |
if (contimer == 551) |
209 |
{ |
210 |
with (obj_writer) |
211 |
instance_destroy(); |
212 |
global.msg[0] = Only then,Delay 11 shining with hope... ; |
213 |
w = instance_create(40, 185, obj_writer); |
214 |
contimer = 0; |
215 |
c_chunkamt = 0; |
216 |
chunkfade = 0; |
217 |
con = 7; |
218 |
c_chunkamt = 0; |
219 |
pic = spr_introimage3; |
220 |
} |
221 |
} |
222 |
if (con == 7) |
223 |
{ |
224 |
draw_sprite(pic, 0, 0, 0); |
225 |
if (contimer == 138) |
226 |
{ |
227 |
with (obj_writer) |
228 |
instance_destroy(); |
229 |
global.msg[0] = Three HEROES appear at WORLDS' edge. ; |
230 |
w = instance_create(80, 185, obj_writer); |
231 |
} |
232 |
con_alph = 0; |
233 |
if (contimer >= 138) |
234 |
c_chunkamt += 0.05; |
235 |
if (c_chunkamt >= 0.25) |
236 |
con_alph = 0.25; |
237 |
if (c_chunkamt >= 0.5) |
238 |
con_alph = 0.5; |
239 |
if (c_chunkamt >= 0.75) |
240 |
con_alph = 0.75; |
241 |
if (c_chunkamt >= 1) |
242 |
con_alph = 1; |
243 |
draw_sprite_ext(pic, 1, 0, 0, 1, 1, 0, c_white, con_alph); |
244 |
contimer += 1; |
245 |
if (contimer == 246) |
246 |
{ |
247 |
fadespeed = 0.04; |
248 |
fadecolor = c_black; |
249 |
chunkfade = 1; |
250 |
} |
251 |
if (contimer >= 277) |
252 |
{ |
253 |
with (obj_writer) |
254 |
instance_destroy(); |
255 |
contimer = 0; |
256 |
c_chunkamt = 0; |
257 |
chunkfade = 0; |
258 |
con = 8; |
259 |
c_chunkamt = 0; |
260 |
pic = spr_introimage4; |
261 |
} |
262 |
} |
263 |
if (con == 8) |
264 |
{ |
265 |
draw_sprite(pic, 0, 0, 0); |
266 |
con_alph = 0; |
267 |
if (contimer == 4) |
268 |
{ |
269 |
with (obj_writer) |
270 |
instance_destroy(); |
271 |
global.msg[0] = ; |
272 |
w = instance_create(20, 185, obj_writer); |
273 |
} |
274 |
if (contimer == 69) |
275 |
{ |
276 |
global.msg[0] = ; |
277 |
w = instance_create(110, 185, obj_writer); |
278 |
} |
279 |
if (contimer == 138) |
280 |
{ |
281 |
global.msg[0] = And a PRINCE FROM THE DARK. ; |
282 |
w = instance_create(200, 185, obj_writer); |
283 |
} |
284 |
if (contimer >= 69 && contimer <= 138) |
285 |
{ |
286 |
c_chunkamt += 0.05; |
287 |
if (c_chunkamt >= 0.25) |
288 |
con_alph = 0.25; |
289 |
if (c_chunkamt >= 0.5) |
290 |
con_alph = 0.5; |
291 |
if (c_chunkamt >= 0.75) |
292 |
con_alph = 0.75; |
293 |
if (c_chunkamt >= 1) |
294 |
con_alph = 1; |
295 |
if (c_chunkamt > 1) |
296 |
c_chunkamt = 1; |
297 |
} |
298 |
if (contimer >= 138) |
299 |
{ |
300 |
con_alph = 1; |
301 |
c_chunkamt += 0.05; |
302 |
if (c_chunkamt >= 1.25) |
303 |
con_alph = 1.25; |
304 |
if (c_chunkamt >= 1.5) |
305 |
con_alph = 1.5; |
306 |
if (c_chunkamt >= 1.75) |
307 |
con_alph = 1.75; |
308 |
if (c_chunkamt >= 2) |
309 |
con_alph = 2; |
310 |
} |
311 |
draw_sprite_ext(pic, 1, 0, 0, 1, 1, 0, c_white, con_alph); |
312 |
draw_sprite_ext(pic, 2, 0, 0, 1, 1, 0, c_white, con_alph - 1); |
313 |
contimer += 1; |
314 |
if (contimer == 246) |
315 |
{ |
316 |
fadespeed = 0.04; |
317 |
fadecolor = c_black; |
318 |
chunkfade = 1; |
319 |
} |
320 |
if (contimer >= 277) |
321 |
{ |
322 |
with (obj_writer) |
323 |
instance_destroy(); |
324 |
global.msg[0] = Only they can seal the fountains ; |
325 |
w = instance_create(40, 185, obj_writer); |
326 |
contimer = 0; |
327 |
c_chunkamt = 0; |
328 |
chunkfade = 0; |
329 |
con = 9; |
330 |
pic = spr_introimage5; |
331 |
} |
332 |
} |
333 |
if (con == 9) |
334 |
{ |
335 |
draw_sprite(pic, 0, 0, 0); |
336 |
con_alph = 0; |
337 |
if (contimer >= 276) |
338 |
c_chunkamt += 0.05; |
339 |
if (c_chunkamt >= 0.25) |
340 |
con_alph = 0.25; |
341 |
if (c_chunkamt >= 0.5) |
342 |
con_alph = 0.5; |
343 |
if (c_chunkamt >= 0.75) |
344 |
con_alph = 0.75; |
345 |
if (c_chunkamt >= 1) |
346 |
con_alph = 1; |
347 |
draw_sprite_ext(pic, 1, 0, 0, 1, 1, 0, c_white, con_alph); |
348 |
contimer += 1; |
349 |
if (contimer == 138) |
350 |
{ |
351 |
with (obj_writer) |
352 |
instance_destroy(); |
353 |
global.msg[0] = And banish the ANGEL'S HEAVEN. ; |
354 |
w = instance_create(40, 185, obj_writer); |
355 |
} |
356 |
if (contimer == 276) |
357 |
{ |
358 |
with (obj_writer) |
359 |
instance_destroy(); |
360 |
global.msg[0] = Only then will balance be restored, ; |
361 |
w = instance_create(80, 185, obj_writer); |
362 |
} |
363 |
if (contimer == 414) |
364 |
{ |
365 |
with (obj_writer) |
366 |
instance_destroy(); |
367 |
global.msg[0] = And the WORLD saved from destruction. ; |
368 |
w = instance_create(80, 185, obj_writer); |
369 |
fadespeed = 0.04; |
370 |
fadecolor = c_black; |
371 |
chunkfade = 1; |
372 |
} |
373 |
if (contimer >= 552) |
374 |
{ |
375 |
xoff = 0; |
376 |
yoff = 0; |
377 |
fadespeed = 0.02; |
378 |
contimer = 0; |
379 |
c_chunkamt = 0; |
380 |
chunkfade = 0; |
381 |
con = 10; |
382 |
c_chunkamt = 0; |
383 |
pic = spr_introimage6; |
384 |
border = 1; |
385 |
ytimer = 0; |
386 |
xtimer = 0; |
387 |
with (obj_writer) |
388 |
instance_destroy(); |
389 |
global.msg[0] = Today, the FOUNTAIN OF DARKNESS- ; |
390 |
w = instance_create(40, 160, obj_writer); |
391 |
} |
392 |
} |
393 |
if (con == 10) |
394 |
{ |
395 |
draw_sprite(pic, 0, 60 + xoff, 28 + yoff); |
396 |
ytimer += 1; |
397 |
if (ytimer >= 4 && yoff > -110) |
398 |
{ |
399 |
ytimer = 0; |
400 |
yoff -= 2; |
401 |
} |
402 |
contimer += 1; |
403 |
if (contimer == 138) |
404 |
{ |
405 |
with (obj_writer) |
406 |
instance_destroy(); |
407 |
global.msg[0] = The geyser that gives this land form- ; |
408 |
w = instance_create(80, 160, obj_writer); |
409 |
} |
410 |
if (contimer == 276) |
411 |
{ |
412 |
with (obj_writer) |
413 |
instance_destroy(); |
414 |
global.msg[0] = Stands tall at the center of the kingdom. ; |
415 |
w = instance_create(80, 160, obj_writer); |
416 |
} |
417 |
if (contimer == 444) |
418 |
{ |
419 |
with (obj_writer) |
420 |
instance_destroy(); |
421 |
global.msg[0] = But recently, another fountain has appeared on the horizon... ; |
422 |
w = instance_create(40, 160, obj_writer); |
423 |
} |
424 |
if (contimer == 640) |
425 |
{ |
426 |
with (obj_writer) |
427 |
instance_destroy(); |
428 |
global.msg[0] = And with it,Delay 11 the balance of LIGHT and DARK begins to shift... ; |
429 |
w = instance_create(40, 160, obj_writer); |
430 |
} |
431 |
if (contimer >= 444) |
432 |
{ |
433 |
xtimer += 1; |
434 |
if (xoff > -60 && xtimer >= 4) |
435 |
{ |
436 |
xtimer = 0; |
437 |
xoff -= 2; |
438 |
} |
439 |
} |
440 |
if (contimer == 760) |
441 |
{ |
442 |
fadespeed = 0.02; |
443 |
chunkfade = 1; |
444 |
} |
445 |
if (contimer == 880 && skipped == 0) |
446 |
{ |
447 |
snd_free(global.currentsong[0]); |
448 |
global.flag[6 disable_text_skip] = 0; |
449 |
f = instance_create(0, 0, obj_fadeout); |
450 |
f.fadespeed = 0.02; |
451 |
} |
452 |
if (contimer == 960 && skipped == 0) |
453 |
{ |
454 |
if (global.plot == 20) |
455 |
{ |
456 |
instance_create(0, 0, obj_persistentfadein); |
457 |
room_goto(room_castle_front); |
458 |
} |
459 |
else |
460 |
{ |
461 |
room_goto(PLACE_LOGO ); |
462 |
} |
463 |
} |
464 |
} |
465 |
if (border == 1) |
466 |
{ |
467 |
draw_set_color(c_black); |
468 |
draw_rectangle(-10, -10, 330, 27, false); |
469 |
draw_rectangle(-10, -10, 59, 300, false); |
470 |
draw_rectangle(400, -10, 260, 300, false); |
471 |
draw_rectangle(-10, 400, 330, 138, false); |
472 |
} |
473 |
if (chunkfade == 0 && chunkamt > 0) |
474 |
chunkamt -= fadespeed; |
475 |
if (chunkfade == 1 && chunkamt < 1) |
476 |
chunkamt += fadespeed; |
477 |
draw_set_color(fadecolor); |
478 |
alph = 0; |
479 |
if (chunkamt >= 0.25) |
480 |
alph = 0.25; |
481 |
if (chunkamt >= 0.5) |
482 |
alph = 0.5; |
483 |
if (chunkamt >= 0.75) |
484 |
alph = 0.75; |
485 |
if (chunkamt >= 1) |
486 |
alph = 1; |
487 |
draw_set_alpha(alph); |
488 |
draw_rectangle(-10, -10, 330, 330, false); |
489 |
} |
490 |
draw_set_alpha(1); |
491 |
if (ingame == 0) |
492 |
{ |
493 |
if (skip_buffer > 0) |
494 |
{ |
495 |
if (!button1_p()) |
496 |
skip_buffer--; |
497 |
exit; |
498 |
} |
499 |
if (button1_p() && skipped == 0) |
500 |
{ |
501 |
skipped = 1; |
502 |
skiptimer = 0; |
503 |
f = instance_create(0, 0, obj_fadeout); |
504 |
f.fadespeed = 0.08; |
505 |
mus_volume(global.currentsong[1], 0, 15); |
506 |
} |
507 |
if (skipped == 1) |
508 |
skiptimer += 1; |
509 |
if (skiptimer == 19) |
510 |
{ |
511 |
snd_free(global.currentsong[0]); |
512 |
global.flag[6 disable_text_skip] = 0; |
513 |
} |
514 |
if (skiptimer == 20) |
515 |
room_goto(PLACE_LOGO ); |
516 |
} |