Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_queen_static_Draw_0

(view raw script w/o annotations or w/e)
1
if (!surface_exists(goggles_surface) || !surface_exists(static_surface))
2
    exit;
3
surface_set_target(goggles_surface);
4
draw_set_blend_mode(bm_subtract);
5
draw_clear(c_black);
6
draw_sprite_ext(spr_cutscene_27_queen_static_goggles, 0, x, y, 2, 2, 0, c_white, 1);
7
draw_set_blend_mode(bm_normal);
8
surface_reset_target();
9
surface_set_target(static_surface);
10
draw_sprite_tiled_ext(spr_static, 0, offset_x, offset_y, 2, 2, c_white, 1);
11
draw_set_blend_mode(bm_subtract);
12
draw_surface(goggles_surface, 0, 0);
13
draw_set_blend_mode(bm_normal);
14
surface_reset_target();
15
draw_surface_ext(static_surface, 0, 0, 1, 1, 0, c_black, 1);
16
draw_surface_ext(static_surface, 0, 0, 1, 1, 0, c_white, image_alpha);
17
draw_surface_ext(static_surface, 0, 0, 1, 1, 0, c_black, image_alpha - 2);
18
if (image_alpha < 3)
19
    image_alpha += 0.02;