Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queen_winedrop_Draw_0

(view raw script w/o annotations or w/e)
1
image_xscale = vspeed;
2
if (fillamount >= 15)
3
    instance_destroy();
4
draw_set_color(acidColor);
5
var __glassbottom = obj_growtangle.ystart + 30 + ((28 - abs(x - obj_growtangle.xstart)) / 2);
6
var __fillpoint = min(__glassbottom, obj_queen_wineglass.starty - obj_queen_wineglass.fill);
7
var __dropend = min(y, __glassbottom);
8
var __topend = min(__dropend, y - (image_xscale * 10));
9
draw_circle(x, __dropend, 7, 0);
10
draw_line_width(x, __dropend, x, __topend, 14);
11
if (y > __fillpoint)
12
{
13
    obj_queen_wineglass.prefill += 2;
14
    fillamount += 2;
15
    if (createdroplets == 0)
16
    {
17
        createdroplets = 1;
18
        var rand_dir = random(28);
19
        bullet = instance_create((x - 3) + random(5), y, obj_wine_droplet);
20
        bullet.direction = 76 + rand_dir;
21
        bullet.speed = 12;
22
        bullet.gravity_direction = 270;
23
        bullet.gravity = 0.75;
24
        bullet.depth = depth - 1;
25
        bullet = instance_create((x - 3) + random(5), y, obj_wine_droplet);
26
        bullet.direction = (76 + rand_dir) - 3;
27
        bullet.speed = 12;
28
        bullet.gravity_direction = 270;
29
        bullet.gravity = 0.75;
30
        bullet.depth = depth - 1;
31
        bullet = instance_create((x - 3) + random(5), y, obj_wine_droplet);
32
        bullet.direction = 76 + random(28);
33
        bullet.speed = 12;
34
        bullet.gravity_direction = 270;
35
        bullet.gravity = 0.75;
36
        bullet.depth = depth - 1;
37
    }
38
}