Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_screen_glitch_ending_Draw_64

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
display_set_gui_size(-1, -1)
4
application_surface_draw_enable(false)
5
var app_surf_height = surface_get_height(application_surface)
6
var app_surf_width = surface_get_width(application_surface)
7
var screen_parts = 8
8
var part_height = app_surf_height / screen_parts
9
var part_width = app_surf_width / screen_parts
10
for (var i = 0; i < screen_parts; i++)
11
{
12
    for (var j = 0; j < screen_parts; j++)
13
        draw_surface_part_ext(application_surface, (j * part_width), (i * part_height), part_width, part_height, (j * part_width), (i * part_height), random_range(0.5, 1.5), random_range(0.5, 1.5), 16777215, 1)
14
}
15
screen_parts = 6
16
for (i = 0; i < screen_parts; i++)
17
{
18
    for (j = 0; j < screen_parts; j++)
19
        draw_surface_part_ext(application_surface, irandom_range(0, 320), irandom_range(0, 240), irandom_range(0, 320), irandom_range(0, 240), irandom_range(0, 640), irandom_range(0, 480), 1, 1, 16777215, 1)
20
}
21
display_set_gui_size(320, 240)
22
draw_set_alpha(noise_alpha)
23
draw_sprite_tiled(spr_flowey_battle_noise, 0, 0, 0)
24
draw_set_alpha(1)