Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_churchc_titanclimb2_post_Draw_0

(view raw script w/o annotations or w/e)
1
var cx = camerax();
2
var cy = cameray();
3
var camwidth = camerawidth();
4
var camheight = cameraheight();
5
var width = sprite_get_width(spr_titan_background_spotlight);
6
var xscale = 2;
7
var xoff = 60;
8
var xoff2 = xoff + (width * xscale);
9
draw_set_color(c_black);
10
draw_set_alpha(background_spotlight_alpha);
11
ossafe_fill_rectangle(cx, cy, (cx + xoff) - 1, cy + camheight, 0);
12
ossafe_fill_rectangle(cx + xoff2, cy, cx + camwidth, cy + camheight, 0);
13
draw_sprite_ext(spr_titan_background_spotlight, 0, cx + xoff, cy, xscale, 2, 0, c_black, background_spotlight_alpha);
14
draw_set_color(c_white);
15
draw_set_alpha(1);