Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_knight_crush_Draw_0

(view raw script w/o annotations or w/e)
1
if (!surface_exists(my_surface))
2
    my_surface = surface_create(surface_get_width(application_surface), surface_get_height(application_surface));
3
var modifier = 1;
4
surface_set_target(my_surface);
5
draw_clear_alpha(c_black, 0);
6
draw_circle_color(x - __view_get(e__VW.XView, 0), y - __view_get(e__VW.YView, 0), radius * modifier, c_black, c_black, false);
7
gpu_set_colorwriteenable(true, true, true, false);
8
draw_sprite_tiled(spr_knight_bullet_flow, 0, global.time * 8, 0);
9
gpu_set_colorwriteenable(true, true, true, true);
10
surface_reset_target();
11
var color = make_color_hsv(hsv, 255, 255);
12
gpu_set_blendmode(bm_add);
13
repeat (4)
14
    draw_surface_ext(my_surface, __view_get(e__VW.XView, 0), __view_get(e__VW.YView, 0), 1, 1, 0, color, alpha);
15
draw_set_alpha(alpha);
16
draw_circle_color(x, y, radius * modifier, c_white, c_white, false);
17
draw_set_alpha(1);
18
gpu_set_blendmode(bm_normal);
19
20
enum e__VW
21
{
22
    XView,
23
    YView,
24
    WView,
25
    HView,
26
    Angle,
27
    HBorder,
28
    VBorder,
29
    HSpeed,
30
    VSpeed,
31
    Object,
32
    Visible,
33
    XPort,
34
    YPort,
35
    WPort,
36
    HPort,
37
    Camera,
38
    SurfaceID
39
}