-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcutscenes.lua
More file actions
807 lines (710 loc) · 26.5 KB
/
cutscenes.lua
File metadata and controls
807 lines (710 loc) · 26.5 KB
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
--[[ Cutscene constructor class and Cutscenes object containing instances. ]]
Cutscenes = {}
local scenes_directory = "assets/scenes/" .. global.locale
function Cutscenes:scene(options)
options = options or {}
local frames = options.frames or { }
local delay = options.delay or 3
local musicStart = options.musicStart
local musicDone = options.musicDone
local musicStartNL = options.musicStartNL
local musicDoneNL = options.musicDoneNL
local frameX = options.frameX or 0
local frameY = options.frameY or 0
local frameW = options.frameW or W_WIDTH
local frameH = options.frameH or W_HEIGHT
local nextCutscene = options.nextCutscene
local is_running = false
local current_frame, current_frame_delay = nil, nil
local timer, frameIter = 0, 1
local sceneName = options.name or "?"
local done_callback = options.done_callback
local old_done_callback = nil
local getSceneName = function ()
return sceneName
end
-- ALL THE HUDS
local show_hud = true
if options.showHUD ~= nil then
show_hud = options.showHUD
end
local isRunning = function ()
return is_running
end
local showHUD = function ()
return show_hud
end
local start = function (cb)
if (type(cb) == "function") then
if done_callback then old_done_callback = done_callback end
done_callback = cb
end
is_running = true
timer, frameIter = 0, 1
if (not delay or type(delay) == "number") then
current_frame = frames[frameIter]
else -- every frame is an array of [frame, delay]
current_frame = frames[frameIter][1]
current_frame_delay = frames[frameIter][2]
end
if (musicStart == nil) then -- stop music
Sound.pauseMusic()
elseif (musicStart) then -- play the proper music
Sound.stopMusic()
Sound.playMusic(musicStart, musicStartNL)
end
end
local stop = function ()
is_running = false
end
local finish = function ()
stop()
if musicDone then
Sound.playMusic(musicDone, musicDoneNL)
else
Sound.resumeMusic()
end
if (type(done_callback) == "function") then
done_callback()
if old_done_callback then
done_callback = old_done_callback
else
done_callback = nil
end
end
-- cutscene immediately following. kinda hacky, but TIIIIME
if nextCutscene then
self.current = self[nextCutscene]
self.current.start()
end
end
local update = function (dt)
if not isRunning() then return false end
if (type(delay) == "number") then -- count up delay
timer = timer + dt
if timer >= delay then
timer = 0
frameIter = frameIter + 1
if (frameIter > #frames) then
finish()
else
current_frame = frames[frameIter]
end
end
else -- delay of non-nil and non-number means frame-based
timer = timer + dt
if timer >= current_frame_delay then
timer = 0
frameIter = frameIter + 1
if (frameIter > #frames) then
finish()
else
current_frame = frames[frameIter][1]
current_frame_delay = frames[frameIter][2]
end
end
end
return true -- running and incremented
end
local draw = function ()
--Cover everything with a rectangle first
local red, green, blue = love.graphics.getColor()
love.graphics.setColor(0, 0, 0)
love.graphics.rectangle("fill", 0, 0, W_WIDTH, W_HEIGHT)
love.graphics.setColor(red, green, blue)
-- Then draw frame
if current_frame then
love.graphics.draw( current_frame, frameX, frameY, 0,
global.scale, global.scale)
end
end
return {
isRunning = isRunning,
showHUD = showHUD,
start = start,
stop = stop,
update = update,
draw = draw,
getSceneName = getSceneName
}
end
--[[ Helpers! ]]
love.graphics.setDefaultFilter("nearest", "nearest")
local centerX = function (image)
return (W_WIDTH / 2 ) - (image:getWidth() * global.scale / 2)
end
--[[
Here be the Cutscenes
]]--
Cutscenes.blank = Cutscenes.scene() -- blank
Cutscenes.current = Cutscenes.blank -- placeholder
-- shared images used in a lot of seperate cutscenes
local imgGlitchScreen = love.graphics.newImage(scenes_directory .. "/glitchscreen.png")
local imgBlackScreen = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale15.jpg")
-- Start of Game
local imgStartScreen = love.graphics.newImage(scenes_directory .. "/0-1welcomescreen.png")
Cutscenes.StartScreen = Cutscenes:scene({
name = "StartScreen",
frames = { imgStartScreen },
delay = 65536,
frameX = centerX(imgStartScreen),
nextCutscene = "Pre11"
})
-- Plays before 1-1
local img11Start = love.graphics.newImage(scenes_directory .. "/1-1start.png")
Cutscenes.Pre11 = Cutscenes:scene({
name = "Pre11",
frames = { img11Start },
delay = 3,
frameX = centerX(img11Start),
musicDone = "M100tp5e0"
})
-- Plays before 2-1
local img11end01 = love.graphics.newImage(scenes_directory .. "/1-1end/1-1end0001.jpg")
local img11end02 = love.graphics.newImage(scenes_directory .. "/1-1end/1-1end0002.jpg")
local img11end03 = love.graphics.newImage(scenes_directory .. "/1-1end/1-1end0003.jpg")
local img11end04 = love.graphics.newImage(scenes_directory .. "/1-1end/1-1end0004.jpg")
local img11end05 = love.graphics.newImage(scenes_directory .. "/1-1end/1-1end0005.jpg")
local img11end06 = love.graphics.newImage(scenes_directory .. "/1-1end/1-1end0006.jpg")
local img11end07 = love.graphics.newImage(scenes_directory .. "/1-1end/1-1end0007.jpg")
local img11end08 = love.graphics.newImage(scenes_directory .. "/1-1end/1-1end0008.jpg")
local img11end09 = love.graphics.newImage(scenes_directory .. "/1-1end/1-1end0009.jpg")
local img11end10 = love.graphics.newImage(scenes_directory .. "/1-1end/1-1end0010.jpg")
local img11end11 = love.graphics.newImage(scenes_directory .. "/1-1end/1-1end0011.jpg")
Cutscenes.Pre21 = Cutscenes:scene({
name = "Pre21",
frames = {
{img11end01, 1},
{img11end02, 0.1},
{img11end03, 0.1},
{img11end04, 0.1},
{img11end05, 0.1},
{img11end06, 0.5},
{img11end07, 4},
{img11end08, 1},
{img11end09, 2},
{img11end10, 0.2},
{img11end11, 5}
},
frameX = centerX(img11end01),
delay = "frames",
musicStart = "M100tp5e4",
nextCutscene = "Pre21b",
showHUD = false
})
Cutscenes.Pre21b = Cutscenes:scene({
name = "Pre21b",
frames = { imgBlackScreen },
delay = 2 ,
frameX = 0,
showHUD = false,
nextCutscene = "Pre21c"
})
local img21Start = love.graphics.newImage(scenes_directory .. "/2-1start.png")
Cutscenes.Pre21c = Cutscenes:scene({
name = "Pre21c",
frames = {
{ imgBlackScreen, 0.5 },
{ img21Start, 3 }
},
delay = "frames",
frameX = centerX(img21Start),
nextCutscene = "Intro21"
})
local img21intro01 = love.graphics.newImage(scenes_directory .. "/2-1intro/2-1intro01.jpg")
local img21intro02 = love.graphics.newImage(scenes_directory .. "/2-1intro/2-1intro02.jpg")
local img21intro03 = love.graphics.newImage(scenes_directory .. "/2-1intro/2-1intro03.jpg")
local img21intro04 = love.graphics.newImage(scenes_directory .. "/2-1intro/2-1intro04.jpg")
local img21intro05 = love.graphics.newImage(scenes_directory .. "/2-1intro/2-1intro05.jpg")
Cutscenes.Intro21 = Cutscenes:scene({
name = "Intro21",
frames = {
{ img21intro01, 1},
{ img21intro02, 1},
{ img21intro03, 4.5},
{ img21intro02, 0.5},
{ img21intro04, 5},
{ img21intro02, 0.5},
{ img21intro05, 2},
{ img21intro02, 0.5},
{ img21intro01, 0.5},
},
delay = "frames",
frameX = centerX(img21Start),
musicStart = "M100tp5e0"
})
-- Subsequent 2-1 runs
local img21end01 = love.graphics.newImage(scenes_directory .. "/2-1end/2-1end01.jpg")
local img21end02 = love.graphics.newImage(scenes_directory .. "/2-1end/2-1end02.jpg")
local img21end03 = love.graphics.newImage(scenes_directory .. "/2-1end/2-1end03.jpg")
local img21end04 = love.graphics.newImage(scenes_directory .. "/2-1end/2-1end04.jpg")
local img21end05 = love.graphics.newImage(scenes_directory .. "/2-1end/2-1end05.jpg")
local img21end06 = love.graphics.newImage(scenes_directory .. "/2-1end/2-1end06.jpg")
local img21end07 = love.graphics.newImage(scenes_directory .. "/2-1end/2-1end07.jpg")
Cutscenes.Pre21Sub = Cutscenes:scene({
name = "Pre21Sub",
frames = {
{img21end01, 1},
{img21end02, 0.1},
{img21end03, 0.1},
{img21end04, 0.1},
{img21end05, 0.1},
{img21end06, 0.5},
{img21end07, 4} -- changed
},
frameX = centerX(img21end01),
delay = "frames",
musicStart = "M100tp5e4",
nextCutscene = "Pre21Subb",
showHUD = false
})
Cutscenes.Pre21Subb = Cutscenes:scene({
name = "Pre21Subb",
frames = { img21Start },
delay = 3,
frameX = centerX(img21Start)
})
Cutscenes.Pre21G = Cutscenes:scene({
name = "Pre21G",
frames = { imgGlitchScreen },
frameX = centerX(imgGlitchScreen),
delay = 2,
musicStart = "M100tp5e4",
nextCutscene = "Pre21Gb",
showHUD = false
})
Cutscenes.Pre21Gb = Cutscenes:scene({
name = "Pre21Gb",
frames = { img21Start },
delay = 3,
frameX = centerX(img21Start)
})
-- Plays before 5-1 (Map 3)
Cutscenes.Pre51 = Cutscenes:scene({
name = "Pre51",
frames = { imgBlackScreen },
delay = 2,
frameX = 0,
showHUD = false,
nextCutscene = "Pre51b"
})
local img51Start = love.graphics.newImage(scenes_directory .. "/5-1start.png")
Cutscenes.Pre51b = Cutscenes:scene({ -- 5-1 lives screen
name = "Pre51b",
frames = {
{ imgBlackScreen, 0.5 },
{ img51Start, 3 }
},
delay = "frames",
frameX = 0,
nextCutscene = "Intro51"
})
local img51intro01 = love.graphics.newImage(scenes_directory .. "/5-1intro/5-1intro01.jpg")
local img51intro02 = love.graphics.newImage(scenes_directory .. "/5-1intro/5-1intro02.jpg")
local img51intro03 = love.graphics.newImage(scenes_directory .. "/5-1intro/5-1intro03.jpg")
local img51intro04 = love.graphics.newImage(scenes_directory .. "/5-1intro/5-1intro04.jpg")
local img51intro05 = love.graphics.newImage(scenes_directory .. "/5-1intro/5-1intro05.jpg")
Cutscenes.Intro51 = Cutscenes:scene({ -- 5-1 Intro Cinematic
name = "Intro51",
frames = {
{ img51intro01, 1},
{ img51intro02, 1},
{ img51intro03, 7},
{ img51intro02, 0.5},
{ img51intro04, 4},
{ img51intro02, 0.5},
{ img51intro05, 2},
{ img51intro02, 0.5},
{ img51intro01, 0.5}
},
delay = "frames",
frameX = 0,
musicStart = "M100tp5e0"
})
-- Subsequent 5-1 runs
local img51end01 = love.graphics.newImage(scenes_directory .. "/5-1end/5-1end01.jpg")
local img51end02 = love.graphics.newImage(scenes_directory .. "/5-1end/5-1end02.jpg")
local img51end03 = love.graphics.newImage(scenes_directory .. "/5-1end/5-1end03.jpg")
local img51end04 = love.graphics.newImage(scenes_directory .. "/5-1end/5-1end04.jpg")
local img51end05 = love.graphics.newImage(scenes_directory .. "/5-1end/5-1end05.jpg")
local img51end06 = love.graphics.newImage(scenes_directory .. "/5-1end/5-1end06.jpg")
local img51end07 = love.graphics.newImage(scenes_directory .. "/5-1end/5-1end07.jpg")
Cutscenes.Pre51Sub = Cutscenes:scene({
name = "Pre51Sub",
frames = {
{img51end01, 1},
{img51end02, 0.1},
{img51end03, 0.1},
{img51end04, 0.1},
{img51end05, 0.1},
{img51end06, 0.5},
{img51end07, 4}
},
frameX = centerX(img21end01),
delay = "frames",
musicStart = "M100tp5e4",
nextCutscene = "Pre51Subb",
showHUD = false
})
Cutscenes.Pre51Subb = Cutscenes:scene({
name = "Pre51Subb",
frames = { img51Start },
delay = 3,
frameX = centerX(img51Start)
})
Cutscenes.Pre51G = Cutscenes:scene({
name = "Pre51G",
frames = { imgGlitchScreen },
frameX = centerX(imgGlitchScreen),
delay = 2,
musicStart = "M100tp5e4",
nextCutscene = "Pre51Gb",
showHUD = false
})
Cutscenes.Pre51Gb = Cutscenes:scene({
name = "Pre51Gb",
frames = { img51Start },
delay = 3,
frameX = centerX(img51Start)
})
-- Plays before 9-1 (Map 4)
Cutscenes.Pre91 = Cutscenes:scene({
name = "Pre91",
frames = { imgBlackScreen },
delay = 2,
frameX = 0,
showHUD = false,
nextCutscene = "Pre91b"
})
local img91Start = love.graphics.newImage(scenes_directory .. "/9-1start.png")
Cutscenes.Pre91b = Cutscenes:scene({
name = "Pre91b",
frames = {
{ imgBlackScreen, 0.5 },
{ img91Start, 3 }
},
delay = "frames",
frameX = 0,
nextCutscene = "Intro91"
})
local img91intro01 = love.graphics.newImage(scenes_directory .. "/9-1intro/9-1intro01.jpg")
local img91intro02 = love.graphics.newImage(scenes_directory .. "/9-1intro/9-1intro02.jpg")
local img91intro03 = love.graphics.newImage(scenes_directory .. "/9-1intro/9-1intro03.jpg")
local img91intro04 = love.graphics.newImage(scenes_directory .. "/9-1intro/9-1intro04.jpg")
Cutscenes.Intro91 = Cutscenes:scene({ -- 9-1 Intro Cinematic
name = "Intro91",
frames = {
{ img91intro01, 1.5},
{ img91intro02, 3},
{ img91intro01, 0.5},
{ img91intro03, 5},
{ img91intro01, 0.5},
{ img91intro04, 3},
{ img91intro01, 0.5},
},
delay = "frames",
frameX = 0,
musicStart = "M100tp5e0"
})
-- Subsequent 9-1 runs
local img91end01 = love.graphics.newImage(scenes_directory .. "/9-1end/9-1end01.jpg")
local img91end02 = love.graphics.newImage(scenes_directory .. "/9-1end/9-1end02.jpg")
local img91end03 = love.graphics.newImage(scenes_directory .. "/9-1end/9-1end03.jpg")
local img91end04 = love.graphics.newImage(scenes_directory .. "/9-1end/9-1end04.jpg")
local img91end05 = love.graphics.newImage(scenes_directory .. "/9-1end/9-1end05.jpg")
local img91end06 = love.graphics.newImage(scenes_directory .. "/9-1end/9-1end06.jpg")
local img91end07 = love.graphics.newImage(scenes_directory .. "/9-1end/9-1end07.jpg")
Cutscenes.Pre91Sub = Cutscenes:scene({
name = "Pre91Sub",
frames = {
{img91end01, 1},
{img91end02, 0.1},
{img91end03, 0.1},
{img91end04, 0.1},
{img91end05, 0.1},
{img91end06, 0.5},
{img91end07, 4}
},
frameX = centerX(img21end01),
delay = "frames",
musicStart = "M100tp5e4",
nextCutscene = "Pre91Subb",
showHUD = false ,
})
Cutscenes.Pre91Subb = Cutscenes:scene({
name = "Pre91Subb",
frames = { img91Start },
delay = 3,
frameX = centerX(img91Start)
})
Cutscenes.Pre91G = Cutscenes:scene({
name = "Pre91G",
frames = { imgGlitchScreen },
frameX = centerX(imgGlitchScreen),
delay = 2,
musicStart = "M100tp5e4",
nextCutscene = "Pre91Gb",
showHUD = false
})
Cutscenes.Pre91Gb = Cutscenes:scene({
name = "Pre91Gb",
frames = { img91Start },
delay = 3,
frameX = centerX(img91Start)
})
-- 10-0 finale
local img100finale01 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale01.jpg")
local img100finale02 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale02.jpg")
local img100finale03 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale03.jpg")
local img100finale04 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale04.jpg")
local img100finale05 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale05.jpg")
local img100finale06 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale06.jpg")
local img100finale07 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale07.jpg")
local img100finale08 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale08.jpg")
local img100finale09 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale09.jpg")
local img100finale10 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale10.jpg")
local img100finale11 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale11.jpg")
local img100finale12 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale12.jpg")
local img100finale13 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale13.jpg")
local img100finale14 = love.graphics.newImage(scenes_directory .. "/10-0finale/10-0finale14.jpg")
local img100finale15 = imgBlackScreen
Cutscenes.Finale100 = Cutscenes:scene({
name = "Finale100",
frames = {
{img100finale01, 3},
{img100finale02, 1},
{img100finale03, 0.1},
{img100finale04, 0.1},
{img100finale05, 0.1},
{img100finale06, 0.1},
{img100finale07, 0.5},
{img100finale08, 5},
{img100finale09, 0.5},
{img100finale10, 0.1},
{img100finale11, 0.1},
{img100finale12, 0.1},
{img100finale13, 0.1},
{img100finale14, 0.5}
},
frameX = centerX(img100finale01),
delay = "frames",
showHUD = false ,
musicStart = "M100tp5e4"
})
Cutscenes.flower_screen = Cutscenes:scene({
name = "flower_screen",
frames = {
{ img100finale15, 65536 }
},
frameX = centerX(img100finale01),
delay = "frames",
showHUD = false ,
musicStart = "M100tp5e4",
musicDone = "M100tp5e0"
})
-- Shrines
Cutscenes.Shrines = {}
local imgbackwards5101 = love.graphics.newImage(scenes_directory .. "/backwards/shrines_backwards5101.jpg")
local imgbackwards5102 = love.graphics.newImage(scenes_directory .. "/backwards/shrines_backwards5102.jpg")
local imgbackwards5102 = love.graphics.newImage(scenes_directory .. "/backwards/shrines_backwards5102.jpg")
local imgbackwards5103 = love.graphics.newImage(scenes_directory .. "/backwards/shrines_backwards5103.jpg")
local imgbackwards5105 = love.graphics.newImage(scenes_directory .. "/backwards/shrines_backwards5105.jpg")
Cutscenes.Shrines.Backwards51 = Cutscenes:scene({
name = "Shrines.Backwards51",
frames = {
{imgbackwards5101, 1},
{imgbackwards5102, 0.1},
{imgbackwards5101, 0.1},
{imgbackwards5102, 0.1},
{imgbackwards5101, 0.1},
{imgbackwards5102, 0.1},
{imgbackwards5101, 0.1},
{imgbackwards5102, 0.5},
{imgbackwards5103, 5},
{imgbackwards5102, 0.5},
{imgbackwards5105, 3}
},
frameX = 0,
delay = "frames"
})
local imgbackwards9101 = love.graphics.newImage(scenes_directory .. "/backwards/shrines_backwards9101.jpg")
local imgbackwards9102 = love.graphics.newImage(scenes_directory .. "/backwards/shrines_backwards9102.jpg")
local imgbackwards9102 = love.graphics.newImage(scenes_directory .. "/backwards/shrines_backwards9102.jpg")
local imgbackwards9103 = love.graphics.newImage(scenes_directory .. "/backwards/shrines_backwards9103.jpg")
local imgbackwards9105 = love.graphics.newImage(scenes_directory .. "/backwards/shrines_backwards9105.jpg")
Cutscenes.Shrines.Backwards91 = Cutscenes:scene({
name = "Shrines.Backwards91",
frames = {
{imgbackwards9101, 1},
{imgbackwards9102, 0.1},
{imgbackwards9101, 0.1},
{imgbackwards9102, 0.1},
{imgbackwards9101, 0.1},
{imgbackwards9102, 0.1},
{imgbackwards9101, 0.1},
{imgbackwards9102, 0.5},
{imgbackwards9103, 5},
{imgbackwards9102, 0.5},
{imgbackwards9105, 3}
},
frameX = 0,
delay = "frames"
})
local imgclouds5101 = love.graphics.newImage(scenes_directory .. "/clouds/shrines_clouds5101.jpg")
local imgclouds5102 = love.graphics.newImage(scenes_directory .. "/clouds/shrines_clouds5102.jpg")
local imgclouds5103 = love.graphics.newImage(scenes_directory .. "/clouds/shrines_clouds5103.jpg")
local imgclouds5105 = love.graphics.newImage(scenes_directory .. "/clouds/shrines_clouds5105.jpg")
Cutscenes.Shrines.Clouds51 = Cutscenes:scene({
name = "Shrines.Clouds51",
frames = {
{imgclouds5101, 1},
{imgclouds5102, 3},
{imgclouds5103, 5},
{imgclouds5101, 0.5}, -- 04 is same as 01
{imgclouds5105, 3}
},
frameX = 0,
delay = "frames"
})
local imgclouds9101 = love.graphics.newImage(scenes_directory .. "/clouds/shrines_clouds9101.jpg")
local imgclouds9102 = love.graphics.newImage(scenes_directory .. "/clouds/shrines_clouds9102.jpg")
local imgclouds9103 = love.graphics.newImage(scenes_directory .. "/clouds/shrines_clouds9103.jpg")
local imgclouds9105 = love.graphics.newImage(scenes_directory .. "/clouds/shrines_clouds9105.jpg")
Cutscenes.Shrines.Clouds91 = Cutscenes:scene({
name = "Shrines.Clouds91",
frames = {
{imgclouds9101, 1},
{imgclouds9102, 3},
{imgclouds9103, 5},
{imgclouds9101, 0.5}, -- 04 is same as 01
{imgclouds9105, 3}
},
frameX = 0,
delay = "frames"
})
local imgclouds01 = love.graphics.newImage(scenes_directory .. "/clouds/shrines_clouds01.jpg")
local imgclouds02 = love.graphics.newImage(scenes_directory .. "/clouds/shrines_clouds02.jpg")
Cutscenes.Shrines.Clouds = Cutscenes:scene({
name = "Shrines.Clouds",
frames = {
{imgclouds01, 1},
{imgclouds02, 2}
},
frameX = centerX(imgclouds01),
delay = "frames"
})
local imgdoublejump2101 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump2101.jpg")
local imgdoublejump2102 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump2102.jpg")
local imgdoublejump2103 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump2103.jpg")
local imgdoublejump2105 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump2105.jpg")
Cutscenes.Shrines.Doublejump21 = Cutscenes:scene({
name = "Shrines.Doublejump21",
frames = {
{imgdoublejump2101, 1},
{imgdoublejump2102, 3},
{imgdoublejump2103, 5},
{imgdoublejump2101, 0.5}, -- 04 is same as 01
{imgdoublejump2105, 3}
},
frameX = 0,
delay = "frames"
})
local imgdoublejump5101 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump5101.jpg")
local imgdoublejump5102 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump5102.jpg")
local imgdoublejump5103 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump5103.jpg")
local imgdoublejump5105 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump5105.jpg")
Cutscenes.Shrines.Doublejump51 = Cutscenes:scene({
name = "Shrines.Doublejump21",
frames = {
{imgdoublejump5101, 1},
{imgdoublejump5102, 3},
{imgdoublejump5103, 5},
{imgdoublejump5101, 0.5}, -- 04 is same as 01
{imgdoublejump5105, 3}
},
frameX = 0,
delay = "frames"
})
local imgdoublejump9101 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump9101.jpg")
local imgdoublejump9102 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump9102.jpg")
local imgdoublejump9103 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump9103.jpg")
local imgdoublejump9105 = love.graphics.newImage(scenes_directory .. "/doublejump/shrines_doublejump9105.jpg")
Cutscenes.Shrines.Doublejump91 = Cutscenes:scene({
name = "Shrines.Doublejump21",
frames = {
{imgdoublejump9101, 1},
{imgdoublejump9102, 3},
{imgdoublejump9103, 5},
{imgdoublejump9101, 0.5}, -- 04 is same as 01
{imgdoublejump9105, 3}
},
frameX = 0,
delay = "frames"
})
local imgwalljump9101 = love.graphics.newImage(scenes_directory .. "/walljump/shrines_walljump9101.jpg")
local imgwalljump9102 = love.graphics.newImage(scenes_directory .. "/walljump/shrines_walljump9102.jpg")
local imgwalljump9103 = love.graphics.newImage(scenes_directory .. "/walljump/shrines_walljump9103.jpg")
local imgwalljump9105 = love.graphics.newImage(scenes_directory .. "/walljump/shrines_walljump9105.jpg")
Cutscenes.Shrines.Walljump91 = Cutscenes:scene({
name = "Shrines.Walljump21",
frames = {
{imgwalljump9101, 1},
{imgwalljump9102, 4},
{imgwalljump9103, 6},
{imgwalljump9101, 0.5}, -- 04 is same as 01
{imgwalljump9105, 3}
},
frameX = 0,
delay = "frames"
})
local imgsecret01 = love.graphics.newImage(scenes_directory .. "/secret/shrines_secret01.jpg")
local imgsecret02 = love.graphics.newImage(scenes_directory .. "/secret/shrines_secret02.jpg")
local imgsecret03 = love.graphics.newImage(scenes_directory .. "/secret/shrines_secret03.jpg")
local imgsecret04 = love.graphics.newImage(scenes_directory .. "/secret/shrines_secret04.jpg")
Cutscenes.Shrines.Secret = Cutscenes:scene({
name = "Shrines.Secret",
frames = {
{imgsecret01, 1},
{imgsecret02, 0.1},
{imgsecret01, 0.1},
{imgsecret02, 0.1},
{imgsecret01, 0.1},
{imgsecret02, 0.1},
{imgsecret01, 0.1},
{imgsecret02, 0.75},
{imgsecret03, 3},
{imgsecret04, 5},
{imgsecret02, 0.75},
{imgsecret01, 0.1},
{imgsecret02, 0.1},
{imgsecret01, 0.1},
{imgsecret02, 0.1},
{imgsecret01, 1.5}
},
frameX = 0,
delay = "frames"
})
local imgtrees01 = love.graphics.newImage(scenes_directory .. "/trees/shrines_trees01.jpg")
local imgtrees02 = love.graphics.newImage(scenes_directory .. "/trees/shrines_trees02.jpg")
local imgtrees03 = love.graphics.newImage(scenes_directory .. "/trees/shrines_trees03.jpg")
local imgtrees04 = love.graphics.newImage(scenes_directory .. "/trees/shrines_trees04.jpg")
local imgtrees06 = love.graphics.newImage(scenes_directory .. "/trees/shrines_trees06.jpg")
Cutscenes.Shrines.Trees = Cutscenes:scene({
name = "Shrines.Trees",
frames = {
{imgtrees01, 1},
{imgtrees02, 0.1},
{imgtrees01, 0.1},
{imgtrees02, 0.1},
{imgtrees01, 0.1},
{imgtrees02, 0.1},
{imgtrees01, 0.1},
{imgtrees02, 0.75},
{imgtrees03, 3},
{imgtrees04, 5},
{imgtrees02, 0.5},
{imgtrees06, 3}
},
frameX = 0,
delay = "frames"
})