Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_background_ceroba_battle_geno_yellow_Draw_0

(view raw script w/o annotations or w/e)
1
var color_rect_1 = make_colour_rgb(73, 24, 31)
2
var color_rect_2 = make_colour_rgb(157, 23, 50)
3
var color_rect_3 = make_colour_rgb(216, 31, 68)
4
var color_rect_4 = make_colour_rgb(228, 69, 101)
5
draw_set_color(color_rect_1)
6
draw_rectangle(0, 230, 640, 336, false)
7
draw_set_color(color_rect_2)
8
draw_rectangle(0, 242, 640, 330, false)
9
draw_set_color(color_rect_3)
10
draw_rectangle(0, 268, 640, 324, false)
11
draw_set_color(color_rect_4)
12
draw_rectangle(0, 310, 640, 324, false)
13
draw_set_alpha(diamond_alpha)
14
draw_set_color(color_rect_3)
15
for (var i = 0; i < 2; i++)
16
{
17
    var diamond_x_left = diamond_x[i] - diamond_width - diamond_width_current / 3
18
    var diamond_x_right = diamond_x[i] + diamond_width + diamond_width_current / 3
19
    if (diamond_width_current > (diamond_width / 2))
20
    {
21
        diamond_x_left = diamond_x[i] - diamond_width - (diamond_width / 3 - diamond_width_current / 3)
22
        diamond_x_right = diamond_x[i] + diamond_width + (diamond_width / 3 - diamond_width_current / 3)
23
    }
24
    draw_primitive_begin(3)
25
    draw_vertex(diamond_x_left, diamond_y)
26
    draw_vertex(diamond_x[i], (diamond_y - diamond_height / 2))
27
    draw_vertex(diamond_x_right, diamond_y)
28
    draw_vertex(diamond_x[i], (diamond_y + diamond_height / 2))
29
    draw_vertex(diamond_x_left, diamond_y)
30
    draw_primitive_end()
31
    draw_primitive_begin(3)
32
    vertical_line_1_x = diamond_x[i] - diamond_width + diamond_width_current
33
    draw_vertex(diamond_x[i], (diamond_y - diamond_height / 2))
34
    draw_vertex(vertical_line_1_x, diamond_y)
35
    draw_vertex(diamond_x[i], (diamond_y + diamond_height / 2))
36
    draw_primitive_end()
37
    draw_primitive_begin(3)
38
    var vertical_line_2_x = diamond_x[i] + diamond_width_current
39
    draw_vertex(diamond_x[i], (diamond_y - diamond_height / 2))
40
    draw_vertex(vertical_line_2_x, diamond_y)
41
    draw_vertex(diamond_x[i], (diamond_y + diamond_height / 2))
42
    draw_primitive_end()
43
    draw_primitive_begin(3)
44
    draw_vertex(diamond_x_left, diamond_y)
45
    draw_vertex(vertical_line_1_x, diamond_y)
46
    draw_vertex(vertical_line_2_x, diamond_y)
47
    draw_vertex(diamond_x_right, diamond_y)
48
    draw_primitive_end()
49
}
50
draw_set_alpha(1)