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