Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_parallaxer_layer_Draw_0

(view raw script w/o annotations or w/e)
1
if (shadoweffect == 0)
2
    draw_sprite_tiled(sprite_index, image_index, x, y);
3
if (shadoweffect == 1)
4
{
5
    siner++;
6
    draw_sprite_tiled_ext(sprite_index, image_index, x, y, 1, 1, c_white, 1);
7
    draw_sprite_tiled_ext(sprite_index, image_index, x, y + 8, 1, 1, c_gray, 1);
8
    if (sprite_index == spr_bg_cyber_parallax_buildings)
9
    {
10
        draw_set_blend_mode(bm_add);
11
        draw_sprite_tiled_ext(spr_bg_cyber_parallax_buildings_lights, image_index, x, y + 8, 1, 1, c_white, 0.5 + (sin(siner / 12) * 0.1));
12
        draw_set_blend_mode(bm_normal);
13
    }
14
}
15
if (shadoweffect == 2)
16
{
17
    image_blend = c_white;
18
    draw_sprite_tiled(sprite_index, image_index, x, y);
19
    image_blend = c_gray;
20
    draw_sprite_tiled_ext(sprite_index, image_index, x, y + 8, 1, 1, c_dkgray, 1);
21
}