-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.slu
48 lines (37 loc) · 876 Bytes
/
init.slu
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
var DEBUG = FALSE;
var VERSION = "v4";
sub stopIntroMovie() {
stopMovie();
}
sub stopIntroMovieKbd(key) {
stopIntroMovie();
return key;
}
sub init ()
{
if (fileExists("debug")) {
var debugStack = loadCustomData("debug");
var debugValue = dequeue(debugStack);
if (debugValue == "1") {
DEBUG = TRUE;
}
}
setCustomEncoding(42);
setSpeechMode(SOUNDANDTEXT);
loadAchievements();
setFont('coolstoryfont.duc', " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^`_abcdefghi™jklmnopqrstuvwxyz{|}~ńłę", 30);
#setDefaultSoundVolume(100);
addStatus();
setSpeechSpeed(250);
onRightMouse(stopIntroMovie);
onKeyboard(stopIntroMovieKbd);
playMovie('dosowisko.webm');
onKeyboard(keys);
if (fileExists("auto-" + VERSION) && !(DEBUG)) {
welcomeScreen();
} else {
stop();
gotoRoom(DEBUG ? roomElevator : intro);
go();
}
}