Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_danmaku_analyzer_Draw_0

(view raw script w/o annotations or w/e)
1
if (!surface_exists(mysurface))
2
    mysurface = surface_create(640, 480);
3
surface_set_target(mysurface);
4
draw_set_alpha(0.5);
5
draw_set_color(c_aqua);
6
with (obj_collidebullet)
7
{
8
    if (mask_index > 1)
9
        draw_sprite_ext(mask_index, image_index, x, y, image_xscale, image_yscale, image_angle, c_aqua, 0.5);
10
    else
11
        draw_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, 0);
12
}
13
draw_set_alpha(1);
14
surface_reset_target();
15
draw_surface(mysurface, camerax(), cameray());
16
global.hp[1] = 999;