Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_church_night_vfx_Draw_0

(view raw script w/o annotations or w/e)
1
if (!surface_exists(default_surface))
2
    default_surface = surface_create(camera_get_view_width(0), camera_get_view_height(0));
3
surface_set_target(default_surface);
4
draw_clear(c_black);
5
pal_swap_set(spr_lw_church_palette, palette_index, false);
6
if (room == room_lw_church_entrance)
7
    draw_sprite(bg_church_entrance, 0, 0, 0);
8
else if (room == room_lw_church_choir)
9
    draw_sprite(bg_church_choir, 0, 0, 0);
10
else if (room == room_lw_church_office)
11
    draw_sprite(bg_church_office, 0, 0, 0);
12
pal_swap_reset();
13
surface_reset_target();
14
draw_surface_ext(default_surface, 0, 0, 1, 1, 0, c_white, 1);