Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_ch5_LW20W_end_Create_0

(view raw script w/o annotations or w/e)
1
with (obj_ch5_LW20W_blur2)
2
    instance_destroy();
3
4
doend = function()
5
{
6
    timer = 0;
7
    con = 99;
8
    snd_stop_all();
9
    snd_free_all();
10
    doshade = false;
11
    index = -1;
12
    image_blend = c_black;
13
    scr_complete_save_file_b();
14
    if (!global.is_console)
15
    {
16
        if (global.launcher)
17
            
scr_chapterswitch
scr_chapterswitch

function
scr_chapterswitch(arg0 = 0)
{ var parameters = get_chapter_switch_parameters(); if (arg0 == 0) { if (scr_is_switch_os()) { game_change("rom:/", parameters); } else { switch (os_type) { case os_windows: game_change("/../", "-game data.win" + parameters); break; case os_ps4: game_change("", "-game /app0/games/game.win" + parameters); break; case os_ps5: game_change("", "-game /app0/games/game.win" + parameters); break; case os_macosx: game_change("..", parameters); break; } } } else { var chapstring = string(arg0); show_debug_message("Attempting to launch Chapter " + string(arg0)); if (scr_is_switch_os()) { game_change("rom:/chapter" + chapstring + "_switch/", parameters); } else { switch (os_type) { case os_windows: game_change("/../chapter" + chapstring + "_windows", "-game data.win" + parameters); break; case os_ps4: game_change("", "-game /app0/games/chapter" + chapstring + "_ps4/game.win" + parameters); break; case os_ps5: game_change("", "-game /app0/games/chapter" + chapstring + "_ps5/game.win" + parameters); break; case os_macosx: game_change("../chapter" + chapstring + "_mac", parameters); break; } } } }
(0);
18
        else
19
            game_restart_true();
20
        exit;
21
    }
22
};
23
24
gettimer = function(arg0)
25
{
26
    var val = round(arg0 * 30);
27
    return val;
28
};
29
30
crttimer = 0;
31
crt_glitch = 5;
32
chromStrength = 0.25;
33
image_blend = c_white;
34
timer = 0;
35
siner = 0;
36
mysurf = -4;
37
index = -1;
38
con = 0;
39
doshade = true;
40
shader = 28;
41
u_time = shader_get_uniform(shader, "TIME");
42
u_aber = shader_get_uniform(shader, "aberation_amount");
43
texture_one = sprite_get_texture(spr_rainbow, 0);
44
aberration = 0;
45
surf = -4;
46
speedcheck = 0;
47
time = 0;
48
spd = 0.5;
49
alpha = 0;
50
blocks = [];
51
array_push(blocks, 
52
{
53
    x: 12,
54
    y: 3,
55
    w: 11,
56
    h: 10
57
});
58
array_push(blocks, 
59
{
60
    x: 24,
61
    y: 3,
62
    w: 11,
63
    h: 10
64
});
65
array_push(blocks, 
66
{
67
    x: 35,
68
    y: 3,
69
    w: 11,
70
    h: 10
71
});
72
array_push(blocks, 
73
{
74
    x: 47,
75
    y: 3,
76
    w: 11,
77
    h: 10
78
});
79
array_push(blocks, 
80
{
81
    x: 61,
82
    y: 0,
83
    w: 7,
84
    h: 13
85
});
86
array_push(blocks, 
87
{
88
    x: -40,
89
    y: -40,
90
    w: 0,
91
    h: 0
92
});
93
array_push(blocks, 
94
{
95
    x: 83,
96
    y: 0,
97
    w: 11,
98
    h: 13
99
});
100
array_push(blocks, 
101
{
102
    x: 95,
103
    y: 0,
104
    w: 11,
105
    h: 13
106
});
107
array_push(blocks, 
108
{
109
    x: 107,
110
    y: 2,
111
    w: 11,
112
    h: 11
113
});
114
array_push(blocks, 
115
{
116
    x: 119,
117
    y: 2,
118
    w: 11,
119
    h: 11
120
});
121
array_push(blocks, 
122
{
123
    x: 133,
124
    y: 0,
125
    w: 7,
126
    h: 13
127
});
128
array_push(blocks, 
129
{
130
    x: 143,
131
    y: 3,
132
    w: 11,
133
    h: 10
134
});
135
array_push(blocks, 
136
{
137
    x: 155,
138
    y: 3,
139
    w: 11,
140
    h: 10
141
});
142
array_push(blocks, 
143
{
144
    x: -40,
145
    y: -40,
146
    w: 0,
147
    h: 0
148
});
149
array_push(blocks, 
150
{
151
    x: 179,
152
    y: 0,
153
    w: 11,
154
    h: 13
155
});
156
array_push(blocks, 
157
{
158
    x: 0,
159
    y: 19,
160
    w: 11,
161
    h: 13
162
});
163
array_push(blocks, 
164
{
165
    x: 14,
166
    y: 20,
167
    w: 7,
168
    h: 12
169
});
170
array_push(blocks, 
171
{
172
    x: 24,
173
    y: 19,
174
    w: 11,
175
    h: 13
176
});
177
array_push(blocks, 
178
{
179
    x: 36,
180
    y: 22,
181
    w: 11,
182
    h: 10
183
});
184
array_push(blocks, 
185
{
186
    x: -40,
187
    y: -40,
188
    w: 0,
189
    h: 0
190
});
191
array_push(blocks, 
192
{
193
    x: 60,
194
    y: 19,
195
    w: 11,
196
    h: 13
197
});
198
blocksLength = array_length(blocks);