Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_inbetween_room_bg_fx_Draw_0

(view raw script w/o annotations or w/e)
1
ossafe_fill_rectangle_color(160, 80, 479, 199, wall_dark, wall_dark, wall_light, wall_light, 0);
2
timer++;
3
xadj -= 1;
4
if (xadj < -80)
5
    xadj = 0;
6
yadj += 1;
7
if (yadj > 88)
8
    yadj = 0;
9
for (var i = 0; i < 11; i++)
10
{
11
    var __x = (xadj + (i * 40)) - 80 - 120;
12
    var __y = -40 + yadj + (44 * i);
13
    var amt = __y / 220;
14
    amt = clamp(amt, 0, 1);
15
    var colorSet = merge_color(#66839D, #8CB497, amt);
16
    var alph = 1 - (__y / 500);
17
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x, __y, 2, 2, 0, colorSet, alph);
18
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x + 720, __y, 2, 2, 0, colorSet, alph);
19
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x + 1440, __y, 2, 2, 0, colorSet, alph);
20
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x + 40, __y, 2, 2, 0, colorSet, alph * 0.25);
21
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x + 40 + 720, __y, 2, 2, 0, colorSet, alph * 0.25);
22
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x + 40 + 1440, __y, 2, 2, 0, colorSet, alph * 0.25);
23
}
24
draw_set_color(c_black);
25
ossafe_fill_rectangle(0, 200, room_width, room_height, 0);
26
draw_set_color(c_white);
27
draw_set_color(#F4B688);
28
ossafe_fill_rectangle(160, 200, 479, room_height, 0);
29
draw_set_color(c_white);
30
gpu_set_blendenable(false);
31
gpu_set_colorwriteenable(false, false, false, true);
32
draw_set_alpha(0);
33
ossafe_fill_rectangle(0, 0, room_width, 199, 0);
34
draw_set_alpha(1);
35
gpu_set_blendenable(true);
36
gpu_set_colorwriteenable(true, true, true, true);
37
gpu_set_blendmode_ext(bm_dest_alpha, bm_inv_dest_alpha);
38
gpu_set_alphatestenable(true);
39
var base_x = camerax() / 2;
40
var base_y = (cameray() / 2) + 72;
41
draw_sprite_ext(spr_pixel_white, 0, base_x + 60, base_y + 540, 150, 50, 45, grad_a, 1);
42
draw_sprite_ext(spr_pixel_white, 0, base_x + 660, base_y + 540, 120, 50, 45, grad_a, 1);
43
draw_sprite_ext(spr_pixel_white, 0, base_x + 164, base_y + 550, 150, 14, 45, grad_b, 1);
44
gpu_set_alphatestenable(false);
45
gpu_set_blendmode(bm_normal);
46
draw_sprite_ext(spr_pixel_white, 0, base_x + 195, base_y + 400, 100, 2, 45, blend_a, 0.5);
47
draw_sprite_ext(spr_pixel_white, 0, base_x + 237, base_y + 640, 100, 2, 45, blend_a, 0.5);
48
draw_sprite_ext(spr_pixel_white, 0, base_x + 654, base_y + 540, 100, 2, 45, blend_a, 0.5);
49
draw_sprite_ext(spr_pixel_white, 0, base_x + 171, base_y + 540, 100, 1, 45, blend_b, 0.5);
50
draw_sprite_ext(spr_pixel_white, 0, base_x + 251, base_y + 540, 100, 1, 45, blend_b, 0.5);
51
draw_set_color(c_black);
52
ossafe_fill_rectangle(0, 0, room_width, 80, 0);
53
ossafe_fill_rectangle(0, 0, 159, room_height, 0);
54
ossafe_fill_rectangle(480, 0, room_width, room_height, 0);
55
ossafe_fill_rectangle(0, 400, 279, room_height, 0);
56
ossafe_fill_rectangle(360, 400, room_width, room_height, 0);
57
draw_set_color(c_white);