-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcutscenes.lua
47 lines (44 loc) · 1.04 KB
/
cutscenes.lua
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
local sound = require "music"
local cutscenes = {
num = 1,
page = 1,
texttime = 0,
list = { --SPOILERS AHEAD IF YOU HAVEN'T FINISHED THE GAME!
{
name = "The story begins...",
"The cutscenes were not added yet",
"They will be added...eventually!"
},
{
name = "WIP",
"This cutscene was still not added yet\nEnjoy chapter 2!"
},
{
name = "also WIP",
"This cutscene was still not added yet\nEnjoy chapter 3!"
},
{
name = "yet another WIP",
"This cutscene was still not added yet\nEnjoy chapter 4!"
},
{
name = "This name will not appear, yet",
"Hello person that wanted to check this game source code!"
},
{
name = "This one too won't appear yet",
"I gotta warn you: most of it is bad..."
}
}
}
function cutscenes.setCutscene(num, nextgamestate)
cutscenes.current = cutscenes.list[num]
cutscenes.num = num
cutscenes.page = 1
cutscenes.texttime = 0
cutscenes.prevmusic = sound.musicname or ""
cutscenes.nextgamestate = nextgamestate or "ingame"
sound.stopMusic()
flash = 0
end
return cutscenes