Deltarune script viewer

← back to main script listing

gml_Object_obj_welcometothecity_backinglights_Draw_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_mainchara))
2
    checkX = obj_mainchara.x + 20;
3
timer += 2;
4
c_rainbow = make_color_hsv(timer % 255, 255, 255);
5
curColor = merge_color(merge_color(c_white, c_rainbow, 0.5), c_black, 0.2);
6
draw_set_color(curColor);
7
if (createAndStay == 0)
8
{
9
    draw_rectangle(594, 110, 664, 220, 0);
10
    draw_rectangle(670, 110, 704, 220, 0);
11
    draw_rectangle(710, 110, 748, 220, 0);
12
    draw_rectangle(754, 110, 796, 220, 0);
13
    draw_rectangle(802, 110, 852, 220, 0);
14
    draw_rectangle(858, 110, 928, 220, 0);
15
    draw_rectangle(934, 110, 968, 220, 0);
16
    draw_rectangle(1000, 110, 1050, 220, 0);
17
    draw_rectangle(1056, 110, 1106, 220, 0);
18
    draw_rectangle(1138, 110, 1188, 220, 0);
19
    draw_rectangle(1194, 110, 1242, 220, 0);
20
    draw_rectangle(1248, 110, 1282, 220, 0);
21
    draw_rectangle(1314, 110, 1356, 220, 0);
22
    draw_rectangle(1362, 110, 1380, 220, 0);
23
    draw_rectangle(1386, 110, 1436, 220, 0);
24
    draw_rectangle(1442, 110, 1488, 220, 0);
25
}
26
if (createAndStay == 1)
27
{
28
    if (checkX >= 594)
29
        newcount = 1;
30
    if (count < newcount)
31
        count = newcount;
32
    if (checkX >= 670)
33
        newcount = 2;
34
    if (count < newcount)
35
        count = newcount;
36
    if (checkX >= 710)
37
        newcount = 3;
38
    if (count < newcount)
39
        count = newcount;
40
    if (checkX >= 754)
41
        newcount = 4;
42
    if (count < newcount)
43
        count = newcount;
44
    if (checkX >= 802)
45
        newcount = 5;
46
    if (count < newcount)
47
        count = newcount;
48
    if (checkX >= 858)
49
        newcount = 6;
50
    if (count < newcount)
51
        count = newcount;
52
    if (checkX >= 934)
53
        newcount = 7;
54
    if (count < newcount)
55
        count = newcount;
56
    if (checkX >= 1000)
57
        newcount = 8;
58
    if (count < newcount)
59
        count = newcount;
60
    if (checkX >= 1056)
61
        newcount = 9;
62
    if (count < newcount)
63
        count = newcount;
64
    if (checkX >= 1138)
65
        newcount = 10;
66
    if (count < newcount)
67
        count = newcount;
68
    if (checkX >= 1194)
69
        newcount = 11;
70
    if (count < newcount)
71
        count = newcount;
72
    if (checkX >= 1248)
73
        newcount = 12;
74
    if (count < newcount)
75
        count = newcount;
76
    if (checkX >= 1314)
77
        newcount = 13;
78
    if (count < newcount)
79
        count = newcount;
80
    if (checkX >= 1362)
81
        newcount = 14;
82
    if (count < newcount)
83
        count = newcount;
84
    if (checkX >= 1386)
85
        newcount = 15;
86
    if (count < newcount)
87
        count = newcount;
88
    if (checkX >= 1442)
89
        newcount = 16;
90
    if (count < newcount)
91
        count = newcount;
92
    if (count >= 1)
93
        draw_rectangle(594, 110, 664, 220, 0);
94
    if (count >= 2)
95
        draw_rectangle(670, 110, 704, 220, 0);
96
    if (count >= 3)
97
        draw_rectangle(710, 110, 748, 220, 0);
98
    if (count >= 4)
99
        draw_rectangle(754, 110, 796, 220, 0);
100
    if (count >= 5)
101
        draw_rectangle(802, 110, 852, 220, 0);
102
    if (count >= 6)
103
        draw_rectangle(858, 110, 928, 220, 0);
104
    if (count >= 7)
105
        draw_rectangle(934, 110, 968, 220, 0);
106
    if (count >= 8)
107
        draw_rectangle(1000, 110, 1050, 220, 0);
108
    if (count >= 9)
109
        draw_rectangle(1056, 110, 1106, 220, 0);
110
    if (count >= 10)
111
        draw_rectangle(1138, 110, 1188, 220, 0);
112
    if (count >= 11)
113
        draw_rectangle(1194, 110, 1242, 220, 0);
114
    if (count >= 12)
115
        draw_rectangle(1248, 110, 1282, 220, 0);
116
    if (count >= 13)
117
        draw_rectangle(1314, 110, 1356, 220, 0);
118
    if (count >= 14)
119
        draw_rectangle(1362, 110, 1380, 220, 0);
120
    if (count >= 15)
121
        draw_rectangle(1386, 110, 1436, 220, 0);
122
    if (count >= 16)
123
        draw_rectangle(1442, 110, 1488, 220, 0);
124
    if (count == 16)
125
    {
126
        if (global.plot < 67)
127
            global.plot = 67;
128
    }
129
}
130
draw_set_color(c_white);